[OpenSIPS-Users] Modify R-URI
Răzvan Crainea
razvan at opensips.org
Tue Sep 9 12:48:54 CEST 2014
Hi, Satish!
If you want to change the domain of the R-URI, you can use the $rd
pseudovariable:
$rd = "foo.com";
Note that this means that the requests will go to foo.com (after the DNS
lookup & SRV stuff) and not to "abc.com". If you want the request to go
to "abc.com", you'll have to change the destination uri, like this:
$dd = $rd;
$rd = "foo.com";
I hope this works for you.
Best regards,
Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com
On 09/06/2014 09:54 PM, Jeff Pyle wrote:
> Satish,
>
> The rewritehost() function may do exactly what you want.
>
> http://www.opensips.org/Documentation/Script-CoreFunctions#toc35
>
>
> - Jeff
>
>
>
> On Sat, Sep 6, 2014 at 9:27 AM, Satish Patel <satish.txt at gmail.com
> <mailto:satish.txt at gmail.com>> wrote:
>
> I have a question, I want to modify R-URI host portion for example
>
> Sip: 1001 at abc.com <mailto:1001 at abc.com>
>
> Change to
>
> Sip: 1001 at foo.com <mailto:1001 at foo.com>
>
> But after doing that it break my routing logic, so just want to
> know did it possible to chnage host portion of R-URI?
>
> Sent from my iPhone
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
> _______________________________________________
> 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/20140909/2bf14f72/attachment.htm>
More information about the Users
mailing list