[Freeswitch-users] Unable to access channel vars after session terminates evens with set_zombie_exec()
Muhammad Naseer Bhatti
nbhatti at gmail.com
Fri Jan 23 12:09:31 MSK 2015
I am not sure how hangup_hook() would help me in this case, this means I would have to stop doing what I am doing in CDR post processing and do that stuff in hangup_hook() ? This defeats the purpose of CDR post processing?
—
Thanks,
Muhammad Naseer Bhatti
From: Kamil Nigmatullin <kamil.nigmatullin at gmail.com>
Reply: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>>
Date: January 23, 2015 at 11:22:10 AM
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>>
Subject: Re: [Freeswitch-users] Unable to access channel vars after session terminates evens with set_zombie_exec()
Does hangup_hook can be used in your scenario?
2015-01-23 5:58 GMT+06:00 Muhammad Naseer Bhatti <nbhatti at gmail.com>:
Setting inline will have performance penalty?
—
Thanks,
Muhammad Naseer Bhatti
From: Michael Jerris <mike at jerris.com>
Reply: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>>
Date: January 23, 2015 at 2:11:48 AM
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>>
Subject: Re: [Freeswitch-users] Unable to access channel vars after session terminates evens with set_zombie_exec()
if you set them using inline they will be set during routing state, before it goes to execute. Once it is in execute state, it checks status between every action.
On Jan 22, 2015, at 3:53 PM, Muhammad Naseer Bhatti <nbhatti at gmail.com> wrote:
I need to access some channel variables being set in the dialplan, but the channel is already hanged up too quick, ORIGINATOR_CANCEL. Since the session was still setting up the channel variables. I have tried app, set_zombie_exec but still not able to see any channel vars set in the dial plan. Am i doing something wrong or if there is a better way to see the channel vars if the session terminates too soon?
With: git a067a49
Dialplan: sofia/internal/9401404 at 10.211.55.26 Regex (PASS) [internal] destination_number(1786866) =~ /$/ break=on-false
Dialplan: sofia/internal/9401404 at 10.211.55.26 Action set_zombie_exec()
Dialplan: sofia/internal/9401404 at 10.211.55.26 Action set(hangup_after_bridge=true)
Dialplan: sofia/internal/9401404 at 10.211.55.26 Action set(continue_on_fail=true)
Dialplan: sofia/internal/9401404 at 10.211.55.26 Action set(fail_on_single_reject=USER_BUSY,NO_ANSWER,NO_USER_RESPONSE,ORIGINATOR_CANCEL)
Dialplan: sofia/internal/9401404 at 10.211.55.26 Action set(disable_hold=true)
Dialplan: sofia/internal/9401404 at 10.211.55.26 Action set(failed_json_cdr_prefix=failed_cdr_index)
Dialplan: sofia/internal/9401404 at 10.211.55.26 Action set(debug_cdr=0)
Dialplan: sofia/internal/9401404 at 10.211.55.26 Action set(debug_cdr_sql=1)
Dialplan: sofia/internal/9401404 at 10.211.55.26 Action set(cust_default_lrn=intra)
Dialplan: sofia/internal/9401404 at 10.211.55.26 Action set(cust_lrn_dip_cost=0.01817)
Dialplan: sofia/internal/9401404 at 10.211.55.26 Action set(cust_jurisdiction=INTRASTATE)
Dialplan: sofia/internal/9401404 at 10.211.55.26 Action limit(hash random_xgw 0.0.0.0 10/1 !FACILITY_REJECTED)
Dialplan: sofia/internal/9401404 at 10.211.55.26 Action limit_execute(hash outbound random_xgw 20 bridge [enable_heartbeat_events=5,nibble_rate=0.2192,nibble_increment=5,nibble_account=AB8KA191,carrier_switch=random_xgw,carrier_switch_id=1,carrier_ratecard_id=2,carrier_rate_rev=1,carrier_rate_type=lrn,carrier_id=1,carrier_connection_cost=0,carrier_rate=0.0119,carrier_interstate_cost=0.0119,carrier_intrastate_cost=0.0119,carrier_enable_billing=t,carrier_call_increment=1,carrier_min_duration=5,carrier_balance=17099.88924]sofia/gateway/random_xgw/1786866)
Dialplan: sofia/internal/9401404 at 10.211.55.26 Action limit(hash switch02 0.0.0.0 10/1 !FACILITY_REJECTED)
Dialplan: sofia/internal/9401404 at 10.211.55.26 Action limit_execute(hash outbound switch02 20 bridge [enable_heartbeat_events=5,nibble_rate=0.2192,nibble_increment=5,nibble_account=AB8KA191,carrier_switch=switch02,carrier_switch_id=3,carrier_ratecard_id=2,carrier_rate_rev=1,carrier_rate_type=lrn,carrier_id=1,carrier_connection_cost=0,carrier_rate=0.0119,carrier_interstate_cost=0.0119,carrier_intrastate_cost=0.0119,carrier_enable_billing=t,carrier_call_increment=1,carrier_min_duration=5,carrier_balance=17099.88924]sofia/gateway/switch02/1786866)
Dialplan: sofia/internal/9401404 at 10.211.55.26 Action hangup()
2015-01-22 11:47:14.856013 [DEBUG] switch_core_state_machine.c:216 (sofia/internal/9401404 at 10.211.55.26) State Change CS_ROUTING -> CS_EXECUTE
2015-01-22 11:47:14.856013 [DEBUG] switch_core_session.c:1388 Send signal sofia/internal/9401404 at 10.211.55.26 [BREAK]
2015-01-22 11:47:14.856013 [DEBUG] switch_core_state_machine.c:528 (sofia/internal/9401404 at 10.211.55.26) State ROUTING going to sleep
2015-01-22 11:47:14.856013 [DEBUG] switch_core_state_machine.c:472 (sofia/internal/9401404 at 10.211.55.26) Running State Change CS_EXECUTE
2015-01-22 11:47:14.856013 [DEBUG] sofia.c:6614 Channel sofia/internal/9401404 at 10.211.55.26 entering state [terminated][487]
2015-01-22 11:47:14.856013 [NOTICE] sofia.c:7530 Hangup sofia/internal/9401404 at 10.211.55.26 [CS_EXECUTE] [ORIGINATOR_CANCEL]
2015-01-22 11:47:14.856013 [DEBUG] switch_channel.c:3222 Send signal sofia/internal/9401404 at 10.211.55.26 [KILL]
2015-01-22 11:47:14.856013 [DEBUG] switch_core_session.c:1388 Send signal sofia/internal/9401404 at 10.211.55.26 [BREAK]
2015-01-22 11:47:14.856013 [DEBUG] switch_core_state_machine.c:535 (sofia/internal/9401404 at 10.211.55.26) State EXECUTE
2015-01-22 11:47:14.856013 [DEBUG] mod_sofia.c:178 sofia/internal/9401404 at 10.211.55.26 SOFIA EXECUTE
2015-01-22 11:47:14.856013 [DEBUG] switch_core_state_machine.c:535 (sofia/internal/9401404 at 10.211.55.26) State EXECUTE going to sleep
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
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
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
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
--
Kamil Nigmatullin
Tel: 77272323748
mob: 7 (707) 2517003
Skype: kamil.nigmatullin
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150123/55037d9b/attachment-0001.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list