Hi,<br><br>I tried &quot;sofia status&quot; and it does not show my gateway, <br><br>freeswitch@ser&gt; sofia status<br>API CALL [sofia(status)] output:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Data&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; State<br>
=================================================================================================<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://192.168.1.104">192.168.1.104</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; alias&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; default&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ALIASED<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; outbound&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; profile&nbsp;&nbsp; <a href="http://sip:mod_sofia@58.251.75.228:5080">sip:mod_sofia@58.251.75.228:5080</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RUNNING (0)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; default&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; profile&nbsp;&nbsp; <a href="http://sip:mod_sofia@192.168.1.104:5060">sip:mod_sofia@192.168.1.104:5060</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RUNNING (0)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; profile&nbsp;&nbsp; <a href="http://sip:mod_sofia@58.251.75.228:5070">sip:mod_sofia@58.251.75.228:5070</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RUNNING (0)<br>=================================================================================================<br>
3 profiles 1 alias<br><br>I suspected maybe something is wrong with my config but I just can&#39;t figure it out.<br><br>Could you please help to take a look at my pastebin?&nbsp; <a href="http://pastebin.freeswitch.org/4248">http://pastebin.freeswitch.org/4248</a><br>
<br>Please help me so I get get started with FS.<br><br>Thanks,<br>Pete<br><br><div class="gmail_quote">On Thu, Apr 17, 2008 at 10:48 PM, UV &lt;<a href="mailto:uv@talknet.com.au">uv@talknet.com.au</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">















<div link="blue" vlink="blue" lang="EN-US">

<div>

<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Try this instead:</span></font></p>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&lt;action
application=&quot;bridge&quot; data=&quot;sofia/gateway/callwithus/$<span>1</span>@<a href="http://sip.callwithus.com" target="_blank">sip.callwithus.com</a>&quot;/&gt;</span></font><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"></span></font></p>


<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>

<div>

<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr align="center" size="2" width="100%">

</span></font></div>

<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>
[mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b><span style="font-weight: bold;">On Behalf Of </span></b>Pete Kay<br>
<b><span style="font-weight: bold;">Sent:</span></b> Thursday, April 17, 2008
11:02 PM<br>
<b><span style="font-weight: bold;">To:</span></b> <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> [Freeswitch-users] Need
help with a gateway problem</span></font></p>

</div><div><div></div><div class="Wj3C7c">

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Hi,<br>
<br>
I am still not yet able to get one sip phone to call the other due to the
problem I posted.&nbsp; So, I used the working sip client to try to call an
outside number<br>
by setting up a gateway. <br>
<br>
I tried to set up fastswitch to route call to my voip provider, I am getting
channel error but can&#39;t know why.&nbsp; Can anyone please give some help?</span></font></p>

<div>

<div>

<div>

<p><font face="Courier New" size="3"><span style="font-size: 12pt;">this is in my sofia.conf.xml</span></font></p>

</div>

<div>

<p><font face="Courier New" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&lt;gateways&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp;&lt;gateway name=&quot;callwithus&quot;&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;&lt;!--/// account username *required* ///--&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;&lt;param name=&quot;username&quot; value=&quot;<span>226</span>&quot;/&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;&lt;!--/// auth realm: *optional* same as gateway
name, if blank ///--&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;&lt;param name=&quot;realm&quot;
value=&quot;callwithus&quot;/&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;&lt;!--/// account password *required* ///--&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;&lt;param name=&quot;password&quot; value=&quot;<span>3336</span>&quot;/&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;&lt;!--/// extension for inbound calls: *optional*
same as username, if$&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;param
name=&quot;extension&quot; value=&quot;<span>2</span>&quot;/&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;&lt;!--/// proxy host: *optional* same as realm, if
blank ///--&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;&lt;param name=&quot;proxy&quot; value=&quot;<a href="http://sip.callwithus.com" target="_blank">sip.callwithus.com</a>&quot;/&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;&lt;!--/// expire in seconds: *optional* <span>3600</span>, if blank ///--&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;&lt;param name=&quot;expire-seconds&quot;
value=&quot;<span>600</span>&quot;/&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp;&lt;/gateway&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp; &nbsp;
&nbsp; &nbsp;&lt;/gateways&gt;</span></font></p>

</div>

<div>

<p><font face="Courier New" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</div>

<div>

<p><font face="Courier New" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</div>

<div>

<p><font face="Courier New" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</div>

<div>

<p><font face="Courier New" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</div>

<div>

<p><font face="Courier New" size="3"><span style="font-size: 12pt;">this is in my default dialplan</span></font></p>

</div>

<div>

<p><font face="Courier New" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</div>

<div>

<p><font face="Courier New" size="3"><span style="font-size: 12pt;">&nbsp;&lt;<font color="red"><span style="color: red;">context
name=&quot;home&quot;&gt;</span></font></span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp;
&nbsp;&lt;extension name=&quot;PrintVars&quot; continue=&quot;true&quot;&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp; &nbsp;
&lt;condition field=&quot;destination_number&quot; expression=&quot;^<span>[</span><span>0-9</span><span>]</span>&quot;&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp; &nbsp;
&nbsp;&lt;action application=&quot;info&quot;/&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp; &nbsp;
&lt;/condition&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp;
&nbsp;&lt;/extension&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp;
&nbsp;&lt;extension name=&quot;PBX Extension&quot;&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp; &nbsp;
&lt;condition field=&quot;destination_number&quot; expression=&quot;^<span>(</span><span>1</span><span>[</span><span>0-9</span><span>]{</span><span>2</span><span>})</span>$&quot;&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp; &nbsp;
&nbsp;&lt;!-- This will dial a registered phone at the ip or domain name you
set in$&nbsp; &nbsp; &nbsp;&lt;!-- <span>(</span>The % indicates it
is an internal extension<span>)</span>&nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $&nbsp; &nbsp;
&nbsp;&lt;action application=&quot;bridge&quot; data=&quot;sofia/sip/$<span>1</span>%$<span>{</span>server-domain-name<span>}</span>&quot;/&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp; &nbsp;
&lt;/condition&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp;
&nbsp;&lt;/extension&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp;
&lt;extension name=&quot;Local Dial&quot;&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp; &nbsp;
&lt;condition field=&quot;destination_number&quot; expression=&quot;^<span>([</span><span>0-9</span><span>]{</span><span>13</span><span>})</span>$&quot;&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp; &nbsp;
&nbsp;&lt;action application=&quot;set&quot;
data=&quot;effective_caller_id_name=John Freeswitch&quot;/&gt;&nbsp; &nbsp;
&nbsp;&lt;action application=&quot;set&quot;
data=&quot;effective_caller_id_number=<span>1234567</span>&quot;/&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp; &nbsp;
&nbsp; &nbsp; &lt;action application=&quot;log&quot; data=&quot;before bridging
<span>[</span>$<span>{</span><span>1</span><span>}]</span>\n&quot;/&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp; &nbsp;
&nbsp;&lt;action application=&quot;bridge&quot;
data=&quot;sofia/gateway/callwithus/$<span>1</span>@callwithus&quot;$&nbsp;
&nbsp; &lt;/condition&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp; &nbsp;&lt;/extension&gt;</span></font></p>

</div>

<div>

<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">&nbsp;
&lt;/context&gt;</span></font></p>

</div>

<div>

<p><font face="Courier New" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</div>

<div>

<p><font face="Courier New" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</div>

<div>

<p><font face="Courier New" size="3"><span style="font-size: 12pt;">Get error when I dial a <span>13</span>
digits number:</span></font></p>

</div>

<div>

<p><font face="Courier New" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</div>

<div>

<p><span><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">2008-04-18</span></font></span><font color="red" face="Courier New"><span style="color: red;">
<span>04</span>:<span>26</span>:<span>03</span> <span>[</span>ERR<span>]</span> mod_sofia.c:<span>1692</span>
sofia_outgoing_channel<span>()</span> Invalid Gateway</span></font></p>

</div>

<div>

<p><span><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">2008-04-18</span></font></span><font color="red" face="Courier New"><span style="color: red;">
<span>04</span>:<span>26</span>:<span>03</span> <span>[</span>NOTICE<span>]</span> mod_sofia.c:<span>1857</span>
sofia_outgoing_channel<span>()</span> Close Channel N/A <span>[</span>CS_NEW<span>]</span></span></font></p>

</div>

<div>

<p><span><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">2008-04-18</span></font></span><font color="red" face="Courier New"><span style="color: red;">
<span>04</span>:<span>26</span>:<span>03</span> <span>[</span>ERR<span>]</span> switch_ivr_originate.c:<span>813</span> switch_ivr_originate<span>()</span> Cannot
create outgoing channel of type <span>[</span>sofia<span>]</span> cause: <span>[</span>INVALID_NUMBER_FORMAT<span>]</span></span></font></p>

</div>

<div>

<p><span><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">2008-04-18</span></font></span><font color="red" face="Courier New"><span style="color: red;">
<span>04</span>:<span>26</span>:<span>03</span> <span>[</span>INFO<span>]</span> mod_dptools.c:<span>1536</span>
audio_bridge_function<span>()</span> Originate Failed.&nbsp; Cause:
INVALID_NUMBER_FORM AT<br>
<br>
<br>
</span></font><font color="black" face="Courier New"><span style="color: black;">Any suggestion will be greatly appreciated.<br>
<br>
Thanks<br>
Pete</span></font><font color="red" face="Courier New"><span style="color: red;"></span></font></p>

</div>

</div>

</div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</div></div></div>

</div>


<br>

<p><font size="2">No virus found in this outgoing message.<br>
Checked by AVG.<br>
Version: 7.5.519 / Virus Database: 269.23.0/1382 - Release Date: 16-Apr-08 5:34 PM<br>
</font> </p>
<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>