On Sep 17, 2008, at 7:24 AM, Gopal krishnan wrote:Hi,
I am using Freeswitch with Sangoma A102 and Openzap. I have configured the extension in default.xml as
default.xml
<extension name="Long Distance - wanpipe">
<condition field="destination_number" expression="^0([0-9]+)$">
<action application="set" data="dialed_ext=$1"/>
<action application="bridge" data="openzap/${dialed_ext}"/>
</condition>
</extension>This regular expression won't do what you think it will.Based on what you have done below you want something like this:^9(\d{5,15})$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./b2008-09-17 17:46:13 [INFO] mod_dialplan_xml.c:228 dialplan_hunt() Processing FreeSwitch->9894929942 in context default
2008-09-17 17:46:13 [NOTICE] switch_ivr.c:1098 switch_ivr_session_transfer() Transfer sofia/internal/1001@172.20.176.32 to enum[9894929942@default]
2008-09-17 17:46:13 [INFO] switch_core_state_machine.c:114 switch_core_standard_on_routing() No Route, Aborting
2008-09-17 17:46:13 [NOTICE] switch_core_state_machine.c:115 switch_core_standard_on_routing() Hangup sofia/internal/1001@172.20.176.32 [CS_ROUTING] [NO_ROUTE_DESTINATION]
2008-09-17 17:46:13 [NOTICE] switch_core_session.c:812 switch_core_session_thread() Session 2 (sofia/internal/1001@172.20.176.32) Ended
2008-09-17 17:46:13 [NOTICE] switch_core_session.c:814 switch_core_session_thread() Close Channel sofia/internal/1001@172.20.176.32 [CS_HANGUP]
Any help would be appreciated.
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org