Hi, I can call extensions like 1000 with <extension name="extensions"> <condition field="destination_number" expression="^(\d+)$"> <action application="bridge" data="sofia/doublenat/$1%voipclic.com "/> </condition> </extension> and I can call PSTN with <extension name="PSTN"> <condition field="destination_number" expression="^(\d+)$"> <action application="bridge" data="sofia/gateway/inphonex/$0"/> </condition> </extension> Both config being in the same default.xml dialplan 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 same user can call PSTN and the extension. thanks Duan
For extensions you usually have a 4 digit number so you would do this: ^(\d{4})$ then for the pstn you would not want to match just all digits like that. ^(\d{7,15})$ /b On Aug 28, 2008, at 1:01 PM, Cliconnect wrote:
Hi,
I can call extensions like 1000 with
<extension name="extensions"> <condition field="destination_number" expression="^(\d+)$"> <action application="bridge" data="sofia/doublenat/ $1%voipclic.com "/> </condition> </extension>
and I can call PSTN with
<extension name="PSTN"> <condition field="destination_number" expression="^(\d+)$"> <action application="bridge" data="sofia/gateway/inphonex/$0"/> </condition> </extension>
Both config being in the same default.xml dialplan 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 same user can call PSTN and the extension.
thanks
Duan
Brian West sip:brian@freeswitch.org
Thank you Brian, it worked. regards Duan -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West Sent: Thursday, August 28, 2008 11:07 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] dialpaln For extensions you usually have a 4 digit number so you would do this: ^(\d{4})$ then for the pstn you would not want to match just all digits like that. ^(\d{7,15})$ /b On Aug 28, 2008, at 1:01 PM, Cliconnect wrote: Hi, I can call extensions like 1000 with <extension name="extensions"> <condition field="destination_number" expression="^(\d+)$"> <action application="bridge" data="sofia/doublenat/$1%voipclic.com "/> </condition> </extension> and I can call PSTN with <extension name="PSTN"> <condition field="destination_number" expression="^(\d+)$"> <action application="bridge" data="sofia/gateway/inphonex/$0"/> </condition> </extension> Both config being in the same default.xml dialplan 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 same user can call PSTN and the extension. thanks Duan Brian West sip:brian@freeswitch.org
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> * openzap.conf* [span wanpipe] trunk_type => e1 b-channel => 1:1-15 d-channel=> 1:16 b-channel => 1:17-31 *openzap.conf.xml* <configuration name="*openzap.conf*" description="*OpenZAP Configuration*"> <settings> <param name="*debug*" value="*0*" /> </settings> <pri_spans> <span id="*1*"> <param name="*mode*" value="*user*" /> <param name="*dialect*" value="*euro*" /> <param name="*dialplan*" value="*XML*" /> <param name="*context*" value="*default*" /> </span> </pri_spans> </configuration> Whenever I am dialing thru my softphone i get the no route in freeswitch console as 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@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. On Thu, Aug 28, 2008 at 11:52 PM, Cliconnect <cliconnect@cliconnect.com>wrote:
Thank you Brian,
it worked.
regards
Duan
-----Original Message----- *From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Brian West *Sent:* Thursday, August 28, 2008 11:07 AM *To:* freeswitch-users@lists.freeswitch.org *Subject:* Re: [Freeswitch-users] dialpaln
For extensions you usually have a 4 digit number so you would do this: ^(\d{4})$ then for the pstn you would not want to match just all digits like that. ^(\d{7,15})$
/b
On Aug 28, 2008, at 1:01 PM, Cliconnect wrote:
Hi,
I can call extensions like 1000 with
<extension name="extensions"> <condition field="destination_number" expression="^(\d+)$"> <action application="bridge" data="sofia/doublenat/$1%voipclic.com"/> </condition> </extension>
and I can call PSTN with
<extension name="PSTN"> <condition field="destination_number" expression="^(\d+)$"> <action application="bridge" data="sofia/gateway/inphonex/$0"/> </condition> </extension>
Both config being in the same default.xml dialplan 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 same user can call PSTN and the extension.
thanks
Duan
Brian West sip:brian@freeswitch.org
_______________________________________________ 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
-- Thank you with regards, Gopal,
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@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.
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@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@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@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@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@172.20.176.32) State EXECUTE 2008-09-18 13:24:40 [DEBUG] mod_sofia.c:156 sofia_on_execute() sofia/internal/1002@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@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@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@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@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@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
-- Thank you with regards, Gopal,
Your dialplan is fixed now, this is an issue with openzap now, can you clarify your openzap configuration and what kind of line it is hooked too please? Mike On Sep 18, 2008, at 3:55 AM, Gopal krishnan wrote:
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@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@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@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@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@172.20.176.32) State EXECUTE 2008-09-18 13:24:40 [DEBUG] mod_sofia.c:156 sofia_on_execute() sofia/internal/1002@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@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@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@172.20.176.32 Expanded 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
post openzap.conf.xml openzap.conf and outbout of ztcfg -vv note: openzap does not ask for opposite names like asterisk does in openzap.conf if it's fxo say fxo not fxs On Thu, Sep 18, 2008 at 11:18 AM, Michael Jerris <mike@jerris.com> wrote:
Your dialplan is fixed now, this is an issue with openzap now, can you clarify your openzap configuration and what kind of line it is hooked too please?
Mike
On Sep 18, 2008, at 3:55 AM, Gopal krishnan wrote:
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@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@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@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@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@172.20.176.32) State EXECUTE 2008-09-18 13:24:40 [DEBUG] mod_sofia.c:156 sofia_on_execute() sofia/internal/1002@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@172.20.176.32Execute 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@172.20.176.32Execute 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@172.20.176.32 Expanded 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
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
Hi Anthony, My conf as follows, *openzap.conf* [span wanpipe] trunk_type => e1 b-channel => 1:1-15 d-channel=> 1:16 b-channel => 1:17-31 *openzap.conf.xml* <configuration name="openzap.conf" description="OpenZAP Configuration"> <settings> <param name="debug" value="0" /> </settings> <pri_spans> <span id="1"> <param name="mode" value="user" /> <param name="dialect" value="euro" /> <param name="dialplan" value="XML" /> <param name="context" value="default" /> </span> </pri_spans> </configuration> *ztcfg -vv *Still I have not installed zaptel, I have went thru that for openzap with sangoma no need of zaptel, so I never installed zaptel, and also I am not sure whether zaptel is required. Can I try installing zaptel? On Thu, Sep 18, 2008 at 9:58 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
post
openzap.conf.xml openzap.conf and outbout of ztcfg -vv
note: openzap does not ask for opposite names like asterisk does in openzap.conf if it's fxo say fxo not fxs
On Thu, Sep 18, 2008 at 11:18 AM, Michael Jerris <mike@jerris.com> wrote:
Your dialplan is fixed now, this is an issue with openzap now, can you clarify your openzap configuration and what kind of line it is hooked too please?
Mike
On Sep 18, 2008, at 3:55 AM, Gopal krishnan wrote:
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@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@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@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@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@172.20.176.32) State EXECUTE 2008-09-18 13:24:40 [DEBUG] mod_sofia.c:156 sofia_on_execute() sofia/internal/1002@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@172.20.176.32Execute 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@172.20.176.32Execute 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@172.20.176.32 Expanded 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
_______________________________________________ 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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
_______________________________________________ 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
-- Thank you with regards, Gopal,
Zaptel isn't required for sangoma. Just make sure when installing wanpipe the value you select is the TDM API with the words FreeSWITCH in the menu option. /b On Sep 19, 2008, at 12:57 AM, Gopal krishnan wrote:
Hi Anthony,
My conf as follows,
openzap.conf [span wanpipe] trunk_type => e1 b-channel => 1:1-15 d-channel=> 1:16 b-channel => 1:17-31
openzap.conf.xml <configuration name="openzap.conf" description="OpenZAP Configuration"> <settings> <param name="debug" value="0" /> </settings> <pri_spans> <span id="1"> <param name="mode" value="user" /> <param name="dialect" value="euro" /> <param name="dialplan" value="XML" /> <param name="context" value="default" /> </span> </pri_spans> </configuration>
ztcfg -vv Still I have not installed zaptel, I have went thru that for openzap with sangoma no need of zaptel, so I never installed zaptel, and also I am not sure whether zaptel is required.
Can I try installing zaptel?
Hi, Since I am not able to make the outbound call, when I use this command <oz dump 1 a> in the console, I used to get the all the 31 channels , for a refrence I am posing one channel block here, * span_id: 1 chan_id: 31 physical_span_id: 1 physical_chan_id: 31 type: B state: DOWN last_state: DOWN cid_date: cid_name: cid_num: ani: aniII: dnis: rdnis: cause: NONE* In this I am seeing that the state seems to be DOWN, but when I try wantouer status, it show as connected like , *Wanrouter Status: Device name | Protocol | Station | Status | wanpipe1 | AFT HDLC | N/A | Connected | wanpipe2 | AFT HDLC | N/A | Connecting |* where I am using is Sangoma A102D card with hardware echo cancellation. And when I try to dial from the softphone in the console I get this as, *freeswitch@dialer.optimus.co.in> 2008-09-19 18:38:58 [NOTICE] switch_channel.c:538 switch_channel_set_name() New Channel sofia/internal/ 1002@172.20.176.31 [a75028c4-554a-473e-a8cc-8c52d7f72df4] 2008-09-19 18:38:58 [INFO] mod_dialplan_xml.c:232 dialplan_hunt() Processing FreeSwitch->99841799874 in context default 2008-09-19 18:38:58 [NOTICE] switch_channel.c:538 switch_channel_set_name() New Channel OpenZAP/1:1/9841799874 [bd977e0d-e078-4193-a005-d751bdb26db8] 2008-09-19 18:39:28 [NOTICE] sofia.c:2705 sofia_handle_sip_i_state() Hangup sofia/internal/1002@172.20.176.31 [CS_EXECUTE] [ORIGINATOR_CANCEL] 2008-09-19 18:39:28 [NOTICE] switch_ivr_originate.c:1321 switch_ivr_originate() Hangup OpenZAP/1:1/9841799874 [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL] 2008-09-19 18:39:28 [INFO] mod_dptools.c:1814 audio_bridge_function() Originate Failed. Cause: ORIGINATOR_CANCEL 2008-09-19 18:39:28 [NOTICE] switch_core_session.c:812 switch_core_session_thread() Session 1 (sofia/internal/1002@172.20.176.31) Ended 2008-09-19 18:39:28 [NOTICE] switch_core_session.c:814 switch_core_session_thread() Close Channel sofia/internal/1002@172.20.176.31[CS_HANGUP] 2008-09-19 18:39:28 [NOTICE] switch_core_session.c:812 switch_core_session_thread() Session 2 (OpenZAP/1:1/9841799874) Ended 2008-09-19 18:39:28 [NOTICE] switch_core_session.c:814 switch_core_session_thread() Close Channel OpenZAP/1:1/9841799874 [CS_HANGUP] * So where i am wrong, can you please correct me. Thanks -- Thank you with regards, Gopal,
On Sep 19, 2008, at 9:18 AM, Gopal krishnan wrote:
Hi,
Since I am not able to make the outbound call, when I use this command <oz dump 1 a> in the console, I used to get the all the 31 channels , for a refrence I am posing one channel block here,
span_id: 1 chan_id: 31 physical_span_id: 1 physical_chan_id: 31 type: B state: DOWN last_state: DOWN cid_date: cid_name: cid_num: ani: aniII: dnis: rdnis: cause: NONE
In this I am seeing that the state seems to be DOWN, but when I try wantouer status, it show as connected like ,
in openzap, state down is like on-hook... we should change that name maybe.
Wanrouter Status:
Device name | Protocol | Station | Status | wanpipe1 | AFT HDLC | N/A | Connected | wanpipe2 | AFT HDLC | N/A | Connecting |
where I am using is Sangoma A102D card with hardware echo cancellation. And when I try to dial from the softphone in the console I get this as,
freeswitch@dialer.optimus.co.in> 2008-09-19 18:38:58 [NOTICE] switch_channel.c:538 switch_channel_set_name() New Channel sofia/internal/1002@172.20.176.31 [a75028c4-554a-473e-a8cc-8c52d7f72df4] 2008-09-19 18:38:58 [INFO] mod_dialplan_xml.c:232 dialplan_hunt() Processing FreeSwitch->99841799874 in context default 2008-09-19 18:38:58 [NOTICE] switch_channel.c:538 switch_channel_set_name() New Channel OpenZAP/1:1/9841799874 [bd977e0d-e078-4193-a005-d751bdb26db8] 2008-09-19 18:39:28 [NOTICE] sofia.c:2705 sofia_handle_sip_i_state() Hangup sofia/internal/1002@172.20.176.31 [CS_EXECUTE] [ORIGINATOR_CANCEL] 2008-09-19 18:39:28 [NOTICE] switch_ivr_originate.c:1321 switch_ivr_originate() Hangup OpenZAP/1:1/9841799874 [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL] 2008-09-19 18:39:28 [INFO] mod_dptools.c:1814 audio_bridge_function() Originate Failed. Cause: ORIGINATOR_CANCEL 2008-09-19 18:39:28 [NOTICE] switch_core_session.c:812 switch_core_session_thread() Session 1 (sofia/internal/1002@172.20.176.31 ) Ended 2008-09-19 18:39:28 [NOTICE] switch_core_session.c:814 switch_core_session_thread() Close Channel sofia/internal/1002@172.20.176.31 [CS_HANGUP] 2008-09-19 18:39:28 [NOTICE] switch_core_session.c:812 switch_core_session_thread() Session 2 (OpenZAP/1:1/9841799874) Ended 2008-09-19 18:39:28 [NOTICE] switch_core_session.c:814 switch_core_session_thread() Close Channel OpenZAP/1:1/9841799874 [CS_HANGUP]
So where i am wrong, can you please correct me.
It looks like the hang-up is coming from the sip side of things, can you take a look at the sip trace and confirm there is really a cancel on sip. Mike
Hi Mike, I changed the name in openzap.conf and also in default.xml, but the same thing persisting, this hangup I terminated from the softphone, its not like coming from the sip phone automatically. so Is there anything else I need to check? -- Thank you with regards, Gopal,
no it wouldn't When the channel is not in use it's down..... it's absent of any activity and not running in the state machine. This terminology is for the sake of the coder not the guy using the code. On Fri, Sep 19, 2008 at 8:40 AM, Brian West <brian@freeswitch.org> wrote:
IDLE would make more sense.
/b
On Sep 19, 2008, at 8:22 AM, Michael Jerris wrote:
in openzap, state down is like on-hook... we should change that name maybe.
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
Thanks for the reply, I tried dialing a number and the pastebin link as follows, http://pastebin.freeswitch.org/5611 and also I found that after dialed I saw the oz dump 1 2 and I found that the state is dialing and after few seconds automatically it seems to hangup. oz dump 1 3 API CALL [oz(dump 1 3)] output: span_id: 1 chan_id: 3 physical_span_id: 1 physical_chan_id: 3 type: B state: HANGUP last_state: DIALING cid_date: cid_name: Extension 1002 cid_num: 1002 ani: 9841799874 aniII: dnis: rdnis: cause: NO_ANSWER the dialect i am using is euro any help would be appreciated. -- Thank you with regards, Gopal,
Hi, My outbound is working, but not in a regular functionality, If i call first time the call goes thru, by second time its not getting thru, showing that the channel is not getting released. After reloading mod_openzap the channel becomes in DOWN state and the call is getting thru, so each and every time I need to reload the mod_openzap, my conf files as below, *openzap.conf *[span wanpipe] name => openzap number => 1 trunk_type => E1 b-channel => 1:1-15 d-channel => 1:16 b-channel => 1:17-31* default.xml *[root@dialer ~]# cat /usr/local/freeswitch/conf/dialplan/default.xml <?xml version="1.0" encoding="utf-8"?> <!-- http://wiki.freeswitch.org/wiki/Dialplan_XML --> <include> <context name="default"> <extension name="Local_Extension"> <condition field="destination_number" expression="^(10[01][0-9])$"> <action application="set" data="dialed_ext=$1"/> <action application="export" data="dialed_ext=$1"/> </condition> <condition field="destination_number" expression="^${caller_id_number}$"> <action application="set" data="voicemail_authorized=${sip_authorized}"/> <action application="answer"/> <action application="sleep" data="1000"/> <action application="voicemail" data="check default $${domain} ${dialed_ext}"/> <!-- bind_meta_app can have these args <key> [a|b|ab] [a|b|o|s] <app> --> <anti-action application="bind_meta_app" data="1 b s execute_extension::dx XML features"/> <anti-action application="bind_meta_app" data="2 b s record_session::$${base_dir}/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/> <anti-action application="bind_meta_app" data="3 b s execute_extension::cf XML features"/> <anti-action application="set" data="transfer_ringback=${us-ring}"/> <anti-action application="set" data="call_timeout=30"/> <!-- <anti-action application="set" data="sip_exclude_contact=${network_addr}"/> --> <anti-action application="set" data="hangup_after_bridge=true"/> <!--<anti-action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION"/> --> <anti-action application="set" data="continue_on_fail=true"/> <anti-action application="db" data="insert/call_return/${dialed_ext}/${caller_id_number}"/> <anti-action application="db" data="insert/last_dial_ext/${dialed_ext}/${uuid}"/> <anti-action application="bridge" data="user/${dialed_ext}@ $${domain}"/> <anti-action application="answer"/> <!--<anti-action application="send_display" data="Voicemail for ${dialed_ext}"/>--> <anti-action application="sleep" data="1000"/> <anti-action application="voicemail" data="default $${domain} ${dialed_ext}"/> </condition> </extension> <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 console - before loading mod_openzap *http://pastebin.freeswitch.org/5619 *freeswitch console - after loading mod_openzap* http://pastebin.freeswitch.org/5620 So the channel state is not releasing some is there anything related to default.xml that I need to change? Any help would be appreciated....:) -- Thank you with regards, Gopal,
Hi, Any suggestion on this? Thanks On Sat, Sep 20, 2008 at 6:50 PM, Gopal krishnan <saigop@gmail.com> wrote:
Hi,
My outbound is working, but not in a regular functionality, If i call first time the call goes thru, by second time its not getting thru, showing that the channel is not getting released. After reloading mod_openzap the channel becomes in DOWN state and the call is getting thru, so each and every time I need to reload the mod_openzap, my conf files as below,
*openzap.conf *[span wanpipe] name => openzap number => 1 trunk_type => E1 b-channel => 1:1-15 d-channel => 1:16 b-channel => 1:17-31 *
default.xml *[root@dialer ~]# cat /usr/local/freeswitch/conf/dialplan/default.xml <?xml version="1.0" encoding="utf-8"?> <!-- http://wiki.freeswitch.org/wiki/Dialplan_XML --> <include> <context name="default"> <extension name="Local_Extension"> <condition field="destination_number" expression="^(10[01][0-9])$"> <action application="set" data="dialed_ext=$1"/> <action application="export" data="dialed_ext=$1"/> </condition> <condition field="destination_number" expression="^${caller_id_number}$"> <action application="set" data="voicemail_authorized=${sip_authorized}"/> <action application="answer"/> <action application="sleep" data="1000"/> <action application="voicemail" data="check default $${domain} ${dialed_ext}"/> <!-- bind_meta_app can have these args <key> [a|b|ab] [a|b|o|s] <app> --> <anti-action application="bind_meta_app" data="1 b s execute_extension::dx XML features"/> <anti-action application="bind_meta_app" data="2 b s
record_session::$${base_dir}/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/> <anti-action application="bind_meta_app" data="3 b s execute_extension::cf XML features"/> <anti-action application="set" data="transfer_ringback=${us-ring}"/> <anti-action application="set" data="call_timeout=30"/> <!-- <anti-action application="set" data="sip_exclude_contact=${network_addr}"/> --> <anti-action application="set" data="hangup_after_bridge=true"/> <!--<anti-action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION"/> --> <anti-action application="set" data="continue_on_fail=true"/> <anti-action application="db" data="insert/call_return/${dialed_ext}/${caller_id_number}"/> <anti-action application="db" data="insert/last_dial_ext/${dialed_ext}/${uuid}"/> <anti-action application="bridge" data="user/${dialed_ext}@ $${domain}"/> <anti-action application="answer"/> <!--<anti-action application="send_display" data="Voicemail for ${dialed_ext}"/>--> <anti-action application="sleep" data="1000"/> <anti-action application="voicemail" data="default $${domain} ${dialed_ext}"/> </condition> </extension>
<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 console - before loading mod_openzap *http://pastebin.freeswitch.org/5619
*freeswitch console - after loading mod_openzap* http://pastebin.freeswitch.org/5620
So the channel state is not releasing some is there anything related to default.xml that I need to change? Any help would be appreciated....:)
-- Thank you with regards, Gopal,
-- Thank you with regards, Gopal, PeopleTech Systems Private Limited www.peopletech.co.in
participants (5)
-
Anthony Minessale
-
Brian West
-
Cliconnect
-
Gopal krishnan
-
Michael Jerris