[Freeswitch-users] Internal IP showing in SDP

Matt Broad matt at inveroak.com
Thu Aug 21 19:21:45 MSD 2014


Hi Brian,

maybe I'm reading your response incorrectly but are you suggesting that 
I use the Freeswitch boxes external IP in the load_balancer table so 
opensips is always trying to "talk" to it via that IP?

thanks
Matt


On 21/08/2014 16:02, Brian West wrote:
> That kinda defeats the purpose of FreeSWITCH being able to tell if it 
> should use one or the other IP's for the response.  Then that means 
> that the always lie and say the ext variant in the SDP is possibly broken.
>
>
> On Wed, Aug 20, 2014 at 7:50 PM, Matt Broad <matt at inveroak.com 
> <mailto:matt at inveroak.com>> wrote:
>
>     sorry yes it is
>
>     On 20/08/2014 16:46, Brian West wrote:
>>     I'm guessing that OpenSIPS is behind nat with FreeSWITCH?
>>
>>
>>     On Wed, Aug 20, 2014 at 5:59 AM, Matt Broad <matt at inveroak.com
>>     <mailto:matt at inveroak.com>> wrote:
>>
>>         Hi Brian,
>>
>>         it seems that this was not the issue.
>>
>>         Some more details:
>>         We have an opensips server using the load_balancer module to
>>         route the calls to the freeswitch box.
>>         (https://wiki.freeswitch.org/wiki/Enterprise_deployment_OpenSIPS)
>>         When I route the calls directly to the freeswitch's external
>>         IP, the calls connect fine and have audio.
>>         However when I route the calls to the opensips server first,
>>         the call will connect but without audio.
>>
>>         The strange thing is Opensips uses Freeswitch's internal
>>         address (from the load_balancer table) to forward the INVITE
>>         packet, yet when the ACK packet comes in from the provider
>>         opensips tries to forward it to the FS external IP address
>>         rather than the internal IP.
>>
>>         I understand this is probably more an opensips question, so
>>         will understand if I should post this to their mailing list,
>>         but any tips would be appreciated.
>>
>>
>>         thanks
>>         Matt
>>
>>
>>
>>         On 19/08/2014 17:25, Matt Broad wrote:
>>>         thanks brian, will give it a go and see what happens.
>>>
>>>         thanks
>>>         Matt
>>>         On 19/08/2014 17:06, Brian West wrote:
>>>>         Can you try prefixing the ext-rtp-ip and ext-sip-ip with
>>>>         autonat:0.0.0.0  and make sure local-network-acl is set to
>>>>         rfc1918.auto?
>>>>
>>>>
>>>>         On Tue, Aug 19, 2014 at 9:20 AM, Matt Broad
>>>>         <matt at inveroak.com <mailto:matt at inveroak.com>> wrote:
>>>>
>>>>             Hi,
>>>>
>>>>             does it make any difference if my internal IP address
>>>>             is being sent in
>>>>             the SDP connection information?  I have 2 sip providers
>>>>             where 1 I can
>>>>             bridge calls and receive audio and 1 that I can bridge
>>>>             calls but get no
>>>>             audio.
>>>>
>>>>             Even with the below settings the SDP message body
>>>>             contains c=IN IP4
>>>>             192.168.1.1.
>>>>
>>>>             I have vars set as:
>>>>             <X-PRE-PROCESS cmd="set"
>>>>             data="external_rtp_ip=my.ip.goes.here"/>
>>>>             <X-PRE-PROCESS cmd="set"
>>>>             data="external_sip_ip=my.ip.goes.here"/>
>>>>
>>>>             I have setup the external profile as follows:
>>>>             <param name="ext-rtp-ip" value="$${external_rtp_ip}"/>
>>>>             <param name="ext-sip-ip" value="$${external_sip_ip}"/>
>>>>
>>>>             running sofia status profile external gives (replace
>>>>             0.0.0.0 with the
>>>>             real external IP declared in vars):
>>>>             =================================================================================================
>>>>             Name external
>>>>             Domain Name             N/A
>>>>             Auto-NAT                false
>>>>             DBName sofia_reg_external
>>>>             Pres Hosts
>>>>             Dialplan                XML
>>>>             Context                 public
>>>>             Challenge Realm  auto_to
>>>>             RTP-IP 192.168.1.1
>>>>             Ext-RTP-IP 0.0.0.0
>>>>             SIP-IP 192.168.1.1
>>>>             Ext-SIP-IP 0.0.0.0
>>>>             URL sip:mod_sofia at 0.0.0.0:5080
>>>>             <http://sip:mod_sofia@0.0.0.0:5080>
>>>>             BIND-URL
>>>>             sip:mod_sofia at 0.0.0.0:5080;maddr=192.168.1.1;transport=udp,tcp
>>>>             <mailto:sip:mod_sofia at 0.0.0.0:5080;maddr=192.168.1.1;transport=udp,tcp>
>>>>             WS-BIND-URL sip:mod_sofia at 192.168.1.1:5086;transport=ws
>>>>             <mailto:sip:mod_sofia at 192.168.1.1:5086;transport=ws>
>>>>             HOLD-MUSIC local_stream://moh
>>>>             OUTBOUND-PROXY          N/A
>>>>             CODECS IN  G722,PCMU,PCMA,GSM
>>>>             CODECS OUT PCMU,PCMA,GSM
>>>>             TEL-EVENT               101
>>>>             DTMF-MODE  rfc2833
>>>>             CNG                     13
>>>>             SESSION-TO              0
>>>>             MAX-DIALOG              0
>>>>             NOMEDIA                 false
>>>>             LATE-NEG                true
>>>>             PROXY-MEDIA             false
>>>>             ZRTP-PASSTHRU           true
>>>>             AGGRESSIVENAT           false
>>>>             CALLS-IN                8
>>>>             FAILED-CALLS-IN         1
>>>>             CALLS-OUT               8
>>>>             FAILED-CALLS-OUT        1
>>>>             REGISTRATIONS           0
>>>>
>>>>
>>>>
>>>>
>>>>             thanks
>>>>             Matt
>>>>
>>>>
>>>>             _________________________________________________________________________
>>>>             Professional FreeSWITCH Consulting Services:
>>>>             consulting at freeswitch.org
>>>>             <mailto:consulting at freeswitch.org>
>>>>             http://www.freeswitchsolutions.com
>>>>
>>>>             Official FreeSWITCH Sites
>>>>             http://www.freeswitch.org
>>>>             http://confluence.freeswitch.org
>>>>             http://www.cluecon.com
>>>>
>>>>             
>>>>             
>>>>
>>>>             FreeSWITCH-users mailing list
>>>>             FreeSWITCH-users at lists.freeswitch.org
>>>>             <mailto:FreeSWITCH-users at lists.freeswitch.org>
>>>>             http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>             UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>             http://www.freeswitch.org
>>>>
>>>>
>>>>
>>>>
>>>>         -- 
>>>>
>>>>         */Brian West/*
>>>>         brian at freeswitch.org <mailto:brian at freeswitch.org>
>>>>
>>>>
>>>>         */Twitter: @FreeSWITCH , @briankwest/*
>>>>         http://www.freeswitchbook.com
>>>>         http://www.freeswitchcookbook.com
>>>>
>>>>         *T:*+19184209001 <tel:%2B19184209001> | *F:*+19184209002
>>>>         <tel:%2B19184209002> | *M:*+1918424WEST (9378)
>>>>         *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
>>>>
>>>>
>>>>
>>>>         _________________________________________________________________________
>>>>         Professional FreeSWITCH Consulting Services:
>>>>         consulting at freeswitch.org  <mailto:consulting at freeswitch.org>
>>>>         http://www.freeswitchsolutions.com
>>>>
>>>>         Official FreeSWITCH Sites
>>>>         http://www.freeswitch.org
>>>>         http://confluence.freeswitch.org
>>>>         http://www.cluecon.com
>>>>
>>>>         
>>>>         
>>>>
>>>>         FreeSWITCH-users mailing list
>>>>         FreeSWITCH-users at lists.freeswitch.org  <mailto:FreeSWITCH-users at lists.freeswitch.org>
>>>>         http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>         UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>         http://www.freeswitch.org
>>>
>>>
>>>
>>>         _________________________________________________________________________
>>>         Professional FreeSWITCH Consulting Services:
>>>         consulting at freeswitch.org  <mailto:consulting at freeswitch.org>
>>>         http://www.freeswitchsolutions.com
>>>
>>>         Official FreeSWITCH Sites
>>>         http://www.freeswitch.org
>>>         http://confluence.freeswitch.org
>>>         http://www.cluecon.com
>>>
>>>         
>>>         
>>>
>>>         FreeSWITCH-users mailing list
>>>         FreeSWITCH-users at lists.freeswitch.org  <mailto:FreeSWITCH-users at lists.freeswitch.org>
>>>         http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>         UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>         http://www.freeswitch.org
>>
>>
>>         _________________________________________________________________________
>>         Professional FreeSWITCH Consulting Services:
>>         consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>>         http://www.freeswitchsolutions.com
>>
>>         Official FreeSWITCH Sites
>>         http://www.freeswitch.org
>>         http://confluence.freeswitch.org
>>         http://www.cluecon.com
>>
>>         
>>         
>>
>>         FreeSWITCH-users mailing list
>>         FreeSWITCH-users at lists.freeswitch.org
>>         <mailto:FreeSWITCH-users at lists.freeswitch.org>
>>         http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>         UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>         http://www.freeswitch.org
>>
>>
>>
>>
>>     -- 
>>
>>     */Brian West/*
>>     brian at freeswitch.org <mailto:brian at freeswitch.org>
>>
>>
>>     */Twitter: @FreeSWITCH , @briankwest/*
>>     http://www.freeswitchbook.com
>>     http://www.freeswitchcookbook.com
>>
>>     *T:*+19184209001 <tel:%2B19184209001> | *F:*+19184209002
>>     <tel:%2B19184209002> | *M:*+1918424WEST (9378)
>>     *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
>>
>>
>>
>>     _________________________________________________________________________
>>     Professional FreeSWITCH Consulting Services:
>>     consulting at freeswitch.org  <mailto:consulting at freeswitch.org>
>>     http://www.freeswitchsolutions.com
>>
>>     Official FreeSWITCH Sites
>>     http://www.freeswitch.org
>>     http://confluence.freeswitch.org
>>     http://www.cluecon.com
>>
>>     
>>     
>>
>>     FreeSWITCH-users mailing list
>>     FreeSWITCH-users at lists.freeswitch.org  <mailto:FreeSWITCH-users at lists.freeswitch.org>
>>     http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>     UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>     http://www.freeswitch.org
>
>
>     _________________________________________________________________________
>     Professional FreeSWITCH Consulting Services:
>     consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>     http://www.freeswitchsolutions.com
>
>     Official FreeSWITCH Sites
>     http://www.freeswitch.org
>     http://confluence.freeswitch.org
>     http://www.cluecon.com
>
>     
>     
>
>     FreeSWITCH-users mailing list
>     FreeSWITCH-users at lists.freeswitch.org
>     <mailto:FreeSWITCH-users at lists.freeswitch.org>
>     http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>     UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>     http://www.freeswitch.org
>
>
>
>
> -- 
>
> */Brian West/*
> brian at freeswitch.org <mailto:brian at freeswitch.org>
>
>
> */Twitter: @FreeSWITCH , @briankwest/*
> http://www.freeswitchbook.com
> http://www.freeswitchcookbook.com
>
> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> 
> 
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140821/b336a544/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list