[Freeswitch-users] Freeswitch & double NAT Configuration (Was: USER_NOT_REGISTERED with external profile)
Ryan How
rhow at exemail.com.au
Thu Jan 19 04:23:23 MSK 2012
Yes. Both the server and client are behind a NAT. I haven't tried 2 clients behind the same NAT.
On 19/01/2012, at 5:48 AM, "Alexis de BRUYN [Mailinglists]" <alexis.mailinglist at de-bruyn.fr> wrote:
> Hi Ryan,
>
> Thank you for your answer, your server is behind NAT and your client too ?
>
> Regards,
>
> On 18.01.2012 05:06, Ryan How wrote:
>> Hi,
>>
>> I set mine up for the external phones to log into the internal profile
>> and it just worked (port 5060). But it might depend on the type of NAT
>> or something, I'm by no means an expert on the subject.
>>
>> Probably worth securing it better than the default config once you get
>> it going if it works on the internal profile.
>>
>> Ryan
>>
>>
>> On 18/01/2012 5:04 AM, Alexis de BRUYN [Mailinglists] wrote:
>>> Hi Everybody,
>>>
>>> I am trying to get a conversation between two natted clients and a
>>> natted freeswitch server. I am playing with a fresh install, the
>>> external profile and default directory (1000& 1001 users).
>>>
>>> I can see that my clients are registered on the server logs (on the 5080
>>> port). All others needed ports are opened too.
>>>
>>> I have followed the instructions from the wiki to get a double nat
>>> configuration, but my client phone are not ringing (and I cannot hear
>>> anything).
>>>
>>> All is working fine with defaults in a non nat configuration (with
>>> internal profile).
>>>
>>> Is there anything special to set up in the directory / user configuration ?
>>>
>>> Can anyone give me some hints with his natted configuration ? I am stuck.
>>>
>>> Thanks for your help.
>>>
>>> Regards,
>>>
>>> -------- Original Message --------
>>> Subject: [Freeswitch-users] USER_NOT_REGISTERED with external profile
>>> Date: Mon, 16 Jan 2012 23:37:20 +0100
>>> From: Alexis de BRUYN [Mailinglists]<alexis.mailinglist at de-bruyn.fr>
>>> Reply-To: FreeSWITCH Users Help<freeswitch-users at lists.freeswitch.org>
>>> To: freeswitch-users at lists.freeswitch.org
>>>
>>> Hi Everybody,
>>>
>>> I am trying to use FreeSwitch in a (double) NAT Configuration from a
>>> fresh snapshot install (Debian Squeeze, server outside from my client
>>> LAN) with default directory for users.
>>>
>>> When I call 1001 from 1000 (or 1000 from 1001) , I cannot hear the
>>> callee, the phone doesn't ring and automatically hangup, I see in the
>>> console :
>>>
>>> 2012-01-16 22:59:37.691663 [ERR] switch_ivr_originate.c:2447 Cannot
>>> create outgoing channel of type [error] cause: [USER_NOT_REGISTERED]
>>> 2012-01-16 22:59:37.691663 [ERR] switch_ivr_originate.c:2447 Cannot
>>> create outgoing channel of type [user] cause: [USER_NOT_REGISTERED]
>>>
>>> However, 1000 and 1001 are registered (from the same LAN) :
>>>
>>> sofia status profile external
>>>
>>> =================================================================================================
>>> 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.6
>>> SIP-IP 192.168.1.6
>>> URL sip:mod_sofia at 192.168.1.6:5080
>>> BIND-URL sip:mod_sofia at 192.168.1.6:5080
>>> HOLD-MUSIC local_stream://moh
>>> OUTBOUND-PROXY N/A
>>> CODECS IN G7221 at 32000h,G7221 at 16000h,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 false
>>> PROXY-MEDIA false
>>> AGGRESSIVENAT false
>>> STUN-ENABLED true
>>> STUN-AUTO-DISABLE false
>>> CALLS-IN 3
>>> FAILED-CALLS-IN 0
>>> CALLS-OUT 0
>>> FAILED-CALLS-OUT 0
>>>
>>> Registrations:
>>> =================================================================================================
>>> Call-ID: aU.1ZlEZkW7nlHpwp9ig1lt7A3weNnwm
>>> User: 1001 at X.Y.Z.T
>>> Contact: "Freeswitch"<sip:1001 at A.B.C.D:50193>
>>> Agent: Bria iOS 2.0.0
>>> Status: Registered(UDP)(unknown) EXP(2012-01-16 23:16:00) EXPSECS(934)
>>> Host: phone
>>> IP: A.B.C.D
>>> Port: 50193
>>> Auth-User: 1001
>>> Auth-Realm: X.Y.Z.T
>>> MWI-Account: 1001 at X.Y.Z.T
>>>
>>> Call-ID: 3c27b7424837-bsfi877ujb2n
>>> User: 1000 at X.Y.Z.T
>>> Contact: "freeswitch"<sip:1000 at 192.168.0.69:2048;line=skgk4hug>
>>> Agent: snom300/8.4.32
>>> Status: Registered(UDP)(unknown) EXP(2012-01-17 00:01:24) EXPSECS(3658)
>>> Host: phone
>>> IP: A.B.C.D
>>> Port: 62061
>>> Auth-User: 1000
>>> Auth-Realm: X.Y.Z.T
>>> MWI-Account: 1000 at X.Y.Z.T
>>>
>>> Total items returned: 2
>>> =================================================================================================
>>>
>>> All necessary ports are opened/forwarded on the server.
>>>
>>> I See on the 1000 configuration that this is the local ip address which
>>> is set as contact. Is there any other setups to do in the directory ?
>>> Or other parameters in the external profile ?
>>>
>>> Thanks for your help !
>>>
>>> Regards,
>>>
>>> --
>>> Alexis de BRUYN
>>> Mail : alexis.mailinglist at de-bruyn.fr
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>>
>>>
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.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
>>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>>
>>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.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
>
> --
> --
> Alexis de BRUYN
> Mail : alexis.mailinglist at de-bruyn.fr
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.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
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list