<div dir="ltr">Hi,<br><br> I am using Freeswitch with Sangoma A102 and Openzap. I have configured the extension in default.xml as <br><br><b>default.xml</b><br> <extension name="Long Distance - wanpipe"><br>
<condition field="destination_number" expression="^0([0-9]+)$"><br> <action application="set" data="dialed_ext=$1"/><br> <action application="bridge" data="openzap/${dialed_ext}"/><br>
</condition> <br> </extension> <br><b><br>openzap.conf</b><br>[span wanpipe]<br> trunk_type => e1<br> b-channel => 1:1-15<br> d-channel=> 1:16<br> b-channel => 1:17-31<br><br>
<b>openzap.conf.xml</b><br><style>BODY{font:x-small 'Verdana';margin-right:1.5em}
.c{cursor:hand}
.b{color:red;font-family:'Courier New';font-weight:bold;text-decoration:none}
.e{margin-left:1em;text-indent:-1em;margin-right:1em}
.k{margin-left:1em;text-indent:-1em;margin-right:1em}
.t{color:#990000}
.xt{color:#990099}
.ns{color:red}
.dt{color:green}
.m{color:blue}
.tx{font-weight:bold}
.db{text-indent:0px;margin-left:1em;margin-top:0px;margin-bottom:0px;padding-left:.3em;border-left:1px solid #CCCCCC;font:small Courier}
.di{font:small Courier}
.d{color:blue}
.pi{color:blue}
.cb{text-indent:0px;margin-left:1em;margin-top:0px;margin-bottom:0px;padding-left:.3em;font:small Courier;color:#888888}
.ci{font:small Courier;color:#888888}
PRE{margin:0px;display:inline}</style><div class="e">
<div class="c" style="margin-left: 1em; text-indent: -2em;"> <span class="m"><</span><span class="t">configuration</span><span class="t"> name</span><span class="m">="</span><b>openzap.conf</b><span class="m">"</span><span class="t">
description</span><span class="m">="</span><b>OpenZAP Configuration</b><span class="m">"</span><span class="m">></span></div>
<div>
<div class="e">
<div class="c" style="margin-left: 1em; text-indent: -2em;"><span class="m"><</span><span class="t">settings</span><span class="m">></span></div>
<div>
<div class="e">
<div style="margin-left: 1em; text-indent: -2em;"><span class="b"> </span> <span class="m"><</span><span class="t">param</span> <span class="t">name</span><span class="m">="</span><b>debug</b><span class="m">"</span><span class="t">
value</span><span class="m">="</span><b>0</b><span class="m">"</span><span class="m">
/></span> </div></div>
<div><span class="b"> </span> <span class="m"></</span><span class="t">settings</span><span class="m">></span></div></div></div>
<div class="e">
<div class="c" style="margin-left: 1em; text-indent: -2em;"><span class="m"><</span><span class="t">pri_spans</span><span class="m">></span></div>
<div>
<div class="e">
<div class="c" style="margin-left: 1em; text-indent: -2em;"><span class="m"><</span><span class="t">span</span><span class="t"> id</span><span class="m">="</span><b>1</b><span class="m">"</span><span class="m">></span></div>
<div>
<div class="e">
<div style="margin-left: 1em; text-indent: -2em;"><span class="b"> </span> <span class="m"><</span><span class="t">param</span> <span class="t">name</span><span class="m">="</span><b>mode</b><span class="m">"</span><span class="t">
value</span><span class="m">="</span><b>user</b><span class="m">"</span><span class="m"> /></span> </div></div>
<div class="e">
<div style="margin-left: 1em; text-indent: -2em;"><span class="b"> </span> <span class="m"><</span><span class="t">param</span> <span class="t">name</span><span class="m">="</span><b>dialect</b><span class="m">"</span><span class="t">
value</span><span class="m">="</span><b>euro</b><span class="m">"</span><span class="m"> /></span> </div></div>
<div class="e">
<div style="margin-left: 1em; text-indent: -2em;"><span class="b"> </span> <span class="m"><</span><span class="t">param</span> <span class="t">name</span><span class="m">="</span><b>dialplan</b><span class="m">"</span><span class="t">
value</span><span class="m">="</span><b>XML</b><span class="m">"</span><span class="m"> /></span> </div></div>
<div class="e">
<div style="margin-left: 1em; text-indent: -2em;"><span class="b"> </span> <span class="m"><</span><span class="t">param</span> <span class="t">name</span><span class="m">="</span><b>context</b><span class="m">"</span><span class="t">
value</span><span class="m">="</span><b>default</b><span class="m">"</span><span class="m"> /></span> </div></div>
<div><span class="b"> </span> <span class="m"></</span><span class="t">span</span><span class="m">></span></div></div></div>
<div><span class="b"> </span> <span class="m"></</span><span class="t">pri_spans</span><span class="m">></span></div></div></div>
<div><span class="b"> </span> <span class="m"></</span><span class="t">configuration</span><span class="m">></span></div></div></div><br><br>Whenever I am dialing thru my softphone i get the no route in freeswitch console as<br>
<br>2008-09-17 17:46:13 [INFO] mod_dialplan_xml.c:228 dialplan_hunt() Processing FreeSwitch->9894929942 in context default<br>2008-09-17 17:46:13 [NOTICE] switch_ivr.c:1098 switch_ivr_session_transfer() Transfer sofia/internal/<a href="mailto:1001@172.20.176.32">1001@172.20.176.32</a> to enum[9894929942@default]<br>
2008-09-17 17:46:13 [INFO] switch_core_state_machine.c:114 switch_core_standard_on_routing() No Route, Aborting<br>2008-09-17 17:46:13 [NOTICE] switch_core_state_machine.c:115 switch_core_standard_on_routing() Hangup sofia/internal/<a href="mailto:1001@172.20.176.32">1001@172.20.176.32</a> [CS_ROUTING] [NO_ROUTE_DESTINATION]<br>
2008-09-17 17:46:13 [NOTICE] switch_core_session.c:812 switch_core_session_thread() Session 2 (sofia/internal/<a href="mailto:1001@172.20.176.32">1001@172.20.176.32</a>) Ended<br>2008-09-17 17:46:13 [NOTICE] switch_core_session.c:814 switch_core_session_thread() Close Channel sofia/internal/<a href="mailto:1001@172.20.176.32">1001@172.20.176.32</a> [CS_HANGUP]<br>
<br>Any help would be appreciated.<br><div class="gmail_quote">On Thu, Aug 28, 2008 at 11:52 PM, Cliconnect <span dir="ltr"><<a href="mailto:cliconnect@cliconnect.com">cliconnect@cliconnect.com</a>></span> 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 style="">
<div><span><font size="2" color="#0000ff" face="Tahoma">Thank
you Brian,</font></span></div>
<div><span><font size="2" color="#0000ff" face="Tahoma"></font></span> </div>
<div><span><font size="2" color="#0000ff" face="Tahoma">it
worked.</font></span></div>
<div><span><font size="2" color="#0000ff" face="Tahoma"></font></span> </div>
<div><span><font size="2" color="#0000ff" face="Tahoma">regards</font></span></div>
<div> </div>
<div> </div>
<div>
<div align="left"><span><font size="2" color="#0000ff" face="Tahoma">Duan</font></span></div>
<p> </p></div><div><div></div><div class="Wj3C7c">
<blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div></div>
<div dir="ltr" align="left" lang="en-us"><font size="2" face="Tahoma">-----Original Message-----<br><b>From:</b>
<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>On Behalf Of
</b>Brian West<br><b>Sent:</b> Thursday, August 28, 2008 11:07
AM<br><b>To:</b> <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br><b>Subject:</b> Re:
[Freeswitch-users] dialpaln<br><br></font></div>
<div>For extensions you usually have a 4 digit number so you would do this:
^(\d{4})$ then for the pstn you would not want to match just all
digits like that. ^(\d{7,15})$</div>
<div><br></div>
<div>/b</div>
<div><br></div>
<div><br></div><br>
<div>
<div>On Aug 28, 2008, at 1:01 PM, Cliconnect wrote:</div><br>
<blockquote type="cite"><span style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;">
<div><font size="2" color="#000080" face="Tahoma">
<div><font size="2" color="#000080" face="Tahoma"><span>Hi,</span></font></div>
<div><font size="2" color="#000080" face="Tahoma"><span></span></font> </div>
<div><font size="2" color="#000080" face="Tahoma"><span> I can call extensions like 1000
with</span></font></div>
<div><font size="2" color="#000080" face="Tahoma"><span></span></font> </div>
<div><font size="2" color="#000080" face="Tahoma"><span><extension
name="extensions"><br> <condition
field="destination_number"
expression="^(\d+)$"><br>
<action application="bridge" data="sofia/doublenat/$1%<a href="http://voipclic.com" target="_blank">voipclic.com</a>
"/><br> </span></font><font size="2" color="#000080" face="Tahoma"><span>
</condition><br>
</extension></span></font></div>
<div><font size="2" color="#000080" face="Tahoma"><span></span></font> </div>
<div><font size="2" color="#000080" face="Tahoma"><span>and I can call PSTN with</span></font></div>
<div><font size="2" color="#000080" face="Tahoma"><span></span></font> </div>
<div><font size="2" color="#000080" face="Tahoma"><span><extension
name="PSTN"><br> <condition
field="destination_number"
expression="^(\d+)$"><br> <action
application="bridge"
data="sofia/gateway/inphonex/$0"/></span></font></div>
<div><span><font size="2" color="#000080" face="Tahoma"> </condition><br>
</extension><br></font></span></div>
<div><br><span><font size="2" color="#000080" face="Tahoma">Both config being in the same default.xml dialplan but I must
use one or the other config. What I have to do in order to have them working
at the same time. In other words the<span><span> </span>same<span> </span></span> user can call PSTN and
the extension.</font></span></div>
<div><span><font size="2" color="#000080" face="Tahoma"></font></span> </div>
<div><span><font size="2" color="#000080" face="Tahoma">thanks</font></span></div>
<div><span><font size="2" color="#000080" face="Tahoma"></font></span> </div>
<div><span><font size="2" color="#000080" face="Tahoma">Duan</font></span></div></font></div>
<div> </div></span></blockquote></div><br>
<div><span style="word-spacing: 0px; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate;">
<div style="">
<div>Brian West</div>
<div><a>sip:brian@freeswitch.org</a></div>
<div><br></div></div></span><br></div><br></blockquote></div></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><br clear="all"><br>-- <br>Thank you with regards,<br>Gopal,<br><br>
</div>