[Users] problem replacing from_uri with uac_replace_from
Raymond Chen
rchen at broadz.com
Thu Apr 6 01:18:59 CEST 2006
Bogdan-Andrei Iancu wrote:
> Hi Ray,
>
> the problem is that Openser keeps the changes into a separate list and
> applies them only when the message is sent out. So the new from you
> set will be applied only at t_rely(), so it will not be visible in the
> script.
>
> regards,
> bogdan
>
> Raymond Chen wrote:
>
>> 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
>>
>> _______________________________________________
>> Users mailing list
>> Users at openser.org
>> http://openser.org/cgi-bin/mailman/listinfo/users
>>
>
>
>
>
Hi Bogdan,
Is there anyway we can make this work? may be trick the lcr module use
different from_uri to query the database?
thanks
Ray
More information about the sr-users
mailing list