<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Sep 17, 2008, at 7:24 AM, Gopal krishnan wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="margin-right: 1.5em; "><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<span class="Apple-converted-space">&nbsp;</span><br><br><b>default.xml</b><br>&nbsp;&lt;extension name="Long Distance - wanpipe"><br>&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number" expression="^0([0-9]+)$"><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="set" data="dialed_ext=$1"/><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="bridge" data="openzap/${dialed_ext}"/><br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span><br>&nbsp;&nbsp; &lt;/extension><span class="Apple-converted-space">&nbsp;</span><br><br></div></div></span></blockquote><div><br></div><div>This regular expression won't do what you think it will.</div><div><br></div><div>Based on what you have done below you want something like this:</div><div><br></div><div>^9(\d{5,15})$</div><div><br></div><div>Also make sure if you have added this to the bottom of the dialplan that you disable the enum extension in dialplan/extensions/ so that the default config's transfer to enum doesn't take place.</div><div><br></div><div>/b</div><div><br></div><div><br></div><br><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="margin-right: 1.5em; "><div dir="ltr">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><span class="Apple-converted-space">&nbsp;</span>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><span class="Apple-converted-space">&nbsp;</span>[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><span class="Apple-converted-space">&nbsp;</span>[CS_HANGUP]<br><br>Any help would be appreciated.<br><div class="gmail_quote"><br></div></div></div></span></blockquote></div></body></html>