[Users] problem replacing from_uri with uac_replace_from

Raymond Chen rchen at broadz.com
Wed Apr 5 15:42:27 CEST 2006


Dear all,

we are trying to replace the from_uri with uac_replace_from function as 
following,  but the actual from_uri is not replaced after 
uac_replace_from is called as debug log.  so when we call load_gw() and 
next_gw() later in the configuration, the gateway came up is not for the 
replaced from_uri, it queried with original from_uri. Does anyone know 
how to completely replace the from_uri from original one.  or a avp id 
that can force the replacement?

uac_replace_from("$avp(s:newcallerid)","sip:$avp(s:newcallerid)@xxx.xxx.xxx.xxx:8080");
avp_print();



 0(20433) DEBUG:avpops:print_avp: p=0xf4f18568, flags=3
 0(20433) DEBUG:                        name=<currentcallerid>
 0(20433) DEBUG:                        val_str=<orignalcallerid>


thanks

Ray




More information about the sr-users mailing list