<div dir="ltr">Hi Brian,<br><br> I tried as you suggested, but still my outbound is not yet thru, my log as follows,<br><br><b>default.xml</b><br><?xml version="1.0" encoding="utf-8"?><br><!-- <a href="http://wiki.freeswitch.org/wiki/Dialplan_XML">http://wiki.freeswitch.org/wiki/Dialplan_XML</a> --><br>
<include><br> <context name="default"><br><br><extension name="Long Distance - wanpipe"><br> <condition field="destination_number" expression="^9(\d{5,15})$"><br>
<action application="set" data="dialed_ext=$1"/><br> <action application="bridge" data="OpenZAP/1/a/${dialed_ext}"/><br> </condition><br> </extension><br>
<br><br> </context><br></include><br><br><b>Freeswitch Log</b><br>2008-09-18 13:24:40 [INFO] mod_dialplan_xml.c:228 dialplan_hunt() Processing FreeSwitch->9894929942 in context default<br>2008-09-18 13:24:40 [DEBUG] mod_dialplan_xml.c:113 parse_exten() test conditions destination_number(9894929942) =~ /^9(\d{5,15})$/<br>
2008-09-18 13:24:40 [DEBUG] switch_core_state_machine.c:97 switch_core_standard_on_routing() sofia/internal/<a href="mailto:1002@172.20.176.32">1002@172.20.176.32</a> State Change CS_ROUTING -> CS_EXECUTE<br>2008-09-18 13:24:40 [DEBUG] switch_core_session.c:727 switch_core_session_signal_state_change() Kill sofia/internal/<a href="mailto:1002@172.20.176.32">1002@172.20.176.32</a> [BREAK]<br>
2008-09-18 13:24:40 [DEBUG] switch_core_state_machine.c:420 switch_core_session_run() (sofia/internal/<a href="mailto:1002@172.20.176.32">1002@172.20.176.32</a>) State ROUTING going to sleep<br>2008-09-18 13:24:40 [DEBUG] switch_core_state_machine.c:365 switch_core_session_run() sofia/internal/<a href="mailto:1002@172.20.176.32">1002@172.20.176.32</a> Running State Change CS_EXECUTE<br>
2008-09-18 13:24:40 [DEBUG] switch_core_state_machine.c:430 switch_core_session_run() (sofia/internal/<a href="mailto:1002@172.20.176.32">1002@172.20.176.32</a>) State EXECUTE<br>2008-09-18 13:24:40 [DEBUG] mod_sofia.c:156 sofia_on_execute() sofia/internal/<a href="mailto:1002@172.20.176.32">1002@172.20.176.32</a> SOFIA EXECUTE<br>
2008-09-18 13:24:40 [DEBUG] switch_core_state_machine.c:129 switch_core_standard_on_execute() Standard EXECUTE<br>2008-09-18 13:24:40 [DEBUG] switch_core_state_machine.c:140 switch_core_standard_on_execute() sofia/internal/<a href="mailto:1002@172.20.176.32">1002@172.20.176.32</a> Execute set(dialed_ext=894929942)<br>
2008-09-18 13:24:40 [DEBUG] mod_dptools.c:703 set_function() SET [dialed_ext]=[894929942]<br>2008-09-18 13:24:40 [DEBUG] switch_core_state_machine.c:140 switch_core_standard_on_execute() sofia/internal/<a href="mailto:1002@172.20.176.32">1002@172.20.176.32</a> Execute bridge(OpenZAP/1/a/${dialed_ext})<br>
2008-09-18 13:24:40 [DEBUG] switch_core_session.c:1059 switch_core_session_execute_application() sofia/internal/<a href="mailto:1002@172.20.176.32">1002@172.20.176.32</a> Expanded String bridge(OpenZAP/1/a/894929942)<br>2008-09-18 13:24:40 [DEBUG] mod_openzap.c:336 tech_init() Set codec PCMA 0ms<br>
2008-09-18 13:24:40 [DEBUG] mod_openzap.c:951 channel_outgoing_channel() Connect outbound channel OpenZAP/1:1/894929942<br>2008-09-18 13:24:40 [NOTICE] switch_channel.c:538 switch_channel_set_name() New Channel OpenZAP/1:1/894929942 [51fec759-8786-4114-9d1e-078209187b43]<br>
2008-09-18 13:24:40 [DEBUG] mod_openzap.c:960 channel_outgoing_channel() OpenZAP/1:1/894929942 State Change CS_NEW -> CS_INIT<br>2008-09-18 13:24:40 [DEBUG] switch_core_session.c:727 switch_core_session_signal_state_change() Kill OpenZAP/1:1/894929942 [BREAK]<br>
2008-09-18 13:24:40 [DEBUG] ozmod_isdn.c:60 isdn_outgoing_call() Changing state on 1:1 from DOWN to DIALING<br>2008-09-18 13:24:40 [DEBUG] switch_core_state_machine.c:365 switch_core_session_run() OpenZAP/1:1/894929942 Running State Change CS_INIT<br>
2008-09-18 13:24:40 [DEBUG] switch_core_state_machine.c:415 switch_core_session_run() (OpenZAP/1:1/894929942) State INIT<br>2008-09-18 13:24:40 [DEBUG] mod_openzap.c:360 channel_on_init() OpenZAP/1:1/894929942 State Change CS_INIT -> CS_ROUTING<br>
2008-09-18 13:24:40 [DEBUG] switch_core_session.c:727 switch_core_session_signal_state_change() Kill OpenZAP/1:1/894929942 [BREAK]<br>2008-09-18 13:24:40 [DEBUG] switch_core_state_machine.c:415 switch_core_session_run() (OpenZAP/1:1/894929942) State INIT going to sleep<br>
2008-09-18 13:24:40 [DEBUG] switch_core_state_machine.c:365 switch_core_session_run() OpenZAP/1:1/894929942 Running State Change CS_ROUTING<br>2008-09-18 13:24:40 [DEBUG] switch_core_state_machine.c:420 switch_core_session_run() (OpenZAP/1:1/894929942) State ROUTING<br>
2008-09-18 13:24:40 [DEBUG] mod_openzap.c:381 channel_on_routing() OpenZAP/1:1/894929942 CHANNEL ROUTING<br>2008-09-18 13:24:40 [DEBUG] switch_ivr_originate.c:57 originate_on_routing() OpenZAP/1:1/894929942 State Change CS_ROUTING -> CS_CONSUME_MEDIA<br>
2008-09-18 13:24:40 [DEBUG] switch_core_session.c:727 switch_core_session_signal_state_change() Kill OpenZAP/1:1/894929942 [BREAK]<br>2008-09-18 13:24:40 [DEBUG] switch_core_state_machine.c:420 switch_core_session_run() (OpenZAP/1:1/894929942) State ROUTING going to sleep<br>
2008-09-18 13:24:40 [DEBUG] switch_core_state_machine.c:365 switch_core_session_run() OpenZAP/1:1/894929942 Running State Change CS_CONSUME_MEDIA<br><br><br>so still the outbound is not yet thru. Thanks<br><br><br><div class="gmail_quote">
On Wed, Sep 17, 2008 at 8:36 PM, Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</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=""><br><div><div class="Ih2E3d"><div>On Sep 17, 2008, at 7:24 AM, Gopal krishnan wrote:</div><br><blockquote type="cite"><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; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="margin-right: 1.5em;">
<div dir="ltr">Hi,<br><br> I am using Freeswitch with Sangoma A102 and Openzap. I have configured the extension in default.xml as<span> </span><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> <span> </span><br> </extension><span> </span><br><br></div></div></span></blockquote><div><br></div></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><font color="#888888"><div>/b</div></font><div class="Ih2E3d"><div><br></div><div><br></div><br><blockquote type="cite"><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; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><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" target="_blank">1001@172.20.176.32</a><span> </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" target="_blank">1001@172.20.176.32</a><span> </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" target="_blank">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" target="_blank">1001@172.20.176.32</a><span> </span>[CS_HANGUP]<br>
<br>Any help would be appreciated.<br><div class="gmail_quote"><br></div></div></div></span></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>