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?<br>
<br><div class="syntax"><div class="text" style="font-family: monospace;"><div class="de1">this is in my sofia.conf.xml</div><div class="de2"> </div><div style="color: rgb(255, 0, 0);" class="de1"><gateways></div><div style="color: rgb(255, 0, 0);" class="de2">
<gateway name="callwithus"></div><div style="color: rgb(255, 0, 0);" class="de1"> <!--/// account username *required* ///--></div><div style="color: rgb(255, 0, 0);" class="de2"> <param name="username" value="<span class="nu0">226</span>"/></div>
<div style="color: rgb(255, 0, 0);" class="de1"> <!--/// auth realm: *optional* same as gateway name, if blank ///--></div><div style="color: rgb(255, 0, 0);" class="de2"> <param name="realm" value="callwithus"/></div>
<div style="color: rgb(255, 0, 0);" class="de1"> <!--/// account password *required* ///--></div><div style="color: rgb(255, 0, 0);" class="de2"> <param name="password" value="<span class="nu0">3336</span>"/></div>
<div style="color: rgb(255, 0, 0);" class="de1"> <!--/// extension for inbound calls: *optional* same as username, if$ <param name="extension" value="<span class="nu0">2</span>"/></div>
<div style="color: rgb(255, 0, 0);" class="de2"> <!--/// proxy host: *optional* same as realm, if blank ///--></div><div style="color: rgb(255, 0, 0);" class="de1"> <param name="proxy" value="<a href="http://sip.callwithus.com">sip.callwithus.com</a>"/></div>
<div style="color: rgb(255, 0, 0);" class="de2"> <!--/// expire in seconds: *optional* <span class="nu0">3600</span>, if blank ///--></div><div style="color: rgb(255, 0, 0);" class="de1"> <param name="expire-seconds" value="<span class="nu0">600</span>"/></div>
<div style="color: rgb(255, 0, 0);" class="de2"> </div><div style="color: rgb(255, 0, 0);" class="de1"> </gateway></div><div style="color: rgb(255, 0, 0);" class="de2"> </gateways></div><div class="de1">
</div><div class="de2"> </div><div class="de1"> </div><div class="de2"> </div><div class="de1">this is in my default dialplan</div><div class="de2"> </div><div class="de1"> <<span style="color: rgb(255, 0, 0);">context name="home"></span></div>
<div style="color: rgb(255, 0, 0);" class="de2"> <extension name="PrintVars" continue="true"></div><div style="color: rgb(255, 0, 0);" class="de1"> <condition field="destination_number" expression="^<span class="br0">[</span><span class="nu0">0</span><span class="nu0">-9</span><span class="br0">]</span>"></div>
<div style="color: rgb(255, 0, 0);" class="de2"> <action application="info"/></div><div style="color: rgb(255, 0, 0);" class="de1"> </condition></div><div style="color: rgb(255, 0, 0);" class="de2">
</extension></div><div style="color: rgb(255, 0, 0);" class="de1"> </div><div style="color: rgb(255, 0, 0);" class="de2"> <extension name="PBX Extension"></div><div style="color: rgb(255, 0, 0);" class="de1">
<condition field="destination_number" expression="^<span class="br0">(</span><span class="nu0">1</span><span class="br0">[</span><span class="nu0">0</span><span class="nu0">-9</span><span class="br0">]</span><span class="br0">{</span><span class="nu0">2</span><span class="br0">}</span><span class="br0">)</span>$"></div>
<div style="color: rgb(255, 0, 0);" class="de2"> <!-- This will dial a registered phone at the ip or domain name you set in$ <!-- <span class="br0">(</span>The % indicates it is an internal extension<span class="br0">)</span> $ <action application="bridge" data="sofia/sip/$<span class="nu0">1</span>%$<span class="br0">{</span>server-domain-name<span class="br0">}</span>"/></div>
<div style="color: rgb(255, 0, 0);" class="de1"> </condition></div><div style="color: rgb(255, 0, 0);" class="de2"> </extension></div><div style="color: rgb(255, 0, 0);" class="de1"> <extension name="Local Dial"></div>
<div style="color: rgb(255, 0, 0);" class="de2"> <condition field="destination_number" expression="^<span class="br0">(</span><span class="br0">[</span><span class="nu0">0</span><span class="nu0">-9</span><span class="br0">]</span><span class="br0">{</span><span class="nu0">13</span><span class="br0">}</span><span class="br0">)</span>$"></div>
<div style="color: rgb(255, 0, 0);" class="de1"> <action application="set"
data="effective_caller_id_name=John Freeswitch"/> <action
application="set" data="effective_caller_id_number=<span class="nu0">1234567</span>"/></div><div style="color: rgb(255, 0, 0);" class="de2"> <action application="log" data="before bridging <span class="br0">[</span>$<span class="br0">{</span><span class="nu0">1</span><span class="br0">}</span><span class="br0">]</span>\n"/></div>
<div style="color: rgb(255, 0, 0);" class="de1"> <action application="bridge" data="sofia/gateway/callwithus/$<span class="nu0">1</span>@callwithus"$ </condition></div><div style="color: rgb(255, 0, 0);" class="de2">
</extension></div><div style="color: rgb(255, 0, 0);" class="de1"> </context></div><div class="de2"> </div><div class="de1"> </div><div class="de2">Get error when I dial a <span class="nu0">13</span> digits number:</div>
<div class="de1"> </div><div style="color: rgb(255, 0, 0);" class="de2"><span class="nu0">2008</span><span class="nu0">-04</span><span class="nu0">-18</span> <span class="nu0">04</span>:<span class="nu0">26</span>:<span class="nu0">03</span> <span class="br0">[</span>ERR<span class="br0">]</span> mod_sofia.c:<span class="nu0">1692</span> sofia_outgoing_channel<span class="br0">(</span><span class="br0">)</span> Invalid Gateway</div>
<div style="color: rgb(255, 0, 0);" class="de1"><span class="nu0">2008</span><span class="nu0">-04</span><span class="nu0">-18</span> <span class="nu0">04</span>:<span class="nu0">26</span>:<span class="nu0">03</span> <span class="br0">[</span>NOTICE<span class="br0">]</span> mod_sofia.c:<span class="nu0">1857</span> sofia_outgoing_channel<span class="br0">(</span><span class="br0">)</span> Close Channel N/A <span class="br0">[</span>CS_NEW<span class="br0">]</span></div>
<div style="color: rgb(255, 0, 0);" class="de2"><span class="nu0">2008</span><span class="nu0">-04</span><span class="nu0">-18</span> <span class="nu0">04</span>:<span class="nu0">26</span>:<span class="nu0">03</span> <span class="br0">[</span>ERR<span class="br0">]</span> switch_ivr_originate.c:<span class="nu0">813</span> switch_ivr_originate<span class="br0">(</span><span class="br0">)</span> Cannot create outgoing channel of type <span class="br0">[</span>sofia<span class="br0">]</span> cause: <span class="br0">[</span>INVALID_NUMBER_FORMAT<span class="br0">]</span></div>
<div style="color: rgb(255, 0, 0);" class="de1"><span class="nu0">2008</span><span class="nu0">-04</span><span class="nu0">-18</span> <span class="nu0">04</span>:<span class="nu0">26</span>:<span class="nu0">03</span> <span class="br0">[</span>INFO<span class="br0">]</span> mod_dptools.c:<span class="nu0">1536</span> audio_bridge_function<span class="br0">(</span><span class="br0">)</span> Originate Failed. Cause: INVALID_NUMBER_FORM AT<br>
<br><br><font color="#000000">Any suggestion will be greatly appreciated.<br><br>Thanks<br>Pete<br></font> </div></div></div><br>