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.
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to