[OpenSIPS-Users] UDP to TCP issue with Re-INVITE

Mickael Hubert mickael at winlux.fr
Thu Dec 12 05:09:19 EST 2019


Hi all,
I have an issue, opensips doesn't want forward Re-INVITE during UDP to TCP
mapping session.
Customer (NATTED) -- TCP --> (public interface listen tcp:8060) OpenSIPS
(private interface listen udp:5060) --> rest of infrastructure (udp:5060)

I can send a call from customer to OpenSIPS (initial INVITE, 200OK, etc
...).
But when I received Re-INVITE from UAS (sip session timer), OpenSIPS
doesn't forward it to customer.

You can see the call flow here: https://photos.app.goo.gl/eUSb5MvBhUfueaoM7
You can see SIP messages and opensips's logs in txt file in attachment

OpenSIPS handles on it's public interface:
- Topology hiding
- Nat detection

Thanks a lot for you help !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20191212/a220f616/attachment-0001.html>
-------------- next part --------------
INITIAL INVITE from customer:

INVITE sip:asr at 2.2.2.2:8060;transport=tcp SIP/2.0
Via: SIP/2.0/TCP 192.168.1.8:50973;rport;branch=z9hG4bKPja6hGb9GFptpPTYGcRaM4Z4QhehHcWv-p;alias
Max-Forwards: 70
From: <sip:888888888 at 192.168.1.8>;tag=60FrY6pO9SoXc9pq-vRNSFXU7h2eORvr
To: <sip:asr at 2.2.2.2>
Contact: <sip:888888888 at 192.168.1.8:5160>
Call-ID: MRCP_875frefer3fr3f54
CSeq: 21365 INVITE
Allow: SUBSCRIBE, NOTIFY, REFER, INVITE, ACK, BYE, CANCEL, UPDATE
Supported: eventlist
P-Preferred-Identity: <sip:888888888 at 192.168.1.8:5160>
User-Agent: customer
Content-Type: application/sdp
Content-Length:   262

v=0
o=- 3785066916 3785066916 IN IP4 192.168.1.8
s=-
c=IN IP4 192.168.1.8
t=0 0
m=application 9 TCP/MRCPv2 1
a=setup:active
a=connection:new
a=resource:speechrecog
a=cmid:1
m=audio 7174 RTP/AVP 8
a=rtpmap:8 PCMA/8000/1
a=ptime:20
a=sendrecv
a=mid:1


200OK from rest of infra:

SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.1.15.153:5060;branch=z9hG4bKcb28.f6318707.0;i=07c97864
From: <sip:888888888 at 192.168.1.8>;tag=60FrY6pO9SoXc9pq-vRNSFXU7h2eORvr
To: <sip:asr at 2.2.2.2>;tag=KHj388pv505tK
Call-ID: MRCP_875frefer3fr3f54
CSeq: 21365 INVITE
Contact: <sip:asr at 10.1.15.152:5060;transport=udp>
User-Agent: A-SBC 1 
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, refer
Session-Expires: 120;refresher=uas
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 303
X-cid: 201-1576078116.5973787
P-Asserted-Identity: "asr" <sip:asr at 2.2.2.2>

v=0
o=AM-MRCP-001 7483418216310407231 4017509470597807881 IN IP4 3.3.3.3
s=-
c=IN IP4 3.3.3.3
t=0 0
m=application 1544 TCP/MRCPv2 1
a=setup:passive
a=connection:new
a=channel:e620c8441c2a11ea at speechrecog
a=cmid:1
m=audio 10040 RTP/AVP 8
a=rtpmap:8 PCMA/8000
a=ptime:20
a=mid:1

same 200OK from opensips's public interface:

SIP/2.0 200 OK
Via: SIP/2.0/TCP 192.168.1.8:50973;received=5.5.5.5;rport=50973;branch=z9hG4bKPja6hGb9GFptpPTYGcRaM4Z4QhehHcWv-p;alias
From: <sip:427842085 at 192.168.1.8>;tag=60FrY6pO9SoXc9pq-vRNSFXU7h2eORvr
To: <sip:asr at 4.4.4.4>;tag=KHj388pv505tK
Call-ID: MRCP_875frefer3fr3f54
CSeq: 21365 INVITE
Contact: <sip:4.4.4.4:8060;transport=tcp;xyz=432.a7ad12e1>
User-Agent: A-SBC 1 
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, refer
Session-Expires: 120;refresher=uas
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 303
X-cid: 201-1576078116.5973787

v=0
o=AM-MRCP-001 7483418216310407231 4017509470597807881 IN IP4 3.3.3.3
s=-
c=IN IP4 3.3.3.3
t=0 0
m=application 1544 TCP/MRCPv2 1
a=setup:passive
a=connection:new
a=channel:e620c8441c2a11ea at speechrecog
a=cmid:1
m=audio 10040 RTP/AVP 8
a=rtpmap:8 PCMA/8000
a=ptime:20
a=mid:1

Re-INVITE from rest of infra (never forwareded):

INVITE sip:10.1.15.153;xyz=432.a7ad12e1 SIP/2.0
Via: SIP/2.0/UDP 10.1.15.152;rport;branch=z9hG4bKF3U172434rX9c
Max-Forwards: 70
From: <sip:asr at 2.2.2.2>;tag=KHj388pv505tK
To: <sip:888888888 at 192.168.1.8>;tag=60FrY6pO9SoXc9pq-vRNSFXU7h2eORvr
Call-ID: MRCP_875frefer3fr3f54
CSeq: 13485294 INVITE
Contact: <sip:asr at 10.1.15.152:5060;transport=udp>
User-Agent: A-SBC 1 
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
Supported: timer, path, replaces
Session-Expires: 120;refresher=uac
Min-SE: 120
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 303

v=0
o=AM-MRCP-001 7483418216310407231 4017509470597807881 IN IP4 3.3.3.3
s=-
c=IN IP4 3.3.3.3
t=0 0
m=application 1544 TCP/MRCPv2 1
a=setup:passive
a=connection:new
a=channel:e620c8441c2a11ea at speechrecog
a=cmid:1
m=audio 10040 RTP/AVP 8
a=rtpmap:8 PCMA/8000
a=ptime:20
a=mid:1

OpenSIPS's logs before Re-INVITE t_relay:
Dec 10 17:12:59 am-sipproxy-001 /usr/local/sbin/opensips[8719]: MRCP_875frefer3fr3f54 SIP Request INVITE has a To-Tag
Dec 10 17:12:59 am-sipproxy-001 /usr/local/sbin/opensips[8719]: ERROR:dialog:w_validate_dialog: null dialog
Dec 10 17:12:59 am-sipproxy-001 /usr/local/sbin/opensips[8719]: MRCP_875frefer3fr3f54 Dialog not validated !
Dec 10 17:12:59 am-sipproxy-001 /usr/local/sbin/opensips[8719]: MRCP_875frefer3fr3f54 Dialog Matched - upstream
Dec 10 17:12:59 am-sipproxy-001 /usr/local/sbin/opensips[8719]: INFO:core:probe_max_sock_buff: using snd buffer of 416 kb
Dec 10 17:12:59 am-sipproxy-001 /usr/local/sbin/opensips[8719]: INFO:core:init_sock_keepalive: TCP keepalive enabled on socket 171
Dec 10 17:12:59 am-sipproxy-001 /usr/local/sbin/opensips[8719]: MRCP_875frefer3fr3f54 t_relay done !



More information about the Users mailing list