Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] .NET demo / hangupHook()


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
pjintheusa at gmail.com
Guest





PostPosted: Thu Jul 16, 2009 4:10 pm    Post subject: [Freeswitch-users] .NET demo / hangupHook() Reply with quote

Hi there,

I am looking at the FreeSWITCH.Demo.AppDemo class. Have it running nicely from a soft phone - all is well.

However I am not seeing the hangupHook() method fired, when I hangup.

Debug log for an example call is at: http://pastebin.freeswitch.org/9744

Reminder of demo code is here: http://pastebin.freeswitch.org/9745

dialplan.xml is simply:

<extension name="1001">
    <condition field="destination_number" expression="1001">
     <action application="managed" data="FreeSWITCH.Demo.AppDemo"/>
    </condition>
 </extension>

Are there changes to the demo required to get this method firing?


Any help much appreciated.


Phillip Jones
Back to top
mgg at giagnocavo.net
Guest





PostPosted: Thu Jul 16, 2009 4:40 pm    Post subject: [Freeswitch-users] .NET demo / hangupHook() Reply with quote

The debug log has this:
65.2009-07-16 16:48:41.432200 [DEBUG] switch_cpp.cpp:1124 AppFunction is in hangupCallback.
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.

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:

Session.HangupFunction = hangupHook;

Should fix it.

-Michael

From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Phillip Jones
Sent: Thursday, July 16, 2009 3:08 PM
To: freeswitch-users@lists.freeswitch.org
Subject: [Freeswitch-users] .NET demo / hangupHook()


Hi there,

I am looking at the FreeSWITCH.Demo.AppDemo class. Have it running nicely from a soft phone - all is well.

However I am not seeing the hangupHook() method fired, when I hangup.

Debug log for an example call is at: http://pastebin.freeswitch.org/9744

Reminder of demo code is here: http://pastebin.freeswitch.org/9745

dialplan.xml is simply:

<extension name="1001">
<condition field="destination_number" expression="1001">
<action application="managed" data="FreeSWITCH.Demo.AppDemo"/>
</condition>
</extension>

Are there changes to the demo required to get this method firing?


Any help much appreciated.


Phillip Jones
Back to top
pjintheusa at gmail.com
Guest





PostPosted: Thu Jul 16, 2009 6:33 pm    Post subject: [Freeswitch-users] .NET demo / hangupHook() Reply with quote

Perfect - thank you very much!




On Thu, Jul 16, 2009 at 5:32 PM, Michael Giagnocavo <mgg@giagnocavo.net (mgg@giagnocavo.net)> wrote:
Quote:

The debug log has this:
65.2009-07-16 16:48:41.432200 [DEBUG] switch_cpp.cpp:1124 AppFunction is in hangupCallback.
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.
 
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:
 
Session.HangupFunction = hangupHook;
 
Should fix it.
 
-Michael
 
From: freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org) [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Phillip Jones
Sent: Thursday, July 16, 2009 3:08 PM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: [Freeswitch-users] .NET demo / hangupHook()


 
Hi there,

I am looking at the FreeSWITCH.Demo.AppDemo class. Have it running nicely from a soft phone - all is well.

However I am not seeing the hangupHook() method fired, when I hangup.

Debug log for an example call is at: http://pastebin.freeswitch.org/9744

Reminder of demo code is here: http://pastebin.freeswitch.org/9745

dialplan.xml is simply:

<extension name="1001">
    <condition field="destination_number" expression="1001">
     <action application="managed" data="FreeSWITCH.Demo.AppDemo"/>
    </condition>
 </extension>

Are there changes to the demo required to get this method firing?


Any help much appreciated.


Phillip Jones




_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services