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 <[email protected]
<mailto:[email protected]>> wrote:
I have a question, I want to modify R-URI host portion for example
Sip: [email protected] <mailto:[email protected]>
Change to
Sip: [email protected] <mailto:[email protected]>
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
[email protected] <mailto:[email protected]>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users