Hi,<br><br>I tried "sofia status" and it does not show my gateway, <br><br>freeswitch@ser> sofia status<br>API CALL [sofia(status)] output:<br> Name Type Data State<br>
=================================================================================================<br> <a href="http://192.168.1.104">192.168.1.104</a> alias default ALIASED<br>
outbound profile <a href="http://sip:mod_sofia@58.251.75.228:5080">sip:mod_sofia@58.251.75.228:5080</a> RUNNING (0)<br> default profile <a href="http://sip:mod_sofia@192.168.1.104:5060">sip:mod_sofia@192.168.1.104:5060</a> RUNNING (0)<br>
nat profile <a href="http://sip:mod_sofia@58.251.75.228:5070">sip:mod_sofia@58.251.75.228:5070</a> RUNNING (0)<br>=================================================================================================<br>
3 profiles 1 alias<br><br>I suspected maybe something is wrong with my config but I just can't figure it out.<br><br>Could you please help to take a look at my pastebin? <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 <<a href="mailto:uv@talknet.com.au">uv@talknet.com.au</a>> 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;"><action
application="bridge" data="sofia/gateway/callwithus/$<span>1</span>@<a href="http://sip.callwithus.com" target="_blank">sip.callwithus.com</a>"/></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;"> </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;"> </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. 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't know why. 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;"> </span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;"><gateways></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
<gateway name="callwithus"></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
<!--/// account username *required* ///--></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
<param name="username" value="<span>226</span>"/></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
<!--/// auth realm: *optional* same as gateway
name, if blank ///--></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
<param name="realm"
value="callwithus"/></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
<!--/// account password *required* ///--></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
<param name="password" value="<span>3336</span>"/></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
<!--/// extension for inbound calls: *optional*
same as username, if$ <param
name="extension" value="<span>2</span>"/></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
<!--/// proxy host: *optional* same as realm, if
blank ///--></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
<param name="proxy" value="<a href="http://sip.callwithus.com" target="_blank">sip.callwithus.com</a>"/></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
<!--/// expire in seconds: *optional* <span>3600</span>, if blank ///--></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
<param name="expire-seconds"
value="<span>600</span>"/></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;"> </span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
</gateway></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
</gateways></span></font></p>
</div>
<div>
<p><font face="Courier New" size="3"><span style="font-size: 12pt;"> </span></font></p>
</div>
<div>
<p><font face="Courier New" size="3"><span style="font-size: 12pt;"> </span></font></p>
</div>
<div>
<p><font face="Courier New" size="3"><span style="font-size: 12pt;"> </span></font></p>
</div>
<div>
<p><font face="Courier New" size="3"><span style="font-size: 12pt;"> </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;"> </span></font></p>
</div>
<div>
<p><font face="Courier New" size="3"><span style="font-size: 12pt;"> <<font color="red"><span style="color: red;">context
name="home"></span></font></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
<extension name="PrintVars" continue="true"></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
<condition field="destination_number" expression="^<span>[</span><span>0-9</span><span>]</span>"></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
<action application="info"/></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
</condition></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
</extension></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;"> </span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
<extension name="PBX Extension"></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
<condition field="destination_number" expression="^<span>(</span><span>1</span><span>[</span><span>0-9</span><span>]{</span><span>2</span><span>})</span>$"></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
<!-- This will dial a registered phone at the ip or domain name you
set in$ <!-- <span>(</span>The % indicates it
is an internal extension<span>)</span>
$
<action application="bridge" data="sofia/sip/$<span>1</span>%$<span>{</span>server-domain-name<span>}</span>"/></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
</condition></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
</extension></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
<extension name="Local Dial"></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
<condition field="destination_number" expression="^<span>([</span><span>0-9</span><span>]{</span><span>13</span><span>})</span>$"></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
<action application="set"
data="effective_caller_id_name=John Freeswitch"/>
<action application="set"
data="effective_caller_id_number=<span>1234567</span>"/></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
<action application="log" data="before bridging
<span>[</span>$<span>{</span><span>1</span><span>}]</span>\n"/></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
<action application="bridge"
data="sofia/gateway/callwithus/$<span>1</span>@callwithus"$
</condition></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;"> </extension></span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">
</context></span></font></p>
</div>
<div>
<p><font face="Courier New" size="3"><span style="font-size: 12pt;"> </span></font></p>
</div>
<div>
<p><font face="Courier New" size="3"><span style="font-size: 12pt;"> </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;"> </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. 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;"> </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>