<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1250">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Try this instead:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'><action
application="bridge" data="sofia/gateway/callwithus/$<span
class=nu0>1</span>@<a href="http://sip.callwithus.com">sip.callwithus.com</a>"/></span></font><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] <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> <st1:PersonName w:st="on">freeswitch-users@lists.freeswitch.org</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> [Freeswitch-users] Need
help with a gateway problem</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>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?<o:p></o:p></span></font></p>
<div>
<div>
<div>
<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'>this is in my sofia.conf.xml<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'><gateways><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
<gateway name="callwithus"><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
<!--/// account username *required* ///--><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
<param name="username" value="<span
class=nu0>226</span>"/><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
<!--/// auth realm: *optional* same as gateway
name, if blank ///--><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
<param name="realm"
value="callwithus"/><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
<!--/// account password *required* ///--><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
<param name="password" value="<span
class=nu0>3336</span>"/><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
<!--/// extension for inbound calls: *optional*
same as username, if$ <param
name="extension" value="<span class=nu0>2</span>"/><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
<!--/// proxy host: *optional* same as realm, if
blank ///--><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
<param name="proxy" value="<a
href="http://sip.callwithus.com">sip.callwithus.com</a>"/><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
<!--/// expire in seconds: *optional* <span
class=nu0>3600</span>, if blank ///--><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
<param name="expire-seconds"
value="<span class=nu0>600</span>"/><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
</gateway><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
</gateways><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'>this is in my default dialplan<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'> <<font color=red><span style='color:red'>context
name="home"></span></font><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
<extension name="PrintVars" continue="true"><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
<condition field="destination_number" expression="^<span
class=br0>[</span><span class=nu0>0-9</span><span class=br0>]</span>"><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
<action application="info"/><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
</condition><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
</extension><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
<extension name="PBX Extension"><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
<condition field="destination_number" expression="^<span
class=br0>(</span><span class=nu0>1</span><span class=br0>[</span><span
class=nu0>0-9</span><span class=br0>]{</span><span class=nu0>2</span><span
class=br0>})</span>$"><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
<!-- 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>"/><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
</condition><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
</extension><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
<extension name="Local Dial"><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
<condition field="destination_number" expression="^<span
class=br0>([</span><span class=nu0>0-9</span><span class=br0>]{</span><span
class=nu0>13</span><span class=br0>})</span>$"><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
<action application="set"
data="effective_caller_id_name=John Freeswitch"/>
<action application="set"
data="effective_caller_id_number=<span class=nu0>1234567</span>"/><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
<action application="log" data="before bridging
<span class=br0>[</span>$<span class=br0>{</span><span class=nu0>1</span><span
class=br0>}]</span>\n"/><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
<action application="bridge"
data="sofia/gateway/callwithus/$<span class=nu0>1</span>@callwithus"$
</condition><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'> </extension><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>
</context><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'>Get error when I dial a <span class=nu0>13</span>
digits number:<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><span class=nu0><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>2008-04-18</span></font></span><font
color=red face="Courier New"><span style='font-family:"Courier New";color:red'>
<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> Invalid Gateway<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><span class=nu0><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>2008-04-18</span></font></span><font
color=red face="Courier New"><span style='font-family:"Courier New";color:red'>
<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> Close Channel N/A <span
class=br0>[</span>CS_NEW<span class=br0>]</span><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><span class=nu0><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>2008-04-18</span></font></span><font
color=red face="Courier New"><span style='font-family:"Courier New";color:red'>
<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> Cannot
create outgoing channel of type <span class=br0>[</span><st1:City w:st="on"><st1:place
w:st="on">sofia</st1:place></st1:City><span class=br0>]</span> cause: <span
class=br0>[</span>INVALID_NUMBER_FORMAT<span class=br0>]</span><o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><span class=nu0><font size=3 color=red face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New";color:red'>2008-04-18</span></font></span><font
color=red face="Courier New"><span style='font-family:"Courier New";color:red'>
<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> Originate Failed. Cause:
INVALID_NUMBER_FORM AT<br>
<br>
<br>
</span></font><font color=black face="Courier New"><span style='font-family:
"Courier New";color:black'>Any suggestion will be greatly appreciated.<br>
<br>
Thanks<br>
Pete</span></font><font color=red face="Courier New"><span style='font-family:
"Courier New";color:red'><o:p></o:p></span></font></p>
</div>
</div>
</div>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>
<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>