[Freeswitch-users] USER_NOT_REGISTERED when freeswtch is registered at another freeswitch.

Michael Collins msc at freeswitch.org
Fri Sep 28 01:47:31 MSD 2012


Just for kicks, try this:

sofia_contact */400

I'm curious about something.
-MC

On Thu, Sep 27, 2012 at 2:24 PM, Peter Steinbach <lists at telefaks.de> wrote:

> Hello,
>
> I have 2 Freeswitch boxes.
> Box 2 is registering as number 400 via VPN to box 1 (like a regular
> phone). I can see in the sip_registrations database that the phone is
> registered. And Box2 shows "
>    vpn::sip1.mydomain.com       gateway
> sip:400 at 10.8.0.1:5075      REGED
> So at the first glance everything seems ok.
>
> However in my vpn profile
>    sofia status profile internalvpn
> the Freeswitch box2 is not shown as a registration entry.
>
> I think this is the reason why we receive the following when we try to
> call the box 2 (number 400):
> EXECUTE sofia/internal/200 at sip1.mydomain.com
> bridge({sip_invite_domain=sip1.mydomain.com}user/400 at sip1.mydomain.com)
> 2012-09-27 23:09:58.149196 [DEBUG] switch_channel.c:1062
> sofia/internal/200 at sip1.mydomain.com EXPORTING[export_vars]
> [dialed_ext]=[400] to event
> 2012-09-27 23:09:58.149196 [DEBUG] switch_ivr_originate.c:1961 Parsing
> global variables
> 2012-09-27 23:09:58.149196 [DEBUG] switch_event.c:1478 Parsing variable
> [sip_invite_domain]=[sip1.mydomain.com]
> 2012-09-27 23:09:58.169252 [DEBUG] switch_core_session.c:924 Send signal
> sofia/internal/200 at sip1.mydomain.com [BREAK]
> 2012-09-27 23:09:58.269299 [DEBUG] switch_channel.c:1062
> sofia/internal/200 at sip1.mydomain.com EXPORTING[export_vars]
> [dialed_ext]=[400] to event
> 2012-09-27 23:09:58.269299 [DEBUG] switch_ivr_originate.c:1961 Parsing
> global variables
> 2012-09-27 23:09:58.269299 [DEBUG] switch_event.c:1478 Parsing variable
> [presence_id]=[400 at sip1.mydomain.com]
> 2012-09-27 23:09:58.269299 [DEBUG] switch_event.c:1478 Parsing variable
> [transfer_fallback_extension]=[400]
> 2012-09-27 23:09:58.269299 [DEBUG] sofia.c:6040 Channel
> sofia/internal/200 at sip1.mydomain.com entering state [early][180]
> 2012-09-27 23:09:58.269299 [NOTICE] switch_ivr_originate.c:2544 Cannot
> create outgoing channel of type [error] cause: [USER_NOT_REGISTERED]
>
>
> freeswitch at internal> sofia_contact 400
> error/user_not_registered
> freeswitch at internal> sofia_contact 200
> sofia/internal/sip:200 at 192.168.178.105:2048
> ;line=1vz0u23u;fs_nat=yes;fs_path=sip%3A200%40217.24.xx.xxx%3A20393%3Bline%3D1vz0u23u
> So 200 seems ok, 400 not.
>
> When I look at the contact field in the sip_registrations table, I see
> "user"<sip:gw+sip1.mydomain.com at 10.8.0.42:5080;transport=udp;gw=
> sip1.mydomain.com>
> so this does not reflect the number 400.
>
> Here is my gateway config from box2 which registers at box1
> (sip1.mydomain.com)
> # cat sip1.xml
> <include>
>   <gateway name="sip1.mydomain.com">
>     <param name="from-domain" value="sip1.mydomain.com"/>
>     <param name="username" value="400"/>
>     <param name="from-user" value="400"/>
>     <param name="extension" value="400"/>
>     <param name="realm" value="sip1.mydomain.com"/>
>     <!-- 5075 registers to the internal VPN profile -->
>     <param name="proxy" value="10.8.0.1:5075"/>
>     <param name="password" value="xxxxxxxx"/>
>     <param name="expire-seconds" value="3600"/>
>     <param name="register" value="true"/>
>     <param name="register-transport" value="udp"/>
>     <param name="retry-seconds" value="20"/>
>     <param name="caller-id-in-from" value="true"/>
>   </gateway>
> </include>
>
>
> My question is: How can I change the gateway definition, so that box2
> shows up as a regular registration with number 400? Or am I missing
> something different?
>
> --
> With kind regards
> Peter Steinbach
>
> Telefaks Services GmbH
> mailto:lists (att) telefaks.de
> Internet: www.telefaks.de
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120927/f815eaa4/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list