[Freeswitch-users] Gateway configuration

Avi Marcus avi at avimarcus.net
Wed Apr 16 20:25:11 MSD 2014


You're not hitting the gateway, but rather the external profile directly.
This line: <action application="bridge" data="sofia/*external*/mycall/$1"/>

Should be: <action application="bridge" data="sofia/*gateway*/mycall/$1"/>

-Avi

On Wed, Apr 16, 2014 at 6:26 PM, Helena Garcia-Nieto <
helena.gnieto at morodo.co.uk> wrote:

> Hi All!
>
>
>
> I am starting with freeswitch. I decided to test basic stuff before
> configuring any further.
>
> I am defining a simple gateway (see config file) and using it to transfer
> any call starting with 00. The config I’ve seen and the emails I’ve checked
> say the correct config should be:
>
>
>
> <extension name="mycall_extensions">
>
>       <condition field="destination_number" expression="^00(\d{3,20})$">
>
>                                <action application="log" data="INFO Inside
> MyCall extensions --$1_"/>
>
>                                <action application="bridge"
> data="sofia/external/mycall/$1"/>
>
>                                </condition>
>
>     </extension>
>
>
>
> But if I use it like this I got the error:
>
>
>
> 2014-04-15 14:49:44.289151 [INFO] mod_dialplan_xml.c:558 Processing
> HelenaGN <1001>->00aaaaaa in context public
>
> 2014-04-15 14:49:44.289151 [INFO] mod_dptools.c:1595 Inside MO-Call
> extensions --aaaaaa_
>
> 2014-04-15 14:49:44.289151 [WARNING] mod_sofia.c:5082 Cannot locate
> registered user mycall/aaaaaaaa at external
>
> 2014-04-15 14:49:44.289151 [NOTICE] mod_sofia.c:5339 Close Channel N/A
> [CS_NEW]
>
> 2014-04-15 14:49:44.289151 [NOTICE] switch_ivr_originate.c:2670 Cannot
> create outgoing channel of type [sofia] cause: [USER_NOT_REGISTERED]
>
> 2014-04-15 14:49:44.289151 [INFO] mod_dptools.c:3201 Originate Failed.
> Cause: USER_NOT_REGISTERED
>
> 2014-04-15 14:49:44.289151 [NOTICE] switch_channel.c:4646 Hangup
> sofia/external/1001 at xx.xx.xx.xx:5080 [CS_EXECUTE] [USER_NOT_REGISTERED]
>
>
>
> But… Why is it looking for the aaaa number on the external instead of the
> mycall?
>
>
>
> If I configure it with
>
> <action application="bridge" data="sofia/external/mycall/$1 at mydomain.realm
> "/>
>
>
>
> It finds its way to the gateway. I don’t really understand the point of
> defining the whole gw if you need to specify the realm here again anyway.
>
>
>
> Could someone point me in the direction of why the basic config did not
> work?
>
>
>
> Thanks
>
>
>
> Helena
>
>
>
> clude>
>
>   <gateway name="mycall">
>
>                                <param name="realm" value="mydomain.realm
> "/>
>
>                                <param name="username"
> value="notimportant"/>
>
>                                <param name="password"
> value="notimportant"/>
>
>                                <param name="register" value="false"/>
>
>                 </gateway>
>
> </include>
>
> _________________________________________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140416/316b1e6d/attachment-0001.html 


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