OpenSIPS Load Balancer and FreeSwitch issue

2011-12-16
2013-05-09
  • Peter Spins
    Peter Spins
    2011-12-16

    All,
      Hopefully someone can assist me - I'll gladly give $50 to the person who helps me fix the issue - I have an OpenSIPs server configured as a load balancer (http://wiki.freeswitch.org/wiki/Enterprise_deployment_OpenSIPS) that receives the call and forwards it to my Freeswitch Server for an IVR.  When I had the call just routing to the Freeswitch server I got the audio working by setting the ext-rtp-ip to the public IP.  Now that I route the SIP call through the OpenSIPs server there is no audio - I'm guessing it a NAT issue as always.

    Both the OpenSIPS and FreeSwitch server have an internal private IP - OpenSIPS = 192.168.23.1 and FreeSwitch 192.168.23.2
    Both servers also have a public IP that routes to the internal IP OpensIPS = 47.1.1.1 and Freeswitch = 47.1.1.2

    Call gets received by the OpenSIPs via the external IP - routes the call to the internal IP on the Freeswitch server which answers the call - but no audio - I think the FreeSwitch is trying to route the RTP Audio via its internal private IP instead of the public IP of 47.1.1.2.  Not sure if this is the real issue or how to configure it route RTP properly  … all help is appreciated.  $50 Paypal to whoever fixes this for me!  Thanks

    -Peter

     
  • Franklin Lee
    Franklin Lee
    2011-12-17

    sip trace on both opensips and freeswitch will be helpful to debug this issue.

     
  • Peter Spins
    Peter Spins
    2011-12-17

    OpenSips Trace

    interface: eth0 (192.168.20.0/255.255.252.0)
    filter: (ip or ip6) and ( port 5060 )
    #
    U 192.168.23.34:5060 -> 192.168.23.33:5060
    OPTIONS sip:192.168.23.33 SIP/2.0.
    Via: SIP/2.0/UDP 192.168.23.34;branch=z9hG4bKc2ac.43239f3.0.
    To: sip:192.168.23.33.
    From: <sip:dispatcher@localhost>;tag=9d2ce5b1f2524a541f59592022607908-cb69.
    CSeq: 14 OPTIONS.
    Call-ID: 4fa62308308dc638-2120@192.168.23.34.
    Content-Length: 0.
    User-Agent: OpenSIPS (1.7.0-notls (x86_64/linux)).
    .

    #
    U 192.168.23.33:5060 -> 192.168.23.34:5060
    SIP/2.0 200 OK.
    Via: SIP/2.0/UDP 192.168.23.34;branch=z9hG4bKc2ac.43239f3.0.
    From: <sip:dispatcher@localhost>;tag=9d2ce5b1f2524a541f59592022607908-cb69.
    To: <sip:192.168.23.33>;tag=8BZFB3UyS7U1D.
    Call-ID: 4fa62308308dc638-2120@192.168.23.34.
    CSeq: 14 OPTIONS.
    Contact: <sip:192.168.23.33>.
    User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-f4320b5 2011-11-28 08-27-46 -0600.
    Accept: application/sdp.
    Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE.
    Supported: timer, precondition, path, replaces.
    Allow-Events: talk, hold, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer.
    Content-Length: 0.
    .

    #
    U 184.150.225.230:5062 -> 192.168.23.34:5060
    INVITE sip:16474272135@66.240.179.221;user=phone SIP/2.0.
    Via: SIP/2.0/UDP 184.150.225.230:5062;rport;branch=z9hG4bK-4008200999-3775991592-3239888547-3704563422.
    From: <sip:14167125040@184.150.225.230:5062;user=phone>;tag=917850919-3775991592-3239888547-3704563422.
    To: <sip:16474272135@66.240.179.221;user=phone>.
    Call-ID: 274bb6c6280f11e1a3c61cc1de26cfdc@184.150.225.230.
    CSeq: 1 INVITE.
    Contact: <sip:14167125040@184.150.225.230:5062;user=phone>.
    Content-Type: application/sdp.
    Allow: ACK, BYE, CANCEL, INFO, INVITE, OPTIONS, REFER, REGISTER, SUBSCRIBE, UPDATE.
    Max-Forwards: 70.
    User-Agent: MERA MVTS3G v.4.3.0-33a.
    Cisco-Guid: 659096324-672076257-2747669697-3727085532.
    Remote-Party-ID: <sip:14167125040@184.150.225.230:5062;user=phone>;party=calling;privacy=off;screen=no.
    Content-Length:   306.
    .
    v=0.
    o=- 1324058134 1324058134 IN IP4 184.150.225.229.
    s=-.
    c=IN IP4 184.150.225.229.
    t=0 0.
    m=audio 51562 RTP/AVP 0 8 18 101.
    a=rtpmap:0 PCMU/8000.
    a=rtpmap:8 PCMA/8000.
    a=rtpmap:18 G729/8000.
    a=fmtp:18 annexb=no.
    a=rtpmap:101 telephone-event/8000.
    a=fmtp:101 0-15.
    a=sendrecv.
    a=silenceSupp:off - - - -.

    #
    U 192.168.23.34:5060 -> 184.150.225.230:5062
    SIP/2.0 100 Giving a try.
    Via: SIP/2.0/UDP 184.150.225.230:5062;rport=5062;branch=z9hG4bK-4008200999-3775991592-3239888547-3704563422.
    From: <sip:14167125040@184.150.225.230:5062;user=phone>;tag=917850919-3775991592-3239888547-3704563422.
    To: <sip:16474272135@66.240.179.221;user=phone>.
    Call-ID: 274bb6c6280f11e1a3c61cc1de26cfdc@184.150.225.230.
    CSeq: 1 INVITE.
    Server: OpenSIPS (1.7.0-notls (x86_64/linux)).
    Content-Length: 0.
    .

    #
    U 192.168.23.34:5060 -> 192.168.23.33:5060
    INVITE sip:16474272135@66.240.179.221;user=phone SIP/2.0.
    Record-Route: <sip:192.168.23.34;lr;ftag=917850919-3775991592-3239888547-3704563422;did=5df.895f858>.
    Via: SIP/2.0/UDP 192.168.23.34;branch=z9hG4bKc001.821430b6.0.
    Via: SIP/2.0/UDP 184.150.225.230:5062;received=184.150.225.230;rport=5062;branch=z9hG4bK-4008200999-3775991592-3239888547-3704563422.
    From: <sip:14167125040@184.150.225.230:5062;user=phone>;tag=917850919-3775991592-3239888547-3704563422.
    To: <sip:16474272135@66.240.179.221;user=phone>.
    Call-ID: 274bb6c6280f11e1a3c61cc1de26cfdc@184.150.225.230.
    CSeq: 1 INVITE.
    Contact: <sip:14167125040@184.150.225.230:5062;user=phone>.
    Content-Type: application/sdp.
    Allow: ACK, BYE, CANCEL, INFO, INVITE, OPTIONS, REFER, REGISTER, SUBSCRIBE, UPDATE.
    Max-Forwards: 69.
    User-Agent: MERA MVTS3G v.4.3.0-33a.
    Cisco-Guid: 659096324-672076257-2747669697-3727085532.
    Remote-Party-ID: <sip:14167125040@184.150.225.230:5062;user=phone>;party=calling;privacy=off;screen=no.
    Content-Length:   306.
    .
    v=0.
    o=- 1324058134 1324058134 IN IP4 184.150.225.229.
    s=-.
    c=IN IP4 184.150.225.229.
    t=0 0.
    m=audio 51562 RTP/AVP 0 8 18 101.
    a=rtpmap:0 PCMU/8000.
    a=rtpmap:8 PCMA/8000.
    a=rtpmap:18 G729/8000.
    a=fmtp:18 annexb=no.
    a=rtpmap:101 telephone-event/8000.
    a=fmtp:101 0-15.
    a=sendrecv.
    a=silenceSupp:off - - - -.

    #
    U 192.168.23.33:5060 -> 192.168.23.34:5060
    SIP/2.0 100 Trying.
    Via: SIP/2.0/UDP 192.168.23.34;branch=z9hG4bKc001.821430b6.0.
    Via: SIP/2.0/UDP 184.150.225.230:5062;received=184.150.225.230;rport=5062;branch=z9hG4bK-4008200999-3775991592-3239888547-3704563422.
    Record-Route: <sip:192.168.23.34;lr;ftag=917850919-3775991592-3239888547-3704563422;did=5df.895f858>.
    From: <sip:14167125040@184.150.225.230:5062;user=phone>;tag=917850919-3775991592-3239888547-3704563422.
    To: <sip:16474272135@66.240.179.221;user=phone>.
    Call-ID: 274bb6c6280f11e1a3c61cc1de26cfdc@184.150.225.230.
    CSeq: 1 INVITE.
    User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-f4320b5 2011-11-28 08-27-46 -0600.
    Content-Length: 0.
    .

    #
    U 192.168.23.33:5060 -> 192.168.23.34:5060
    SIP/2.0 200 OK.
    Via: SIP/2.0/UDP 192.168.23.34;branch=z9hG4bKc001.821430b6.0.
    Via: SIP/2.0/UDP 184.150.225.230:5062;received=184.150.225.230;rport=5062;branch=z9hG4bK-4008200999-3775991592-3239888547-3704563422.
    Record-Route: <sip:192.168.23.34;lr;ftag=917850919-3775991592-3239888547-3704563422;did=5df.895f858>.
    From: <sip:14167125040@184.150.225.230:5062;user=phone>;tag=917850919-3775991592-3239888547-3704563422.
    To: <sip:16474272135@66.240.179.221;user=phone>;tag=9mr8cyc2pgjmS.
    Call-ID: 274bb6c6280f11e1a3c61cc1de26cfdc@184.150.225.230.
    CSeq: 1 INVITE.
    Contact: <sip:16474272135@192.168.23.33:5060;transport=udp>.
    User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-f4320b5 2011-11-28 08-27-46 -0600.
    Accept: application/sdp.
    Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE.
    Supported: timer, precondition, path, replaces.
    Allow-Events: talk, hold, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer.
    Content-Type: application/sdp.
    Content-Disposition: session.
    Content-Length: 249.
    Remote-Party-ID: "16474272135" <sip:16474272135@66.240.179.221>;party=calling;privacy=off;screen=no.
    .
    v=0.
    o=FreeSWITCH 1324008356 1324008357 IN IP4 192.168.23.33.
    s=FreeSWITCH.
    c=IN IP4 192.168.23.33.
    t=0 0.
    m=audio 49774 RTP/AVP 0 101.
    a=rtpmap:0 PCMU/8000.
    a=rtpmap:101 telephone-event/8000.
    a=fmtp:101 0-16.
    a=silenceSupp:off - - - -.
    a=ptime:20.

    #
    U 192.168.23.34:5060 -> 184.150.225.230:5062
    SIP/2.0 200 OK.
    Via: SIP/2.0/UDP 184.150.225.230:5062;received=184.150.225.230;rport=5062;branch=z9hG4bK-4008200999-3775991592-3239888547-3704563422.
    Record-Route: <sip:192.168.23.34;lr;ftag=917850919-3775991592-3239888547-3704563422;did=5df.895f858>.
    From: <sip:14167125040@184.150.225.230:5062;user=phone>;tag=917850919-3775991592-3239888547-3704563422.
    To: <sip:16474272135@66.240.179.221;user=phone>;tag=9mr8cyc2pgjmS.
    Call-ID: 274bb6c6280f11e1a3c61cc1de26cfdc@184.150.225.230.
    CSeq: 1 INVITE.
    Contact: <sip:16474272135@192.168.23.33:5060;transport=udp>.
    User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-f4320b5 2011-11-28 08-27-46 -0600.
    Accept: application/sdp.
    Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE.
    Supported: timer, precondition, path, replaces.
    Allow-Events: talk, hold, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer.
    Content-Type: application/sdp.
    Content-Disposition: session.
    Content-Length: 249.
    Remote-Party-ID: "16474272135" <sip:16474272135@66.240.179.221>;party=calling;privacy=off;screen=no.
    .
    v=0.
    o=FreeSWITCH 1324008356 1324008357 IN IP4 192.168.23.33.
    s=FreeSWITCH.
    c=IN IP4 192.168.23.33.
    t=0 0.
    m=audio 49774 RTP/AVP 0 101.
    a=rtpmap:0 PCMU/8000.
    a=rtpmap:101 telephone-event/8000.
    a=fmtp:101 0-16.
    a=silenceSupp:off - - - -.
    a=ptime:20.

    #
    U 184.150.225.230:5062 -> 192.168.23.34:5060
    ACK sip:16474272135@192.168.23.33:5060;transport=udp SIP/2.0.
    Via: SIP/2.0/UDP 184.150.225.230:5062;rport;branch=z9hG4bK-1821528359-3775991592-3239888547-3704563422.
    Route: <sip:192.168.23.34;lr;ftag=917850919-3775991592-3239888547-3704563422;did=5df.895f858>.
    From: <sip:14167125040@184.150.225.230:5062;user=phone>;tag=917850919-3775991592-3239888547-3704563422.
    To: <sip:16474272135@66.240.179.221;user=phone>;tag=9mr8cyc2pgjmS.
    Call-ID: 274bb6c6280f11e1a3c61cc1de26cfdc@184.150.225.230.
    CSeq: 1 ACK.
    Max-Forwards: 70.
    User-Agent: MERA MVTS3G v.4.3.0-33a.
    Content-Length: 0.
    .

    #
    U 192.168.23.34:5060 -> 192.168.23.33:5060
    ACK sip:16474272135@192.168.23.33:5060;transport=udp SIP/2.0.
    Via: SIP/2.0/UDP 192.168.23.34;branch=z9hG4bKc001.821430b6.2.
    Via: SIP/2.0/UDP 184.150.225.230:5062;received=184.150.225.230;rport=5062;branch=z9hG4bK-1821528359-3775991592-3239888547-3704563422.
    From: <sip:14167125040@184.150.225.230:5062;user=phone>;tag=917850919-3775991592-3239888547-3704563422.
    To: <sip:16474272135@66.240.179.221;user=phone>;tag=9mr8cyc2pgjmS.
    Call-ID: 274bb6c6280f11e1a3c61cc1de26cfdc@184.150.225.230.
    CSeq: 1 ACK.
    Max-Forwards: 69.
    User-Agent: MERA MVTS3G v.4.3.0-33a.
    Content-Length: 0.
    .

    #
    U 192.168.23.33:5060 -> 192.168.23.34:5060
    BYE sip:14167125040@184.150.225.230:5062;user=phone SIP/2.0.
    Via: SIP/2.0/UDP 192.168.23.33;rport;branch=z9hG4bKrt6g7QU7cmH6e.
    Route: <sip:192.168.23.34;lr;ftag=917850919-3775991592-3239888547-3704563422;did=5df.895f858>.
    Max-Forwards: 70.
    From: <sip:16474272135@66.240.179.221;user=phone>;tag=9mr8cyc2pgjmS.
    To: <sip:14167125040@184.150.225.230:5062;user=phone>;tag=917850919-3775991592-3239888547-3704563422.
    Call-ID: 274bb6c6280f11e1a3c61cc1de26cfdc@184.150.225.230.
    CSeq: 21693003 BYE.
    Contact: <sip:16474272135@192.168.23.33:5060;transport=udp>.
    User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-f4320b5 2011-11-28 08-27-46 -0600.
    Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE.
    Supported: timer, precondition, path, replaces.
    Content-Length: 0.
    .

    #
    U 192.168.23.34:5060 -> 184.150.225.230:5062
    BYE sip:14167125040@184.150.225.230:5062;user=phone SIP/2.0.
    Via: SIP/2.0/UDP 192.168.23.34;branch=z9hG4bK0ffd.24a27a31.0.
    Via: SIP/2.0/UDP 192.168.23.33;received=192.168.23.33;rport=5060;branch=z9hG4bKrt6g7QU7cmH6e.
    Max-Forwards: 69.
    From: <sip:16474272135@66.240.179.221;user=phone>;tag=9mr8cyc2pgjmS.
    To: <sip:14167125040@184.150.225.230:5062;user=phone>;tag=917850919-3775991592-3239888547-3704563422.
    Call-ID: 274bb6c6280f11e1a3c61cc1de26cfdc@184.150.225.230.
    CSeq: 21693003 BYE.
    Contact: <sip:16474272135@192.168.23.33:5060;transport=udp>.
    User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-f4320b5 2011-11-28 08-27-46 -0600.
    Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE.
    Supported: timer, precondition, path, replaces.
    Content-Length: 0.
    .

    #
    U 184.150.225.230:5062 -> 192.168.23.34:5060
    SIP/2.0 200 OK.
    Via: SIP/2.0/UDP 192.168.23.34:5060;branch=z9hG4bK0ffd.24a27a31.0;received=66.240.179.221.
    Via: SIP/2.0/UDP 192.168.23.33:5060;received=192.168.23.33;rport=5060;branch=z9hG4bKrt6g7QU7cmH6e.
    From: <sip:16474272135@66.240.179.221;user=phone>;tag=9mr8cyc2pgjmS.
    To: <sip:14167125040@184.150.225.230:5062;user=phone>;tag=917850919-3775991592-3239888547-3704563422.
    Call-ID: 274bb6c6280f11e1a3c61cc1de26cfdc@184.150.225.230.
    CSeq: 21693003 BYE.
    Contact: <sip:14167125040@184.150.225.230:5062;user=phone>.
    Server: MERA MVTS3G v.4.3.0-33a.
    Content-Length: 0.
    .

    #
    U 192.168.23.34:5060 -> 192.168.23.33:5060
    SIP/2.0 200 OK.
    Via: SIP/2.0/UDP 192.168.23.33:5060;received=192.168.23.33;rport=5060;branch=z9hG4bKrt6g7QU7cmH6e.
    From: <sip:16474272135@66.240.179.221;user=phone>;tag=9mr8cyc2pgjmS.
    To: <sip:14167125040@184.150.225.230:5062;user=phone>;tag=917850919-3775991592-3239888547-3704563422.
    Call-ID: 274bb6c6280f11e1a3c61cc1de26cfdc@184.150.225.230.
    CSeq: 21693003 BYE.
    Contact: <sip:14167125040@184.150.225.230:5062;user=phone>.
    Server: MERA MVTS3G v.4.3.0-33a.
    Content-Length: 0.
    .

    #
    U 192.168.23.34:5060 -> 192.168.23.33:5060
    OPTIONS sip:192.168.23.33 SIP/2.0.
    Via: SIP/2.0/UDP 192.168.23.34;branch=z9hG4bKb2ac.f9fd26f4.0.
    To: sip:192.168.23.33.
    From: <sip:dispatcher@localhost>;tag=9d2ce5b1f2524a541f59592022607908-ae94.
    CSeq: 14 OPTIONS.
    Call-ID: 4fa62308308dc639-2120@192.168.23.34.
    Content-Length: 0.
    User-Agent: OpenSIPS (1.7.0-notls (x86_64/linux)).
    .

    #
    U 192.168.23.33:5060 -> 192.168.23.34:5060
    SIP/2.0 200 OK.
    Via: SIP/2.0/UDP 192.168.23.34;branch=z9hG4bKb2ac.f9fd26f4.0.
    From: <sip:dispatcher@localhost>;tag=9d2ce5b1f2524a541f59592022607908-ae94.
    To: <sip:192.168.23.33>;tag=ayH1eSX5KS86m.
    Call-ID: 4fa62308308dc639-2120@192.168.23.34.
    CSeq: 14 OPTIONS.
    Contact: <sip:192.168.23.33>.
    User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-f4320b5 2011-11-28 08-27-46 -0600.
    Accept: application/sdp.
    Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE.
    Supported: timer, precondition, path, replaces.
    Allow-Events: talk, hold, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer.
    Content-Length: 0.
    .

    exit
    17 received, 0 dropped

     
  • Peter Spins
    Peter Spins
    2011-12-17

    Freeswitch trace

    interface: eth0 (192.168.20.0/255.255.252.0)
    filter: (ip or ip6) and ( port 5060 )
    #
    U 192.168.23.34:5060 -> 192.168.23.33:5060
    OPTIONS sip:192.168.23.33 SIP/2.0.
    Via: SIP/2.0/UDP 192.168.23.34;branch=z9hG4bKf1ac.7b321323.0.
    To: sip:192.168.23.33.
    From: <sip:dispatcher@localhost>;tag=9d2ce5b1f2524a541f59592022607908-1093.
    CSeq: 14 OPTIONS.
    Call-ID: 4fa62308308dc634-2120@192.168.23.34.
    Content-Length: 0.
    User-Agent: OpenSIPS (1.7.0-notls (x86_64/linux)).
    .

    #
    U 192.168.23.33:5060 -> 192.168.23.34:5060
    SIP/2.0 200 OK.
    Via: SIP/2.0/UDP 192.168.23.34;branch=z9hG4bKf1ac.7b321323.0.
    From: <sip:dispatcher@localhost>;tag=9d2ce5b1f2524a541f59592022607908-1093.
    To: <sip:192.168.23.33>;tag=47Sc4prg532pF.
    Call-ID: 4fa62308308dc634-2120@192.168.23.34.
    CSeq: 14 OPTIONS.
    Contact: <sip:192.168.23.33>.
    User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-f4320b5 2011-11-28 08-27-46 -0600.
    Accept: application/sdp.
    Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE.
    Supported: timer, precondition, path, replaces.
    Allow-Events: talk, hold, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer.
    Content-Length: 0.
    .

    #
    U 192.168.23.34:5060 -> 192.168.23.33:5060
    OPTIONS sip:192.168.23.33 SIP/2.0.
    Via: SIP/2.0/UDP 192.168.23.34;branch=z9hG4bK02ac.2c5c42b6.0.
    To: sip:192.168.23.33.
    From: <sip:dispatcher@localhost>;tag=9d2ce5b1f2524a541f59592022607908-756e.
    CSeq: 14 OPTIONS.
    Call-ID: 4fa62308308dc635-2120@192.168.23.34.
    Content-Length: 0.
    User-Agent: OpenSIPS (1.7.0-notls (x86_64/linux)).
    .

    #
    U 192.168.23.33:5060 -> 192.168.23.34:5060
    SIP/2.0 200 OK.
    Via: SIP/2.0/UDP 192.168.23.34;branch=z9hG4bK02ac.2c5c42b6.0.
    From: <sip:dispatcher@localhost>;tag=9d2ce5b1f2524a541f59592022607908-756e.
    To: <sip:192.168.23.33>;tag=5gK55H9K2cS9a.
    Call-ID: 4fa62308308dc635-2120@192.168.23.34.
    CSeq: 14 OPTIONS.
    Contact: <sip:192.168.23.33>.
    User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-f4320b5 2011-11-28 08-27-46 -0600.
    Accept: application/sdp.
    Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE.
    Supported: timer, precondition, path, replaces.
    Allow-Events: talk, hold, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer.
    Content-Length: 0.
    .

    #
    U 192.168.23.34:5060 -> 192.168.23.33:5060
    OPTIONS sip:192.168.23.33 SIP/2.0.
    Via: SIP/2.0/UDP 192.168.23.34;branch=z9hG4bKd1ac.55c21513.0.
    To: sip:192.168.23.33.
    From: <sip:dispatcher@localhost>;tag=9d2ce5b1f2524a541f59592022607908-cbf8.
    CSeq: 14 OPTIONS.
    Call-ID: 4fa62308308dc636-2120@192.168.23.34.
    Content-Length: 0.
    User-Agent: OpenSIPS (1.7.0-notls (x86_64/linux)).
    .

    #
    U 192.168.23.33:5060 -> 192.168.23.34:5060
    SIP/2.0 200 OK.
    Via: SIP/2.0/UDP 192.168.23.34;branch=z9hG4bKd1ac.55c21513.0.
    From: <sip:dispatcher@localhost>;tag=9d2ce5b1f2524a541f59592022607908-cbf8.
    To: <sip:192.168.23.33>;tag=6Scy7ctQZNFvp.
    Call-ID: 4fa62308308dc636-2120@192.168.23.34.
    CSeq: 14 OPTIONS.
    Contact: <sip:192.168.23.33>.
    User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-f4320b5 2011-11-28 08-27-46 -0600.
    Accept: application/sdp.
    Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE.
    Supported: timer, precondition, path, replaces.
    Allow-Events: talk, hold, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer.
    Content-Length: 0.
    .

    #
    U 192.168.23.34:5060 -> 192.168.23.33:5060
    OPTIONS sip:192.168.23.33 SIP/2.0.
    Via: SIP/2.0/UDP 192.168.23.34;branch=z9hG4bKe1ac.03d90b64.0.
    To: sip:192.168.23.33.
    From: <sip:dispatcher@localhost>;tag=9d2ce5b1f2524a541f59592022607908-ae05.
    CSeq: 14 OPTIONS.
    Call-ID: 4fa62308308dc637-2120@192.168.23.34.
    Content-Length: 0.
    User-Agent: OpenSIPS (1.7.0-notls (x86_64/linux)).
    .

    #
    U 192.168.23.33:5060 -> 192.168.23.34:5060
    SIP/2.0 200 OK.
    Via: SIP/2.0/UDP 192.168.23.34;branch=z9hG4bKe1ac.03d90b64.0.
    From: <sip:dispatcher@localhost>;tag=9d2ce5b1f2524a541f59592022607908-ae05.
    To: <sip:192.168.23.33>;tag=725p97aUvy5ej.
    Call-ID: 4fa62308308dc637-2120@192.168.23.34.
    CSeq: 14 OPTIONS.
    Contact: <sip:192.168.23.33>.
    User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-f4320b5 2011-11-28 08-27-46 -0600.
    Accept: application/sdp.
    Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE.
    Supported: timer, precondition, path, replaces.
    Allow-Events: talk, hold, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer.
    Content-Length: 0.
    .

    #
    U 192.168.23.34:5060 -> 192.168.23.33:5060
    OPTIONS sip:192.168.23.33 SIP/2.0.
    Via: SIP/2.0/UDP 192.168.23.34;branch=z9hG4bKc2ac.43239f3.0.
    To: sip:192.168.23.33.
    From: <sip:dispatcher@localhost>;tag=9d2ce5b1f2524a541f59592022607908-cb69.
    CSeq: 14 OPTIONS.
    Call-ID: 4fa62308308dc638-2120@192.168.23.34.
    Content-Length: 0.
    User-Agent: OpenSIPS (1.7.0-notls (x86_64/linux)).
    .

    #
    U 192.168.23.33:5060 -> 192.168.23.34:5060
    SIP/2.0 200 OK.
    Via: SIP/2.0/UDP 192.168.23.34;branch=z9hG4bKc2ac.43239f3.0.
    From: <sip:dispatcher@localhost>;tag=9d2ce5b1f2524a541f59592022607908-cb69.
    To: <sip:192.168.23.33>;tag=8BZFB3UyS7U1D.
    Call-ID: 4fa62308308dc638-2120@192.168.23.34.
    CSeq: 14 OPTIONS.
    Contact: <sip:192.168.23.33>.
    User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-f4320b5 2011-11-28 08-27-46 -0600.
    Accept: application/sdp.
    Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE.
    Supported: timer, precondition, path, replaces.
    Allow-Events: talk, hold, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer.
    Content-Length: 0.
    .

    #
    U 192.168.23.34:5060 -> 192.168.23.33:5060
    INVITE sip:16474272135@66.240.179.221;user=phone SIP/2.0.
    Record-Route: <sip:192.168.23.34;lr;ftag=917850919-3775991592-3239888547-3704563422;did=5df.895f858>.
    Via: SIP/2.0/UDP 192.168.23.34;branch=z9hG4bKc001.821430b6.0.
    Via: SIP/2.0/UDP 184.150.225.230:5062;received=184.150.225.230;rport=5062;branch=z9hG4bK-4008200999-3775991592-3239888547-3704563422.
    From: <sip:14167125040@184.150.225.230:5062;user=phone>;tag=917850919-3775991592-3239888547-3704563422.
    To: <sip:16474272135@66.240.179.221;user=phone>.
    Call-ID: 274bb6c6280f11e1a3c61cc1de26cfdc@184.150.225.230.
    CSeq: 1 INVITE.
    Contact: <sip:14167125040@184.150.225.230:5062;user=phone>.
    Content-Type: application/sdp.
    Allow: ACK, BYE, CANCEL, INFO, INVITE, OPTIONS, REFER, REGISTER, SUBSCRIBE, UPDATE.
    Max-Forwards: 69.
    User-Agent: MERA MVTS3G v.4.3.0-33a.
    Cisco-Guid: 659096324-672076257-2747669697-3727085532.
    Remote-Party-ID: <sip:14167125040@184.150.225.230:5062;user=phone>;party=calling;privacy=off;screen=no.
    Content-Length:   306.
    .
    v=0.
    o=- 1324058134 1324058134 IN IP4 184.150.225.229.
    s=-.
    c=IN IP4 184.150.225.229.
    t=0 0.
    m=audio 51562 RTP/AVP 0 8 18 101.
    a=rtpmap:0 PCMU/8000.
    a=rtpmap:8 PCMA/8000.
    a=rtpmap:18 G729/8000.
    a=fmtp:18 annexb=no.
    a=rtpmap:101 telephone-event/8000.
    a=fmtp:101 0-15.
    a=sendrecv.
    a=silenceSupp:off - - - -.

    #
    U 192.168.23.33:5060 -> 192.168.23.34:5060
    SIP/2.0 100 Trying.
    Via: SIP/2.0/UDP 192.168.23.34;branch=z9hG4bKc001.821430b6.0.
    Via: SIP/2.0/UDP 184.150.225.230:5062;received=184.150.225.230;rport=5062;branch=z9hG4bK-4008200999-3775991592-3239888547-3704563422.
    Record-Route: <sip:192.168.23.34;lr;ftag=917850919-3775991592-3239888547-3704563422;did=5df.895f858>.
    From: <sip:14167125040@184.150.225.230:5062;user=phone>;tag=917850919-3775991592-3239888547-3704563422.
    To: <sip:16474272135@66.240.179.221;user=phone>.
    Call-ID: 274bb6c6280f11e1a3c61cc1de26cfdc@184.150.225.230.
    CSeq: 1 INVITE.
    User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-f4320b5 2011-11-28 08-27-46 -0600.
    Content-Length: 0.
    .

    #
    U 192.168.23.33:5060 -> 192.168.23.34:5060
    SIP/2.0 200 OK.
    Via: SIP/2.0/UDP 192.168.23.34;branch=z9hG4bKc001.821430b6.0.
    Via: SIP/2.0/UDP 184.150.225.230:5062;received=184.150.225.230;rport=5062;branch=z9hG4bK-4008200999-3775991592-3239888547-3704563422.
    Record-Route: <sip:192.168.23.34;lr;ftag=917850919-3775991592-3239888547-3704563422;did=5df.895f858>.
    From: <sip:14167125040@184.150.225.230:5062;user=phone>;tag=917850919-3775991592-3239888547-3704563422.
    To: <sip:16474272135@66.240.179.221;user=phone>;tag=9mr8cyc2pgjmS.
    Call-ID: 274bb6c6280f11e1a3c61cc1de26cfdc@184.150.225.230.
    CSeq: 1 INVITE.
    Contact: <sip:16474272135@192.168.23.33:5060;transport=udp>.
    User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-f4320b5 2011-11-28 08-27-46 -0600.
    Accept: application/sdp.
    Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE.
    Supported: timer, precondition, path, replaces.
    Allow-Events: talk, hold, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer.
    Content-Type: application/sdp.
    Content-Disposition: session.
    Content-Length: 249.
    Remote-Party-ID: "16474272135" <sip:16474272135@66.240.179.221>;party=calling;privacy=off;screen=no.
    .
    v=0.
    o=FreeSWITCH 1324008356 1324008357 IN IP4 192.168.23.33.
    s=FreeSWITCH.
    c=IN IP4 192.168.23.33.
    t=0 0.
    m=audio 49774 RTP/AVP 0 101.
    a=rtpmap:0 PCMU/8000.
    a=rtpmap:101 telephone-event/8000.
    a=fmtp:101 0-16.
    a=silenceSupp:off - - - -.
    a=ptime:20.

    #
    U 192.168.23.34:5060 -> 192.168.23.33:5060
    ACK sip:16474272135@192.168.23.33:5060;transport=udp SIP/2.0.
    Via: SIP/2.0/UDP 192.168.23.34;branch=z9hG4bKc001.821430b6.2.
    Via: SIP/2.0/UDP 184.150.225.230:5062;received=184.150.225.230;rport=5062;branch=z9hG4bK-1821528359-3775991592-3239888547-3704563422.
    From: <sip:14167125040@184.150.225.230:5062;user=phone>;tag=917850919-3775991592-3239888547-3704563422.
    To: <sip:16474272135@66.240.179.221;user=phone>;tag=9mr8cyc2pgjmS.
    Call-ID: 274bb6c6280f11e1a3c61cc1de26cfdc@184.150.225.230.
    CSeq: 1 ACK.
    Max-Forwards: 69.
    User-Agent: MERA MVTS3G v.4.3.0-33a.
    Content-Length: 0.
    .

    #
    U 192.168.23.33:5060 -> 192.168.23.34:5060
    BYE sip:14167125040@184.150.225.230:5062;user=phone SIP/2.0.
    Via: SIP/2.0/UDP 192.168.23.33;rport;branch=z9hG4bKrt6g7QU7cmH6e.
    Route: <sip:192.168.23.34;lr;ftag=917850919-3775991592-3239888547-3704563422;did=5df.895f858>.
    Max-Forwards: 70.
    From: <sip:16474272135@66.240.179.221;user=phone>;tag=9mr8cyc2pgjmS.
    To: <sip:14167125040@184.150.225.230:5062;user=phone>;tag=917850919-3775991592-3239888547-3704563422.
    Call-ID: 274bb6c6280f11e1a3c61cc1de26cfdc@184.150.225.230.
    CSeq: 21693003 BYE.
    Contact: <sip:16474272135@192.168.23.33:5060;transport=udp>.
    User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-f4320b5 2011-11-28 08-27-46 -0600.
    Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE.
    Supported: timer, precondition, path, replaces.
    Content-Length: 0.
    .

    #
    U 192.168.23.34:5060 -> 192.168.23.33:5060
    SIP/2.0 200 OK.
    Via: SIP/2.0/UDP 192.168.23.33:5060;received=192.168.23.33;rport=5060;branch=z9hG4bKrt6g7QU7cmH6e.
    From: <sip:16474272135@66.240.179.221;user=phone>;tag=9mr8cyc2pgjmS.
    To: <sip:14167125040@184.150.225.230:5062;user=phone>;tag=917850919-3775991592-3239888547-3704563422.
    Call-ID: 274bb6c6280f11e1a3c61cc1de26cfdc@184.150.225.230.
    CSeq: 21693003 BYE.
    Contact: <sip:14167125040@184.150.225.230:5062;user=phone>.
    Server: MERA MVTS3G v.4.3.0-33a.
    Content-Length: 0.
    .

    #
    U 192.168.23.34:5060 -> 192.168.23.33:5060
    OPTIONS sip:192.168.23.33 SIP/2.0.
    Via: SIP/2.0/UDP 192.168.23.34;branch=z9hG4bKb2ac.f9fd26f4.0.
    To: sip:192.168.23.33.
    From: <sip:dispatcher@localhost>;tag=9d2ce5b1f2524a541f59592022607908-ae94.
    CSeq: 14 OPTIONS.
    Call-ID: 4fa62308308dc639-2120@192.168.23.34.
    Content-Length: 0.
    User-Agent: OpenSIPS (1.7.0-notls (x86_64/linux)).
    .

    #
    U 192.168.23.33:5060 -> 192.168.23.34:5060
    SIP/2.0 200 OK.
    Via: SIP/2.0/UDP 192.168.23.34;branch=z9hG4bKb2ac.f9fd26f4.0.
    From: <sip:dispatcher@localhost>;tag=9d2ce5b1f2524a541f59592022607908-ae94.
    To: <sip:192.168.23.33>;tag=ayH1eSX5KS86m.
    Call-ID: 4fa62308308dc639-2120@192.168.23.34.
    CSeq: 14 OPTIONS.
    Contact: <sip:192.168.23.33>.
    User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-f4320b5 2011-11-28 08-27-46 -0600.
    Accept: application/sdp.
    Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE.
    Supported: timer, precondition, path, replaces.
    Allow-Events: talk, hold, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer.
    Content-Length: 0.
    .

    exit
    18 received, 0 dropped

     
  • Franklin Lee
    Franklin Lee
    2011-12-18

    your guess is correct. freeswitch sent 192.168.23.33 as media ip in sdp. you may try
    1. set ext-rtp-ip with other option, such as auto-nat
    2. use public ip for both opensips and freeswitch

     
  • Franklin Lee
    Franklin Lee
    2011-12-18

    btw, you may try disable-rtp-auto-adjust too.

     
  • Peter Spins
    Peter Spins
    2011-12-19

    Tried these and no go - I even put the external profile on port:5060 instead of internal and till no audio as it send the local IP back in the SDP.

     
  • Franklin Lee
    Franklin Lee
    2011-12-20

    have you tried change both sip-ip and rtp-ip from $${local_ip_v4} to your public address? or directly change $${local_ip_v4}.