Hi Carsten,

a solution to you problem might be the usage of BRANCH_ROUTE : do the uac_replace_from () in a branch route, so that the changes will not be inherited by the following forks/branches.

Also, if the changes have only an aesthetic purpose, you should change only the display name and not the URI also.

regards,
bogdan



Carsten Bock wrote:

Hi there,

I have a tiny problem with the UAC-Module and i wonder how to fix it. The problem is simple, but i do not know how to solve this: I want to do "uac_replace_from("Batman","sip:[EMAIL PROTECTED]") twice! I need to call it from a failure route with different parameters.

Here's a more concrete example:
From-Line from PSTN-IN-Gateway "+4940123456" <sip:[EMAIL PROTECTED]>
I send it to the customer and make it look "nice" for him, depending on the Area and country where he lives (in the example: 123456 <sip:[EMAIL PROTECTED]> if the caller is from the same city and country, here Germany / Hamburg). The user unfortunately is busy, so i do a forwarding on busy with "append_branch("sip:[EMAIL PROTECTED]")". But unfortunately the "other-gateway" requires a different "From"-Line (Something like 004940123456 <sip:[EMAIL PROTECTED]>). Unfortunately, this does not work properly! The result is, i get something like "123456004940123456 <sip:[EMAIL PROTECTED]:[EMAIL PROTECTED]>": useless! I looked into the code several hours yesterday and today again almost all day and unfortunately i seem not to find a way to do it. Help! Maybe someone could give me a hint, where i should start looking in detail (i already looked in all the code in "from.c" and i do not have a clue).

Great thanks in advance,

Carsten Bock

_______________________________________________
Devel mailing list
Devel@openser.org
http://openser.org/cgi-bin/mailman/listinfo/devel



_______________________________________________
Devel mailing list
Devel@openser.org
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to