When a REFER is sent from ua1 to ua2 I need to modify the "Refer-To:" URL.
ua1 will send the refer using the alias 222 which is for username 5551212
Therefore, ua2 needs to receive 5551212 in the Refer-To:.
How can I modify the Refer-To field prior to forwarding the request to ua2?
Thanks!!
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Nice.
FYI. I found error of the original REFER problem I had...user agent had bad firmware.
Thanks! FR
--- Juha Heinanen jh@tutpro.com wrote:
Frogger writes:
How can I modify the Refer-To field prior to forwarding the request to ua2?
you can use textops functions remove the original refer hf and then insert a new one with whatever contents you want.
-- juha
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
A few more comments...
I want to take the Refer-to and change it as follows...
The refer-to will look like: 222@sip.domain.com
I want to do a lookup on the 222 (which is an alias or a speeddial) restricting the search by domain (ie: sip.domain.com).
Then I want to replace the 222 with the username from the db.
Any suggestions? FR
--- Juha Heinanen jh@tutpro.com wrote:
Frogger writes:
How can I modify the Refer-To field prior to forwarding the request to ua2?
you can use textops functions remove the original refer hf and then insert a new one with whatever contents you want.
-- juha
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Juha Heinanen wrote:
Frogger writes:
Then I want to replace the 222 with the username from the db.
i don't use db myself, but check what avpops module functions provide.
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")
regards klaus
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
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