[OpenSIPS-Users] user=phone combined with Drouting

Vlad Paiu vladpaiu at opensips.org
Wed Apr 18 14:10:32 CEST 2012


Hello,

For the To and From headers, use the uac_replace_from/uac_replace_to.
For the R-URI, add_uri_param() should work. Put some xlogs in your 
script before add_uri_param() to make sure the function is actually 
being called.

Regards,

Vlad Paiu
OpenSIPS Developer
http://www.opensips-solutions.com


On 04/14/2012 03:27 PM, Remco . wrote:
> Hi,
>
> An upstream carrier wants user=phone in the request uri, from header 
> and to header (and, if used in P-asserted-ID as well). To route 
> traffic to the carriers, drouting is being used. I'm using a routeid 
> in dr_rules to loop trough the custom route before the invite is sent 
> out to the carrier.
>
> I tried the following:
>
>        add_uri_param("user=phone");
>
> However it's not being added.
> For the to and from headers, I think uac_replace_from / uac_replace_to 
> will do the trick.
>
> Any idea how to achieve this? Thanks!
>
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120418/23befee8/attachment.htm>


More information about the Users mailing list