[SR-Users] Kamailio Bridge

Daniel-Constantin Mierla miconda at gmail.com
Tue Mar 22 08:23:52 CET 2016


Hello,

I noticed in your config snipets that you always use 'faei' as flags for
rtpproxy manage. For one case you need to change the order of 'ei' and
make it 'ie'.

Cheers,
Daniel

On 21/03/16 15:17, Nelson Migliaro wrote:
> Hello,
>
> I am trying to set up a Kamailio in Bridge Mode with two interfaces
> using rtpproxy.
>
> The problem I have is SDP information port and IP is not updated from
> outside to inside. But on the other hand the SDP is rewrited from
> inside to outside.
>
> In the rtpproxy log I am seeing this error:
>
> Mar 21 14:21:21 kamailio rtpproxy[6119]: ERR:create_twinlistener:
> can't bind to the IPv4 port 23414: Cannot assign requested address
> Mar 21 14:21:21 kamailio rtpproxy[6119]: ERR:handle_command: can't
> create listener
>
> and in kamailio log:
>
> 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 <http://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 at 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 at asterisk-inside-ip>;tag=as497457e6
> To: <sip:999999999 at inside-kamailio-ip>
> Contact: <sip:1000 at asterisk-inside-ip:5060>
> Call-ID: 57bd4ca457972f5a42502ba34bba4500 at 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 at 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 at 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 at sip-vendor-ip>;tag=as497457e6
> To: <sip:999999999 at sip.sip-vendor-ip>
> Contact: <sip:1000 at asterisk-inside-ip:5060>
> Call-ID: 57bd4ca457972f5a42502ba34bba4500 at 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 at 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 at sip-vendor-ip>;tag=as497457e6
> To: <sip:999999999 at sip.sip-vendor-ip>;tag=fkii1xm4-CC-26
> Call-ID: 57bd4ca457972f5a42502ba34bba4500 at 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 at 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 at asterisk-inside-ip>;tag=as497457e6
> To: <sip:999999999 at inside-kamailio-ip>;tag=fkii1xm4-CC-26
> Call-ID: 57bd4ca457972f5a42502ba34bba4500 at 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 at 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
>
>
>
>
>
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, Berlin, May 18-20, 2016 - http://www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160322/a13ee016/attachment.html>


More information about the sr-users mailing list