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