ERROR: rtpproxy [rtpproxy.c:2727]: force_rtp_proxy(): incorrect port 0 in reply from rtp proxy
Something strange and interesting is the port that shows up in the RTPPROXY error (23414) does not corresponds to any ports used.
Thank you
Nelson.-
---------------------------------------------------------------------------------------------------------------------------------------------
Everything is set up this way:
Kamailio
Asterisk (asterisk-inside-ip) <-> Kamailio (inside-kamailio-ip) / Kamailio (outside-kamailio-ip) <-> sip-vendor-ip
listen=inside-kamailio-ip
listen=outside-kamailio-ip
mhomed=1
if(src_ip=="asterisk-inside-ip"){
rtpproxy_manage("faie");
}
if(src_ip=="sip-vendor-ip"){
rtpproxy_manage("faie");
}
rtpproxy
OPTIONS="rtpproxy -l inside-kamailio-ip/outside-kamailio-ip -m 20000 -M 30000 -u rtpproxy:rtpproxy -p /var/run/rtpproxy/rtpproxy.pid -s udp:
127.0.0.1:7722 -d DBUG:LOG_LOCAL6"
----------------------------------------------------------------------------------------------------------------------------------------------
SIP TRACES
2016/03/21 14:46:52.121472 asterisk-inside-ip:5060 -> inside-kamailio-ip:5060
INVITE sip:999999999@inside-kamailio-ip SIP/2.0
Via: SIP/2.0/UDP asterisk-inside-ip:5060;branch=z9hG4bK7f1ece8e;rport
Max-Forwards: 70
From: 111111111<sip:1000@asterisk-inside-ip>;tag=as497457e6
To: <sip:999999999@inside-kamailio-ip>
Contact: <sip:1000@asterisk-inside-ip:5060>
Call-ID: 57bd4ca457972f5a42502ba34bba4500@asterisk-inside-ip:5060
CSeq: 102 INVITE
User-Agent: Abantix
Date: Mon, 21 Mar 2016 13:46:52 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Remote-Party-ID: <sip:888888888@local-domain;user=phone>;privacy=off;party=calling
Content-Type: application/sdp
Content-Length: 251
v=0
o=root 478097443 478097443 IN IP4 asterisk-inside-ip ########## ASTERISK IP
s=asterisk
c=IN IP4 asterisk-inside-ip ########## ASTERISK IP
t=0 0
m=audio 17146 RTP/AVP 8 101 ########## ASTERISK PORT
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
--------------------------------------------------------------------------------------------------------------------------------------------------------
2016/03/21 14:46:52.139435 outside-kamailio-ip:5060 ->sip-vendor-ip:5060
INVITE sip:999999999@sip-vendor-ip SIP/2.0
Record-Route: <sip:outside-kamailio-ip;r2=on;lr=on;ftag=as497457e6;vsf=AAAAAAMEAAAACXIEAW5fXkFYWUwAUkM-;vst=AAAAAAcHAw8MDgsAAHZBKUEeQF5DRUFMGEtCMDY-;nat=yes>
Record-Route: <sip:inside-kamailio-ip;r2=on;lr=on;ftag=as497457e6;vsf=AAAAAAMEAAAACXIEAW5fXkFYWUwAUkM-;vst=AAAAAAcHAw8MDgsAAHZBKUEeQF5DRUFMGEtCMDY-;nat=yes>
Via: SIP/2.0/UDP outside-kamailio-ip;branch=z9hG4bK0bfd.7bd4d3ae01e5850c14a3a939a612a05a.0
Via: SIP/2.0/UDP asterisk-inside-ip:5060;received=asterisk-inside-ip;branch=z9hG4bK7f1ece8e;rport=5060
Max-Forwards: 69
From: 1111111111 <sip:1111111111@sip-vendor-ip>;tag=as497457e6
To: <sip:999999999@sip.sip-vendor-ip>
Contact: <sip:1000@asterisk-inside-ip:5060>
Call-ID: 57bd4ca457972f5a42502ba34bba4500@asterisk-inside-ip:5060
CSeq: 102 INVITE
User-Agent: Abantix Voice Sevices
Date: Mon, 21 Mar 2016 13:46:52 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Remote-Party-ID: <sip:888888888@local-domain;user=phone>;privacy=off;party=calling
Content-Type: application/sdp
Content-Length: 271
v=0
o=root 478097443 478097443 IN IP4 outside-kamailio-ip ########## OUTSIDE KAMAILIO IP REWRITED BY RTPPROXY
s=asterisk
c=IN IP4 outside-kamailio-ip ########## OUTSIDE KAMAILIO IP REWRITED BY RTPPROXY
t=0 0
m=audio 24122 RTP/AVP 8 101 ########## OUTSIDE KAMAILIO PORT REWRITED BY RTPPROXY
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
--------------------------------------------------------------------------------------------------------------------------------------------------------
2016/03/21 14:46:57.393518sip-vendor-ip:5060 -> outside-kamailio-ip:5060
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP outside-kamailio-ip;rport=5060;branch=z9hG4bK0bfd.7bd4d3ae01e5850c14a3a939a612a05a.1
Via: SIP/2.0/UDP asterisk-inside-ip:5060;received=asterisk-inside-ip;branch=z9hG4bK7f1ece8e;rport=5060
From: 1111111111 <sip:1111111111@sip-vendor-ip>;tag=as497457e6
To: <sip:999999999@sip.sip-vendor-ip>;tag=fkii1xm4-CC-26
Call-ID: 57bd4ca457972f5a42502ba34bba4500@asterisk-inside-ip:5060
CSeq: 102 INVITE
Record-Route: <sip:sip-vendo-ip;lr;ftag=as497457e6;vsf=AAAAAAEECQkCAgsNAXBeLxwZHQxBH11lcw--;did=0e.126;nat=yes>
Record-Route: <sip:outside-kamailio-ip;r2=on;lr=on;ftag=as497457e6;vsf=AAAAAAMEAAAACXIEAW5fXkFYWUwAUkM-;vst=AAAAAAcHAw8MDgsAAHZBKUEeQF5DRUFMGEtCMDY-;nat=yes>
Record-Route: <sip:inside-kamailio-ip;r2=on;lr=on;ftag=as497457e6;vsf=AAAAAAMEAAAACXIEAW5fXkFYWUwAUkM-;vst=AAAAAAcHAw8MDgsAAHZBKUEeQF5DRUFMGEtCMDY-;nat=yes>
Contact: <sip:999999999@sip-vendor-carrier:5060;user=phone;transport=udp>
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER,INFO,PRACK,SUBSCRIBE,NOTIFY,UPDATE,MESSAGE,REFER
Content-Length: 237
Content-Type: application/sdp
v=0
o=HuaweiSoftX3000 71167517 71167517 IN IP4sip-vendor-ip ########## SIP VENDOR IP
s=Sip Call
c=IN IP4sip-vendor-ip ########## SIP VENDOR IP
t=0 0
m=audio 44862 RTP/AVP 8 101 ########## SIP VENDOR PORT
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=ptime:20
a=fmtp:101 0-15
a=nortpproxy:yes
--------------------------------------------------------------------------------------------------------------------------------------------------------
2016/03/21 14:46:57.395029 inside-kamailio-ip:5060 -> asterisk-inside-ip:5060
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP asterisk-inside-ip:5060;received=asterisk-inside-ip;branch=z9hG4bK7f1ece8e;rport=5060
From: "1000" <sip:1000@asterisk-inside-ip>;tag=as497457e6
To: <sip:999999999@inside-kamailio-ip>;tag=fkii1xm4-CC-26
Call-ID: 57bd4ca457972f5a42502ba34bba4500@asterisk-inside-ip:5060
CSeq: 102 INVITE
Record-Route: <sip:sip-vendo-ip;lr;ftag=as497457e6;vsf=AAAAAAEECQkCAgsNAXBeLxwZHQxBH11lcw--;did=0e.126;nat=yes>
Record-Route: <sip:outside-kamailio-ip;r2=on;lr=on;ftag=as497457e6;vsf=AAAAAAMEAAAACXIEAW5fXkFYWUwAUkM-;vst=AAAAAAcHAw8MDgsAAHZBKUEeQF5DRUFMGEtCMDY-;nat=yes>
Record-Route: <sip:inside-kamailio-ip;r2=on;lr=on;ftag=as497457e6;vsf=AAAAAAMEAAAACXIEAW5fXkFYWUwAUkM-;vst=AAAAAAcHAw8MDgsAAHZBKUEeQF5DRUFMGEtCMDY-;nat=yes>
Contact: <sip:999999999@sip-vendor-carrier:5060;user=phone;transport=udp>
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER,INFO,PRACK,SUBSCRIBE,NOTIFY,UPDATE,MESSAGE,REFER
Content-Length: 237
Content-Type: application/sdp
v=0
o=HuaweiSoftX3000 71167517 71167517 IN IP4sip-vendor-ip ########## SIP VENDOR IP NOT REWRITED BY RTPPROXY
s=Sip Call
c=IN IP4sip-vendor-ip ########## SIP VENDOR IP NOT REWRITED BY RTPPROXY
t=0 0
m=audio 44862 RTP/AVP 8 101 ########## SIP VENDOR PORT NOT REWRITED BY RTPPROXY
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=ptime:20
a=fmtp:101 0-15
a=nortpproxy:yes