[Freeswitch-users] Configuration for outbound call using PSTN

Amit Kumar findme at itsamit.com
Sat Mar 23 23:09:07 MSK 2013


I got it to work. Turns out The stage had to be set to 1


On Sat, Mar 23, 2013 at 10:36 PM, Steven Ayre <steveayre at gmail.com> wrote:

> Try 'sofia status'. Does it list the gateway?
>
> I suspect the gateway isn't at the correct level in the XML. It should be
> within the <gateways> tag. Also did you restart/reload freeswitch after
> saving the changes?
>
> Steve
>
>
>
> On 23 Mar 2013, at 11:41, Amit Kumar <findme at itsamit.com> wrote:
>
> Hi,
>
> I am trying to call my cellphone using FreeSWITCH. So as per the cookbook,
> I added a gateway to external sip_profiles/
>
> <gateway name="outbound">
>     <param name="username" value="1001"/>
>     <params name="realm" value="10.0.1.5"/>
>     <param name="password" value="1234"/>
>     <param name="expire-seconds" value="3600"/>
>   </gateway>
>
>
> and I added a dialplan too
>
> <extension name="oubout_pstn">
>           <condition field="destination_number" expression="^(\d{10})$">
>             <!-- <action application="set"
> data="effective_caller_id_number=OUTBOUNDCALLERID"/> -->
>             <action application="bridge" data="sofia/gateway/outbound/$1"/>
>            </condition>
>          </extension>
>
> I am using HT503 for my ATA, and it is connected to my fixed line. I have
> been able to get incoming calls to work with FreeSWITCH.
>
> When I try dialing my cellphone number, however, I am seeing this in the
> CLI...
>
>
> 2013-03-23 17:06:23.280033 [ERR] mod_sofia.c:4671 Invalid Gateway
> 'outbound'
> 2013-03-23 17:06:23.280033 [NOTICE] mod_sofia.c:5072 Close Channel N/A
> [CS_NEW]
> 2013-03-23 17:06:23.280033 [NOTICE] switch_ivr_originate.c:2640 Cannot
> create outgoing channel of type [sofia] cause: [INVALID_GATEWAY]
> 2013-03-23 17:06:23.280033 [INFO] mod_dptools.c:3084 Originate Failed.
>  Cause: INVALID_GATEWAY
> 2013-03-23 17:06:23.280033 [NOTICE] mod_dptools.c:3204 Hangup
> sofia/internal/1002 at 10.0.1.5 [CS_EXECUTE] [INVALID_GATEWAY]
> 2013-03-23 17:06:23.280033 [NOTICE] switch_core_session.c:1536 Session 45
> (sofia/internal/1002 at 10.0.1.5) Ended
> 2013-03-23 17:06:23.280033 [NOTICE] switch_core_session.c:1540 Close
> Channel sofia/internal/1002 at 10.0.1.5 [CS_DESTROY]
>
> _________________________________________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130324/fa0ee3d5/attachment.html 


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