[Freeswitch-users] dialpaln

Gopal krishnan saigop at gmail.com
Thu Sep 18 00:55:24 PDT 2008


Hi Brian,

  I tried as you suggested, but still my outbound is not yet thru, my log as
follows,

*default.xml*
<?xml version="1.0" encoding="utf-8"?>
<!-- http://wiki.freeswitch.org/wiki/Dialplan_XML -->
<include>
  <context name="default">

<extension name="Long Distance - wanpipe">
    <condition field="destination_number" expression="^9(\d{5,15})$">
      <action application="set" data="dialed_ext=$1"/>
      <action application="bridge" data="OpenZAP/1/a/${dialed_ext}"/>
     </condition>
   </extension>


  </context>
</include>

*Freeswitch Log*
2008-09-18 13:24:40 [INFO] mod_dialplan_xml.c:228 dialplan_hunt() Processing
FreeSwitch->9894929942 in context default
2008-09-18 13:24:40 [DEBUG] mod_dialplan_xml.c:113 parse_exten() test
conditions destination_number(9894929942) =~ /^9(\d{5,15})$/
2008-09-18 13:24:40 [DEBUG] switch_core_state_machine.c:97
switch_core_standard_on_routing() sofia/internal/1002 at 172.20.176.32 State
Change CS_ROUTING -> CS_EXECUTE
2008-09-18 13:24:40 [DEBUG] switch_core_session.c:727
switch_core_session_signal_state_change() Kill sofia/internal/
1002 at 172.20.176.32 [BREAK]
2008-09-18 13:24:40 [DEBUG] switch_core_state_machine.c:420
switch_core_session_run() (sofia/internal/1002 at 172.20.176.32) State ROUTING
going to sleep
2008-09-18 13:24:40 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/internal/1002 at 172.20.176.32 Running State
Change CS_EXECUTE
2008-09-18 13:24:40 [DEBUG] switch_core_state_machine.c:430
switch_core_session_run() (sofia/internal/1002 at 172.20.176.32) State EXECUTE
2008-09-18 13:24:40 [DEBUG] mod_sofia.c:156 sofia_on_execute()
sofia/internal/1002 at 172.20.176.32 SOFIA EXECUTE
2008-09-18 13:24:40 [DEBUG] switch_core_state_machine.c:129
switch_core_standard_on_execute() Standard EXECUTE
2008-09-18 13:24:40 [DEBUG] switch_core_state_machine.c:140
switch_core_standard_on_execute() sofia/internal/1002 at 172.20.176.32 Execute
set(dialed_ext=894929942)
2008-09-18 13:24:40 [DEBUG] mod_dptools.c:703 set_function() SET
[dialed_ext]=[894929942]
2008-09-18 13:24:40 [DEBUG] switch_core_state_machine.c:140
switch_core_standard_on_execute() sofia/internal/1002 at 172.20.176.32 Execute
bridge(OpenZAP/1/a/${dialed_ext})
2008-09-18 13:24:40 [DEBUG] switch_core_session.c:1059
switch_core_session_execute_application()
sofia/internal/1002 at 172.20.176.32Expanded String
bridge(OpenZAP/1/a/894929942)
2008-09-18 13:24:40 [DEBUG] mod_openzap.c:336 tech_init() Set codec PCMA 0ms
2008-09-18 13:24:40 [DEBUG] mod_openzap.c:951 channel_outgoing_channel()
Connect outbound channel OpenZAP/1:1/894929942
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]
2008-09-18 13:24:40 [DEBUG] mod_openzap.c:960 channel_outgoing_channel()
OpenZAP/1:1/894929942 State Change CS_NEW -> CS_INIT
2008-09-18 13:24:40 [DEBUG] switch_core_session.c:727
switch_core_session_signal_state_change() Kill OpenZAP/1:1/894929942 [BREAK]
2008-09-18 13:24:40 [DEBUG] ozmod_isdn.c:60 isdn_outgoing_call() Changing
state on 1:1 from DOWN to DIALING
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
2008-09-18 13:24:40 [DEBUG] switch_core_state_machine.c:415
switch_core_session_run() (OpenZAP/1:1/894929942) State INIT
2008-09-18 13:24:40 [DEBUG] mod_openzap.c:360 channel_on_init()
OpenZAP/1:1/894929942 State Change CS_INIT -> CS_ROUTING
2008-09-18 13:24:40 [DEBUG] switch_core_session.c:727
switch_core_session_signal_state_change() Kill OpenZAP/1:1/894929942 [BREAK]
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
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
2008-09-18 13:24:40 [DEBUG] switch_core_state_machine.c:420
switch_core_session_run() (OpenZAP/1:1/894929942) State ROUTING
2008-09-18 13:24:40 [DEBUG] mod_openzap.c:381 channel_on_routing()
OpenZAP/1:1/894929942 CHANNEL ROUTING
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
2008-09-18 13:24:40 [DEBUG] switch_core_session.c:727
switch_core_session_signal_state_change() Kill OpenZAP/1:1/894929942 [BREAK]
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
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


so still the outbound is not yet thru. Thanks


On Wed, Sep 17, 2008 at 8:36 PM, Brian West <brian at freeswitch.org> wrote:

>
> 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.
>
> /b
>
>
>
> 2008-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 at 172.20.176.32 to
> enum[9894929942 at 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 at 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 at 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 at 172.20.176.32 [CS_HANGUP]
>
> Any help would be appreciated.
>
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>


-- 
Thank you with regards,
Gopal,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080918/8ee0dd5f/attachment-0002.html 


More information about the FreeSWITCH-users mailing list