Here are the steps I was thinking:
1. Look for the "Refer-To:" in the dialog 2. Remove the 222@sip.domain.com in the Refer-To: 3. Lookup 222 (Alias of 5551212) restricted to domain "sip.domain.com" 4. Rebuild the Refer-To: URI as 5551212@sip.domain.com 5. Then forward
It seems that the problem is extracting the "222". If I could extract that value and place into avp then I could lookup and return an alias from that domain.
Then it seems it would be a matter of avp manipulation to rebuild the URI and forward.
Thoughts?
--- Juha Heinanen jh@tutpro.com wrote:
Klaus Darilion writes:
what about extending lookup(..) to lookup("location/alias","pseudovariable")
which will use the uri in the second parameter
instead of the request URI?
And the same for alias_db_lookup(table_name,
"anypseudovariable")
that could be done, but i don't know if that would solve frogger's problem, i.e., if he wants to use location or alias table or some other table.
-- juha
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com