[Devel] Question about UAC Module

Carsten Bock openser-list at qbiz.de
Fri Feb 24 18:38:09 CET 2006


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:batman at gotham-city.org") 
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:4940123456 at gateway>
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:123456 at sip-server> 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:4940654321 at other-gateway")". But unfortunately the 
"other-gateway" requires a different "From"-Line (Something like 
004940123456 <sip:4940123456 at sip-server>). Unfortunately, this does not 
work properly! The result is, i get something like "123456004940123456 
<sip:123456 at sip-serversip:4940123456 at sip-server>": 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



More information about the Devel mailing list