[OpenSIPS-Users] uac_replace_from(uri) truncating the header after a second use at same transaction

Ricardo Martins rpoppi77 at gmail.com
Fri Jun 5 00:14:15 CEST 2009


Hi guys I think I found a bug on uac_replace_from(uri) function.

When I use it a second time at the same transaction (into the failure 
route) in order to send the call with a proper "From" to a backup 
provider, the function is not replacing the "From" information as 
expected but it is adding a second uri string just after the first. Like 
that:

Original from:
From: "grupo1" <sip:grupo1 at homedomain>;tag=qtfgz.

After the first use of uac_replace_from(uri) function:
From: "grupo1" <sip:username1 at domainproviderone>;tag=qtfgz.

Truncating after the second use:
From: "grupo1" 
<sip:username1 at domainprovideronesip:username2 at domainprovidertwo>;tag=qtfgz.


Do anybody used this function as that?

Regards, Ricardo.



More information about the Users mailing list