<div dir="ltr">Hi,<br><br>&nbsp; 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>&nbsp;&lt;extension name=&quot;Long Distance - wanpipe&quot;&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;^0([0-9]+)$&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;set&quot; data=&quot;dialed_ext=$1&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;bridge&quot; data=&quot;openzap/${dialed_ext}&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp; &lt;/extension&gt; <br><b><br>openzap.conf</b><br>[span wanpipe]<br>&nbsp;trunk_type =&gt; e1<br>&nbsp;b-channel =&gt; 1:1-15<br>&nbsp;d-channel=&gt; 1:16<br>&nbsp;b-channel =&gt; 1:17-31<br><br>
<b>openzap.conf.xml</b><br><style>BODY{font:x-small &#39;Verdana&#39;;margin-right:1.5em}
.c{cursor:hand}
.b{color:red;font-family:&#39;Courier New&#39;;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;">&nbsp;<span class="m">&lt;</span><span class="t">configuration</span><span class="t"> name</span><span class="m">=&quot;</span><b>openzap.conf</b><span class="m">&quot;</span><span class="t"> 
description</span><span class="m">=&quot;</span><b>OpenZAP Configuration</b><span class="m">&quot;</span><span class="m">&gt;</span></div>
<div>
<div class="e">
<div class="c" style="margin-left: 1em; text-indent: -2em;"><span class="m">&lt;</span><span class="t">settings</span><span class="m">&gt;</span></div>
<div>
<div class="e">
<div style="margin-left: 1em; text-indent: -2em;"><span class="b">&nbsp;</span> <span class="m">&lt;</span><span class="t">param</span> <span class="t">name</span><span class="m">=&quot;</span><b>debug</b><span class="m">&quot;</span><span class="t"> 
value</span><span class="m">=&quot;</span><b>0</b><span class="m">&quot;</span><span class="m"> 
/&gt;</span> </div></div>
<div><span class="b">&nbsp;</span> <span class="m">&lt;/</span><span class="t">settings</span><span class="m">&gt;</span></div></div></div>
<div class="e">
<div class="c" style="margin-left: 1em; text-indent: -2em;"><span class="m">&lt;</span><span class="t">pri_spans</span><span class="m">&gt;</span></div>
<div>
<div class="e">
<div class="c" style="margin-left: 1em; text-indent: -2em;"><span class="m">&lt;</span><span class="t">span</span><span class="t"> id</span><span class="m">=&quot;</span><b>1</b><span class="m">&quot;</span><span class="m">&gt;</span></div>

<div>
<div class="e">
<div style="margin-left: 1em; text-indent: -2em;"><span class="b">&nbsp;</span> <span class="m">&lt;</span><span class="t">param</span> <span class="t">name</span><span class="m">=&quot;</span><b>mode</b><span class="m">&quot;</span><span class="t"> 
value</span><span class="m">=&quot;</span><b>user</b><span class="m">&quot;</span><span class="m"> /&gt;</span> </div></div>
<div class="e">
<div style="margin-left: 1em; text-indent: -2em;"><span class="b">&nbsp;</span> <span class="m">&lt;</span><span class="t">param</span> <span class="t">name</span><span class="m">=&quot;</span><b>dialect</b><span class="m">&quot;</span><span class="t"> 
value</span><span class="m">=&quot;</span><b>euro</b><span class="m">&quot;</span><span class="m"> /&gt;</span> </div></div>
<div class="e">
<div style="margin-left: 1em; text-indent: -2em;"><span class="b">&nbsp;</span> <span class="m">&lt;</span><span class="t">param</span> <span class="t">name</span><span class="m">=&quot;</span><b>dialplan</b><span class="m">&quot;</span><span class="t"> 
value</span><span class="m">=&quot;</span><b>XML</b><span class="m">&quot;</span><span class="m"> /&gt;</span> </div></div>
<div class="e">
<div style="margin-left: 1em; text-indent: -2em;"><span class="b">&nbsp;</span> <span class="m">&lt;</span><span class="t">param</span> <span class="t">name</span><span class="m">=&quot;</span><b>context</b><span class="m">&quot;</span><span class="t"> 
value</span><span class="m">=&quot;</span><b>default</b><span class="m">&quot;</span><span class="m"> /&gt;</span> </div></div>
<div><span class="b">&nbsp;</span> <span class="m">&lt;/</span><span class="t">span</span><span class="m">&gt;</span></div></div></div>
<div><span class="b">&nbsp;</span> <span class="m">&lt;/</span><span class="t">pri_spans</span><span class="m">&gt;</span></div></div></div>
<div><span class="b">&nbsp;</span> <span class="m">&lt;/</span><span class="t">configuration</span><span class="m">&gt;</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-&gt;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">&lt;<a href="mailto:cliconnect@cliconnect.com">cliconnect@cliconnect.com</a>&gt;</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>&nbsp;</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>&nbsp;</div>
<div><span><font size="2" color="#0000ff" face="Tahoma">regards</font></span></div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>
<div align="left"><span><font size="2" color="#0000ff" face="Tahoma">Duan</font></span></div>
<p>&nbsp;</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: 
  &nbsp;^(\d{4})$ &nbsp;then for the pstn you would not want to match just all 
  digits like that. &nbsp;^(\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>&nbsp;</div>
    <div><font size="2" color="#000080" face="Tahoma"><span>&nbsp;I can call extensions like 1000 
    with</span></font></div>
    <div><font size="2" color="#000080" face="Tahoma"><span></span></font>&nbsp;</div>
    <div><font size="2" color="#000080" face="Tahoma"><span>&lt;extension 
    name=&quot;extensions&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition 
    field=&quot;destination_number&quot; 
    expression=&quot;^(\d+)$&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    &lt;action application=&quot;bridge&quot; data=&quot;sofia/doublenat/$1%<a href="http://voipclic.com" target="_blank">voipclic.com</a> 
    &quot;/&gt;<br>&nbsp;&nbsp;&nbsp;</span></font><font size="2" color="#000080" face="Tahoma"><span>&nbsp;&nbsp;&nbsp;&nbsp; 
    &lt;/condition&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; 
    &lt;/extension&gt;</span></font></div>
    <div><font size="2" color="#000080" face="Tahoma"><span></span></font>&nbsp;</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>&nbsp;</div>
    <div><font size="2" color="#000080" face="Tahoma"><span>&lt;extension 
    name=&quot;PSTN&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition 
    field=&quot;destination_number&quot; 
    expression=&quot;^(\d+)$&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action 
    application=&quot;bridge&quot; 
    data=&quot;sofia/gateway/inphonex/$0&quot;/&gt;</span></font></div>
    <div><span><font size="2" color="#000080" face="Tahoma">&nbsp;&lt;/condition&gt;<br>&nbsp; 
    &lt;/extension&gt;<br></font></span></div>
    <div><br><span><font size="2" color="#000080" face="Tahoma">Both config being in the same default.xml dialplan&nbsp; 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>&nbsp;</span>same<span>&nbsp;</span></span>&nbsp;user can call PSTN and 
    the extension.</font></span></div>
    <div><span><font size="2" color="#000080" face="Tahoma"></font></span>&nbsp;</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>&nbsp;</div>
    <div><span><font size="2" color="#000080" face="Tahoma">Duan</font></span></div></font></div>
    <div>&nbsp;</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>