[OpenSIPS-Users] Safe Place/Method to Fix Contact

Terrance Devor ter.devor at gmail.com
Sat Mar 7 07:32:21 CET 2015


Hello Everyone,

Our environment is in an EC2 instance, and would like to fix the Contact
when
signalling internally (ie, private IP), and externally (ie, public IP). I
have added
the following code:

In branch:

if(!isflagset(5)) {
                 remove_hf("Contact:");
                 append_hf("Contact: <sip:$fU@<private ip>>\r\n");
 }


In on reply:

if(!isflagset(5)) {
       remove_hf("Contact:");
        append_hf("Contact: <sip:$tU@<public ip>:5060>\r\n");
}

Code works fine and changes the contact as needed however, OpenSIPS stops
200OK on OK.
We have the following error message:

Failed to match the sequential request to a known dialog
Attempt to route with preloaded Route's [sip:5147398047@<unerline carrier
ip>/sip:5193403221@<public ip>/sip:<public
ip>;lr;did=2ad.791c28e4/74f3fb2e-3f34-1233-8f94-000c29d9b8bf]


Your help is greatly appreciated,

Terrance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150307/08c71343/attachment.htm>


More information about the Users mailing list