<div dir="ltr">I got it to work. Turns out The stage had to be set to 1</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Mar 23, 2013 at 10:36 PM, Steven Ayre <span dir="ltr">&lt;<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Try &#39;sofia status&#39;. Does it list the gateway?</div><div><br></div><div>I suspect the gateway isn&#39;t at the correct level in the XML. It should be within the &lt;gateways&gt; tag. Also did you restart/reload freeswitch after saving the changes?</div>
<div><br>Steve</div><div><div class="h5"><div><br></div><div><br></div><div><br>On 23 Mar 2013, at 11:41, Amit Kumar &lt;<a href="mailto:findme@itsamit.com" target="_blank">findme@itsamit.com</a>&gt; wrote:<br><br></div><blockquote type="cite">
<div><div dir="ltr">Hi,<div><br></div><div>I am trying to call my cellphone using FreeSWITCH. So as per the cookbook, I added a gateway to external sip_profiles/</div><div><br></div><div><div>&lt;gateway name=&quot;outbound&quot;&gt;</div>

<div>    &lt;param name=&quot;username&quot; value=&quot;1001&quot;/&gt;</div><div>    &lt;params name=&quot;realm&quot; value=&quot;10.0.1.5&quot;/&gt;</div><div>    &lt;param name=&quot;password&quot; value=&quot;1234&quot;/&gt;</div>

<div>    &lt;param name=&quot;expire-seconds&quot; value=&quot;3600&quot;/&gt;</div><div>  &lt;/gateway&gt;</div><div><br></div><div><br></div><div>and I added a dialplan too</div><div><br></div><div><div>
&lt;extension name=&quot;oubout_pstn&quot;&gt;</div><div>          &lt;condition field=&quot;destination_number&quot; expression=&quot;^(\d{10})$&quot;&gt;</div><div>            &lt;!-- &lt;action application=&quot;set&quot; data=&quot;effective_caller_id_number=OUTBOUNDCALLERID&quot;/&gt; --&gt;</div>

<div>            &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/outbound/$1&quot;/&gt;</div><div>           &lt;/condition&gt;</div><div>         &lt;/extension&gt;</div><div><br></div><div>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.</div>

<div><br></div><div>When I try dialing my cellphone number, however, I am seeing this in the CLI...</div><div><br></div><div><br></div><div><div>2013-03-23 17:06:23.280033 [ERR] mod_sofia.c:4671 Invalid Gateway &#39;outbound&#39;</div>

<div>2013-03-23 17:06:23.280033 [NOTICE] mod_sofia.c:5072 Close Channel N/A [CS_NEW]</div><div>2013-03-23 17:06:23.280033 [NOTICE] switch_ivr_originate.c:2640 Cannot create outgoing channel of type [sofia] cause: [INVALID_GATEWAY]</div>

<div>2013-03-23 17:06:23.280033 [INFO] mod_dptools.c:3084 Originate Failed.  Cause: INVALID_GATEWAY</div><div>2013-03-23 17:06:23.280033 [NOTICE] mod_dptools.c:3204 Hangup sofia/internal/<a href="mailto:1002@10.0.1.5" target="_blank">1002@10.0.1.5</a> [CS_EXECUTE] [INVALID_GATEWAY]</div>

<div>2013-03-23 17:06:23.280033 [NOTICE] switch_core_session.c:1536 Session 45 (sofia/internal/<a href="mailto:1002@10.0.1.5" target="_blank">1002@10.0.1.5</a>) Ended</div><div>2013-03-23 17:06:23.280033 [NOTICE] switch_core_session.c:1540 Close Channel sofia/internal/<a href="mailto:1002@10.0.1.5" target="_blank">1002@10.0.1.5</a> [CS_DESTROY]</div>

</div></div></div></div>
</div></blockquote></div></div><blockquote type="cite"><div><span>_________________________________________________________________________</span><br><span>Professional FreeSWITCH Consulting Services:</span><br><span><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a></span><br>
<span><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a></span><br><span></span><br><span>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</span><br><span><a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a></span><br>
<span></span><br><span>Official FreeSWITCH Sites</span><br><span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span><br><span><a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a></span><br>
<span><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a></span><br><span></span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></span><br>
<span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br>
<span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span><br></div></blockquote></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>