<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2013/12/25 Anton Kvashenkin <span dir="ltr">&lt;<a href="mailto:anton.jugatsu@gmail.com" target="_blank">anton.jugatsu@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
ORIGINATOR_CANCEL</blockquote></div><br><br></div><div class="gmail_extra">Hello<br><span tabindex="-1" id="result_box" class="" lang="en"><span class="">May be</span> <span class="">something like</span></span> lua and api_hangup_hook:<br>
 <br><span class="" style="font-weight:bold;color:black;font-family:&#39;Courier New&#39;,Courier,monospace;font-size:11px;font-style:normal;font-variant:normal;letter-spacing:normal;line-height:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(244,244,244)">&lt;action</span><span style="color:rgb(0,153,0);font-family:&#39;Courier New&#39;,Courier,monospace;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(244,244,244);display:inline!important;float:none"><span class=""> </span></span><span class="" style="color:rgb(0,0,102);font-family:&#39;Courier New&#39;,Courier,monospace;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(244,244,244)">application</span><span style="color:rgb(0,153,0);font-family:&#39;Courier New&#39;,Courier,monospace;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(244,244,244);display:inline!important;float:none">=</span><span class="" style="color:rgb(255,0,0);font-family:&#39;Courier New&#39;,Courier,monospace;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(244,244,244)">&quot;export&quot;</span><span style="color:rgb(0,153,0);font-family:&#39;Courier New&#39;,Courier,monospace;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(244,244,244);display:inline!important;float:none"><span class=""> </span></span><span class="" style="color:rgb(0,0,102);font-family:&#39;Courier New&#39;,Courier,monospace;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(244,244,244)">data</span><span style="color:rgb(0,153,0);font-family:&#39;Courier New&#39;,Courier,monospace;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(244,244,244);display:inline!important;float:none">=</span><span class="" style="color:rgb(255,0,0);font-family:&#39;Courier New&#39;,Courier,monospace;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(244,244,244)">&quot;api_hangup_hook=lua hangup_hook.lua&quot;</span><span class="" style="font-weight:bold;color:black;font-family:&#39;Courier New&#39;,Courier,monospace;font-size:11px;font-style:normal;font-variant:normal;letter-spacing:normal;line-height:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(244,244,244)">/&gt;</span><br>
<br><br>local originate_disposition = env:getHeader (&quot;variable_originate_disposition&quot;)<br><br></div><div class="gmail_extra">if tostring(originate_disposition) == &#39;ORIGINATOR_CANCEL&#39; then<br>        .... <br>
</div><div class="gmail_extra">end<br></div><div class="gmail_extra"><br><br><br></div></div>