<div dir="ltr">Does hangup_hook can be used in your scenario? </div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-23 5:58 GMT+06:00 Muhammad Naseer Bhatti <span dir="ltr">&lt;<a href="mailto:nbhatti@gmail.com" target="_blank">nbhatti@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">Setting inline will have performance penalty? </div> <br> <div>—<div>Thanks,</div><div>Muhammad Naseer Bhatti</div></div> <div style="color:black"><br>From: <span style="color:black">Michael Jerris</span> <a href="mailto:mike@jerris.com" target="_blank">&lt;mike@jerris.com&gt;</a><br>Reply: <span style="color:black">FreeSWITCH Users Help</span> <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">&lt;freeswitch-users@lists.freeswitch.org&gt;&gt;</a><br>Date: <span style="color:black">January 23, 2015 at 2:11:48 AM</span><br>To: <span style="color:black">FreeSWITCH Users Help</span> <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">&lt;freeswitch-users@lists.freeswitch.org&gt;&gt;</a><br>Subject: <span style="color:black"> Re: [Freeswitch-users] Unable to access channel vars after session terminates evens with set_zombie_exec() <br></span></div><br> <blockquote type="cite"><span><div style="word-wrap:break-word"><div></div><div><div><div class="h5">






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.
<div><br>
<div>
<blockquote type="cite">
<div>On Jan 22, 2015, at 3:53 PM, Muhammad Naseer Bhatti
&lt;<a href="mailto:nbhatti@gmail.com" target="_blank">nbhatti@gmail.com</a>&gt; wrote:</div>
<br>
<div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px"><br>
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?</div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px"><br></div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">With: <span style="background-color:rgb(0,0,0);color:rgb(255,255,255);font-family:Menlo;font-size:11px">git a067a49</span></div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px"><br></div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">Dialplan:<span> </span><a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a><span> </span>Regex (PASS) [internal]
destination_number(1786866) =~ /$/ break=on-false</div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px"><b>Dialplan:<span> </span><a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a><span> </span>Action
set_zombie_exec() </b></div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">Dialplan:<span> </span><a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a><span> </span>Action
set(hangup_after_bridge=true) </div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">Dialplan:<span> </span><a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a><span> </span>Action
set(continue_on_fail=true) </div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">Dialplan:<span> </span><a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a><span> </span>Action
set(fail_on_single_reject=USER_BUSY,NO_ANSWER,NO_USER_RESPONSE,ORIGINATOR_CANCEL) </div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">Dialplan:<span> </span><a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a><span> </span>Action
set(disable_hold=true) </div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">Dialplan:<span> </span><a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a><span> </span>Action
set(failed_json_cdr_prefix=failed_cdr_index) </div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">Dialplan:<span> </span><a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a><span> </span>Action
set(debug_cdr=0) </div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">Dialplan:<span> </span><a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a><span> </span>Action
set(debug_cdr_sql=1) </div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">Dialplan:<span> </span><a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a><span> </span>Action
set(cust_default_lrn=intra) </div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">Dialplan:<span> </span><a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a><span> </span>Action
set(cust_lrn_dip_cost=0.01817) </div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">Dialplan:<span> </span><a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a><span> </span>Action
set(cust_jurisdiction=INTRASTATE) </div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">Dialplan:<span> </span><a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a><span> </span>Action limit(hash random_xgw
0.0.0.0 10/1 !FACILITY_REJECTED) </div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">Dialplan:<span> </span><a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a><span> </span>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) </div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">Dialplan:<span> </span><a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a><span> </span>Action limit(hash switch02
0.0.0.0 10/1 !FACILITY_REJECTED) </div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">Dialplan:<span> </span><a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a><span> </span>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) </div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">Dialplan:<span> </span><a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a><span> </span>Action hangup() </div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">2015-01-22 11:47:14.856013 [DEBUG]
switch_core_state_machine.c:216 (<a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a>) State Change CS_ROUTING
-&gt; CS_EXECUTE</div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">2015-01-22 11:47:14.856013 [DEBUG]
switch_core_session.c:1388 Send signal<span> </span><a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a><span> </span>[BREAK]</div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">2015-01-22 11:47:14.856013 [DEBUG]
switch_core_state_machine.c:528 (<a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a>) State ROUTING going to
sleep</div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">2015-01-22 11:47:14.856013 [DEBUG]
switch_core_state_machine.c:472 (<a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a>) Running State Change
CS_EXECUTE</div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px"><b>2015-01-22 11:47:14.856013 [DEBUG]
sofia.c:6614 Channel<span> </span><a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a><span> </span>entering state
[terminated][487]</b></div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px"><b>2015-01-22 11:47:14.856013 [NOTICE]
sofia.c:7530 Hangup<span> </span><a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a><span> </span>[CS_EXECUTE]
[ORIGINATOR_CANCEL]</b></div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px"><b>2015-01-22 11:47:14.856013 [DEBUG]
switch_channel.c:3222 Send signal<span> </span><a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a><span> </span>[KILL]</b></div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">2015-01-22 11:47:14.856013 [DEBUG]
switch_core_session.c:1388 Send signal<span> </span><a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a><span> </span>[BREAK]</div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">2015-01-22 11:47:14.856013 [DEBUG]
switch_core_state_machine.c:535 (<a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a>) State EXECUTE</div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">2015-01-22 11:47:14.856013 [DEBUG]
mod_sofia.c:178<span> </span><a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a><span> </span>SOFIA EXECUTE</div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px">2015-01-22 11:47:14.856013 [DEBUG]
switch_core_state_machine.c:535 (<a href="mailto:sofia/internal/9401404@10.211.55.26" target="_blank">sofia/internal/9401404@10.211.55.26</a>) State EXECUTE going to
sleep</div>
<div style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px"> </div>
</div>
</blockquote>
</div>
</div></div></div>


_________________________________________________________________________
<br>Professional FreeSWITCH Consulting Services:  
<br><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<br><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>
<br>
<br>Official FreeSWITCH Sites
<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<br><a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a>
<br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>
<br>
<br>FreeSWITCH-users mailing list
<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></div></span></blockquote></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Kamil Nigmatullin<br>Tel: 77272323748<br>mob: 7 (707) 2517003<br>Skype: kamil.nigmatullin</div></div>
</div>