[Freeswitch-users] Internal IP showing in SDP

Brian West brian at freeswitch.org
Wed Aug 20 19:46:43 MSD 2014


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> 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> 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
>> BIND-URL 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
>> 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
>> 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
>>
>
>
>
>  --
>
> *Brian West*
> 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.orghttp://www.freeswitchsolutions.com
>
> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com
>
> FreeSWITCH-powered IP PBX: The CudaTel Communication Server
>
> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org
>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services: consulting at freeswitch.orghttp://www.freeswitchsolutions.com
>
> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com
>
> FreeSWITCH-powered IP PBX: The CudaTel Communication Server
>
> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org
>
>
>
> _________________________________________________________________________
> 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
>



-- 

*Brian West*
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140820/cfd77aee/attachment.html 


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