<div dir="ltr">Thanks, <span style="font-family:arial,sans-serif;font-size:13px;font-weight:bold;white-space:nowrap">Aleksandr. I give it try.</span></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/12/25 Aleksandr Chusov <span dir="ltr">&lt;<a href="mailto:chusov.alexsandr@gmail.com" target="_blank">chusov.alexsandr@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 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 lang="en"><span>May be</span> <span>something like</span></span> lua and api_hangup_hook:<br>
 <br><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:left;font-style:normal;background-color:rgb(244,244,244);font-weight:bold;line-height:normal;text-transform:none;font-size:11px;white-space:normal;font-family:&#39;Courier New&#39;,Courier,monospace;word-spacing:0px">&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> </span></span><span 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 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> </span></span><span 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 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 style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:left;font-style:normal;background-color:rgb(244,244,244);font-weight:bold;line-height:normal;text-transform:none;font-size:11px;white-space:normal;font-family:&#39;Courier New&#39;,Courier,monospace;word-spacing:0px">/&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>
<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>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.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://wiki.freeswitch.org" target="_blank">http://wiki.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>
<br></blockquote></div><br></div>