[SR-Users] change from header in branches works strange

Andres Moya andres.moya.i at gmail.com
Sat Nov 21 01:49:47 CET 2009


Hi,

it is me again. I gave up on uac_replace_from, and trying with
subst('/^From:(.*)sip:[^@]*@[a-zA-Z0-9\.]+(.*)$/From:\1sip:$avp(i:21)@$avp(i:24)\2/i');

first time it substitute ok, on next branch i got result:
From: 
<sip:andres.moya4 at sipdiscount.com;transport=UDP>;tag=ee12f132.sip:andres.moya4 at sipdiscount.com

Something really strange, looks like there is no way i can authenticate 
to different SIP providers in one transaction :(

Anyone know how i can hack From field actually?




More information about the sr-users mailing list