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@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@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@10.0.1.5) Ended 2013-03-23 17:06:23.280033 [NOTICE] switch_core_session.c:1540 Close Channel sofia/internal/1002@10.0.1.5 [CS_DESTROY] _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org