[Users] problem replacing from_uri with uac_replace_from
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Wed Apr 5 20:14:26 CEST 2006
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
>
More information about the Users
mailing list