A cookbook entry perhaps.....<br><br><div class="gmail_quote">On Mon, Oct 18, 2010 at 5:32 PM, Sergey Okhapkin <span dir="ltr"><<a href="mailto:sos@sokhapkin.dyndns.org">sos@sokhapkin.dyndns.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Thank you for the session_in_hangup_hook hint...<br>
<div class="im"><br>
On Monday 18 October 2010, Michael Collins wrote:<br>
</div><div><div></div><div class="h5">> On Mon, Oct 18, 2010 at 12:40 PM, Sergey Okhapkin<br>
><br>
> <<a href="mailto:sos@sokhapkin.dyndns.org">sos@sokhapkin.dyndns.org</a>>wrote:<br>
> > The "h" extension in asterisk is a feature I used extensively. Lack of a<br>
> > hangup dialplan handler makes DP programming in FS harder and less clear.<br>
><br>
> That's what api_hangup_hook is for. Call ends, do an API that can do pretty<br>
> much anything you can imagine and you're done. You can even set<br>
> session_in_hangup_hook to true so that you have the channel's variables<br>
> available even though the channel has been disconnected.<br>
><br>
> > Fortunately, CDR handlers allow to do some post call cleanup work, but<br>
> > in- dialplan implementation would be much better and clearer.<br>
><br>
> Much better? No. Much clearer, possibly. The benefits of not doing cleanup<br>
> work in the dialplan AFTER the channel has gone away far outweigh the<br>
> drawbacks. Use api_hangup_hook and session_in_hangup_hook=true. Doing this<br>
> stuff outside the dialplan is more efficient and less error-prone.<br>
><br>
> -MC<br>
><br>
<br>
<br>
</div></div><div><div></div><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br>