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

Terrance Devor ter.devor at gmail.com
Tue Mar 10 21:29:08 CET 2015


Hello Răzvan,

Thank you for your response. I think I am making a mess of this. Maybe
if I explain what I am trying to accomplish. Please consider the following:

U 2015/03/10 15:31:47.591498 25.21.74.12:5060 -> 192.168.2.5:5060
INVITE sip:9187321212 at 74.75.31.22 SIP/2.0.
Contact: <sip:gw+cust__orig_1_gw1 at 25.21.74.12:5060
;transport=udp;gw=cust__orig_1_gw1>.

U 2015/03/10 15:31:47.598538 192.168.2.5:5060 -> 192.168.2.10:5060
INVITE sip:9187321212 at 192.168.2.10:5060 SIP/2.0.
Contact: <sip:gw+cust__orig_1_gw1 at 25.21.74.12:5060
;transport=udp;gw=cust__orig_1_gw1>.

U 2015/03/10 15:31:47.857774 192.168.2.10:5060 -> 192.168.2.5:5060
SIP/2.0 100 Trying.
Contact: <sip:9187321212 at 192.168.2.10:5060>.

U 2015/03/10 15:31:47.858765 192.168.2.10:5060 -> 192.168.2.5:5060
SIP/2.0 200 OK.
Contact: <sip:9187321212 at 192.168.2.10:5060>.

U 2015/03/10 15:31:47.903559 192.168.2.5:5060 -> 25.21.74.12:5060
SIP/2.0 200 OK.
Contact: <sip:192.168.2.20:5060>.

U 2015/03/10 15:31:47.945974 25.21.74.12:5060 -> 192.168.2.5:5060
ACK sip:192.168.2.20:5060 SIP/2.0.
Contact: <sip:gw+cust__orig_1_gw1 at 25.21.74.12:5060
;transport=udp;gw=cust__orig_1_gw1>.

U 2015/03/10 15:31:48.204696 192.168.2.5:5060 -> 192.168.2.10:5060
ACK sip:9187321212 at 192.168.2.10:5060 SIP/2.0.
Contact: <sip:gw+cust__orig_1_gw1 at 25.21.74.12:5060
;transport=udp;gw=cust__orig_1_gw1>.

U 2015/03/10 15:32:31.488749 25.21.74.12:5060 -> 192.168.2.5:5060
BYE sip:192.168.2.20:5060 SIP/2.0.
Contact: <sip:gw+cust__orig_1_gw1 at 25.21.74.12:5060
;transport=udp;gw=cust__orig_1_gw1>.

U 2015/03/10 15:32:31.658439 192.168.2.5:5060 -> 192.168.2.10:5060
BYE sip:9187321212 at 192.168.2.10:5060 SIP/2.0.
Contact: <sip:gw+cust__orig_1_gw1 at 25.21.74.12:5060
;transport=udp;gw=cust__orig_1_gw1>.
​
25,21.74.12 Underline Carrier
192.168.2.5 Opensips
192.168.2.10 Gateway

The contacts that I am attempting to do is modify is:

Message Two:
Original: Contact: <sip:gw+cust__orig_1_gw1 at 25.21.74.12:5060
;transport=udp;gw=cust__orig_1_gw1>.
Modified: Contact: <sip:192.168.2.5:5060>.

Message Five:
Original: Contact: <sip:192.168.2.20:5060>.
Modified: Contact: <sip:74.75.31.22:5060>.

Message Seven:
Original: Contact: <sip:gw+cust__orig_1_gw1 at 25.21.74.12:5060
;transport=udp;gw=cust__orig_1_gw1>.
Modified: Contact: <sip:192.168.2.5:5060>.

Message Nine:
Original: Contact: <sip:gw+cust__orig_1_gw1 at 25.21.74.12:5060
;transport=udp;gw=cust__orig_1_gw1>.
Modified: Contact: <sip:192.168.2.5:5060>.

When I attempt to making such modifications, I am receiving errors such as:

Failed to match the sequential request to a known dialog
Attempt to route with preloaded Route's

What are the requirements to shape the Contact header to point to the right
IP and still maintain the preloaded
route.

Kind Regards,

Terrance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150310/3b8f2425/attachment.htm>


More information about the Users mailing list