Perfect - thank you very much!<br><br><br><br><br><div class="gmail_quote">On Thu, Jul 16, 2009 at 5:32 PM, Michael Giagnocavo <span dir="ltr"><<a href="mailto:mgg@giagnocavo.net">mgg@giagnocavo.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">The debug log has this:</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">65.2009-07-16 16:48:41.432200 [DEBUG] switch_cpp.cpp:1124
AppFunction is in hangupCallback.</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">66.2009-07-16 16:48:41.432200 [WARNING] switch_cpp.cpp:1124
Thread will not be aborted because Hangup was called from the Run thread.</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">The problem is the Demo doesn’t have code to actually set
hangupHook as the handler. Adding something like this to the app demo code:</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Session.HangupFunction = hangupHook;</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Should fix it.</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">-Michael</span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>
[mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Phillip
Jones<br>
<b>Sent:</b> Thursday, July 16, 2009 3:08 PM<br>
<b>To:</b> <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
<b>Subject:</b> [Freeswitch-users] .NET demo / hangupHook()</span></p>
</div><div><div></div><div class="h5">
<p> </p>
<p>Hi there,<br>
<br>
I am looking at the FreeSWITCH.Demo.AppDemo class. Have it running nicely from
a soft phone - all is well.<br>
<br>
However I am not seeing the hangupHook() method fired, when I hangup.<br>
<br>
Debug log for an example call is at: <a href="http://pastebin.freeswitch.org/9744" target="_blank">http://pastebin.freeswitch.org/9744</a><br>
<br>
Reminder of demo code is here: <a href="http://pastebin.freeswitch.org/9745" target="_blank">http://pastebin.freeswitch.org/9745</a><br>
<br>
dialplan.xml is simply:<br>
<br>
<extension name="1001"> <br>
<condition field="destination_number"
expression="1001"><br>
<action application="managed"
data="FreeSWITCH.Demo.AppDemo"/><br>
</condition> <br>
</extension> <br>
<br>
Are there changes to the demo required to get this method firing?<br>
<br>
<br>
Any help much appreciated.<br>
<br>
<br>
Phillip Jones</p>
</div></div></div>
</div>
<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>