<br>Hi,<br><br>I created another callwithus.xml under outbound and it is working now.<br><br>Thanks alot.<br><br>Pete<br><div class="gmail_quote">On Thu, Apr 17, 2008 at 11:27 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:</span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Sofia</span></font><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> status gateway callwithus</span></font></p>
<p><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="Trebuchet MS" size="2"><span style="font-size: 10pt; color: navy;" lang="EN-AU">(maybe
someone should add this to the wiki page <a href="http://wiki.freeswitch.org/wiki/Sofia" target="_blank">http://wiki.freeswitch.org/wiki/Sofia</a>
)</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> Friday, April 18, 2008 1:08
AM<div class="Ih2E3d"><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>
</div><b><span style="font-weight: bold;">Subject:</span></b> Re: [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 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" target="_blank">192.168.1.104</a>
alias
default ALIASED<br>
outbound profile <a href="http://sip:mod_sofia@58.251.75.228:5080" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">http://pastebin.freeswitch.org/4248</a><br>
<br>
Please help me so I get get started with FS.<br>
<br>
Thanks,<br>
Pete</span></font></p>
<div>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">On Thu, Apr 17, 2008 at 10:48 PM, UV <<a href="mailto:uv@talknet.com.au" target="_blank">uv@talknet.com.au</a>> wrote:</span></font></p>
<div link="blue" vlink="blue">
<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/$1@<a href="http://sip.callwithus.com" target="_blank">sip.callwithus.com</a>"/></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>
<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="226"/></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="3336"/></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="2"/></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* 3600, 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="600"/></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="^[0-9]"></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="^(1[0-9]{2})$"></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$
<!-- (The % indicates it is an internal extension)
$
<action application="bridge"
data="sofia/sip/$1%${server-domain-name}"/></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="^([0-9]{13})$"></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=1234567"/></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 [${1}]\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/$1@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 13 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><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">2008-04-18 04:26:03 [ERR] mod_sofia.c:1692
sofia_outgoing_channel() Invalid Gateway</span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">2008-04-18 04:26:03 [NOTICE]
mod_sofia.c:1857 sofia_outgoing_channel() Close Channel N/A [CS_NEW]</span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">2008-04-18 04:26:03 [ERR]
switch_ivr_originate.c:813 switch_ivr_originate() Cannot create outgoing
channel of type [sofia]
cause: [INVALID_NUMBER_FORMAT]</span></font></p>
</div>
<div>
<p><font color="red" face="Courier New" size="3"><span style="font-size: 12pt; color: red;">2008-04-18 04:26:03 [INFO]
mod_dptools.c:1536 audio_bridge_function() 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></p>
</div>
</div>
</div>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
</div>
</div>
</div>
</div>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
<p><font face="Times New Roman" size="2"><span style="font-size: 10pt;">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</span></font></p>
<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">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></span></font></p>
</div>
<p style="margin-bottom: 12pt;"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
</div></div><p><font face="Times New Roman" size="2"><span style="font-size: 10pt;">No virus
found in this incoming message.<div class="Ih2E3d"><br>
Checked by AVG.<br>
Version: 7.5.519 / Virus Database: 269.23.0/1382 - Release Date: 16-Apr-08 5:34
PM</div></span></font></p>
</div>
</div><div><div></div><div class="Wj3C7c">
<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>
</div></div><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>