Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] api_hangup_hook not actually executing the command


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





PostPosted: Tue Jan 20, 2009 12:15 pm    Post subject: [Freeswitch-users] api_hangup_hook not actually executing th Reply with quote

The on answer is fine, the api_hangup_hook gets to the point where it
wants to execute, but then nothing happens. Any thoughts?


2009-01-21 03:08:00 [DEBUG] switch_channel.c:1773
switch_channel_perform_mark_answered() sofia/internal/Line_9@10.0.0.9
execute on answer: set_global(10.0.0.19_INCALL=true)2009-01-21 03:08:00
[DEBUG] mod_dptools.c:726 set_global_function() SET GLOBAL
[10.0.0.19_INCALL]=[true]

2009-01-21 03:08:09 [DEBUG] switch_core_state_machine.c:416
switch_core_session_run() Hangup Command set_global(10.0.0.19_INCALL=false):

It does not execute - the global variable is not set...quite odd.

Scott


_______________________________________________
Freeswitch-users mailing list
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
msc at freeswitch.org
Guest





PostPosted: Tue Jan 20, 2009 12:22 pm    Post subject: [Freeswitch-users] api_hangup_hook not actually executing th Reply with quote

Can you pastebin the entire call from start to finish? Also, pastebin
your dialplan extension.
-MC

On Tue, Jan 20, 2009 at 9:11 AM, Scott Ellis <scott.ellis@novatex.com.au> wrote:
Quote:
The on answer is fine, the api_hangup_hook gets to the point where it
wants to execute, but then nothing happens. Any thoughts?


2009-01-21 03:08:00 [DEBUG] switch_channel.c:1773
switch_channel_perform_mark_answered() sofia/internal/Line_9@10.0.0.9
execute on answer: set_global(10.0.0.19_INCALL=true)2009-01-21 03:08:00
[DEBUG] mod_dptools.c:726 set_global_function() SET GLOBAL
[10.0.0.19_INCALL]=[true]

2009-01-21 03:08:09 [DEBUG] switch_core_state_machine.c:416
switch_core_session_run() Hangup Command set_global(10.0.0.19_INCALL=false):

It does not execute - the global variable is not set...quite odd.

Scott


_______________________________________________
Freeswitch-users mailing list
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


_______________________________________________
Freeswitch-users mailing list
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
brian at freeswitch.org
Guest





PostPosted: Tue Jan 20, 2009 12:26 pm    Post subject: [Freeswitch-users] api_hangup_hook not actually executing th Reply with quote

I have just tested this:

<extension name="api_hangup_hook_test">
<condition field="destination_number" expression="^877$">
<action application="answer"/>
<action application="set" data="api_hangup_hook=originate user/1008@bkw.org
9999"/>
<action application="playback" data="local_stream://moh"/>
</condition>
</extension>

When I hangup I see:
2009-01-20 11:22:41 [DEBUG] switch_core_state_machine.c:433
switch_core_session_run() Hangup Command originate(user/1008@bkw.org
9999):

Works.... So yes we need to see the full log.

/b


On Jan 20, 2009, at 11:20 AM, Michael Collins wrote:

Quote:
Can you pastebin the entire call from start to finish? Also, pastebin
your dialplan extension.
-MC


_______________________________________________
Freeswitch-users mailing list
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
scott.ellis at novatex...
Guest





PostPosted: Tue Jan 20, 2009 12:37 pm    Post subject: [Freeswitch-users] api_hangup_hook not actually executing th Reply with quote

coming

Brian West wrote:
Quote:
Quote:
I have just tested this:

<extension name="api_hangup_hook_test">
<condition field="destination_number" expression="^877$">
<action application="answer"/>
<action application="set" data="api_hangup_hook=originate user/1008@bkw.org ([email]user/1008@bkw.org[/email])
9999"/>
<action application="playback" data="local_stream://moh"/>
</condition>
</extension>

When I hangup I see:
2009-01-20 11:22:41 [DEBUG] switch_core_state_machine.c:433
switch_core_session_run() Hangup Command originate(user/1008@bkw.org ([email]user/1008@bkw.org[/email])
9999):

Works.... So yes we need to see the full log.

/b


On Jan 20, 2009, at 11:20 AM, Michael Collins wrote:

Quote:
Can you pastebin the entire call from start to finish? Also, pastebin
your dialplan extension.
-MC


_______________________________________________
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
mrene_lists at avgs.ca
Guest





PostPosted: Thu Jan 22, 2009 3:47 pm    Post subject: [Freeswitch-users] api_hangup_hook not actually executing th Reply with quote

Its global_setvar not set_global

Math

On Tue, Jan 20, 2009 at 12:11 PM, Scott Ellis <scott.ellis@novatex.com.au (scott.ellis@novatex.com.au)> wrote:
Quote:
The on answer is fine, the api_hangup_hook gets to the point where it
wants to execute, but then nothing happens. Any thoughts?


2009-01-21 03:08:00 [DEBUG] switch_channel.c:1773
switch_channel_perform_mark_answered() sofia/internal/Line_9@10.0.0.9 (Line_9@10.0.0.9)
execute on answer: set_global(10.0.0.19_INCALL=true)2009-01-21 03:08:00
[DEBUG] mod_dptools.c:726 set_global_function() SET GLOBAL
[10.0.0.19_INCALL]=[true]

2009-01-21 03:08:09 [DEBUG] switch_core_state_machine.c:416
switch_core_session_run() Hangup Command set_global(10.0.0.19_INCALL=false):

It does not execute - the global variable is not set...quite odd.

Scott


_______________________________________________
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
brian at freeswitch.org
Guest





PostPosted: Thu Jan 22, 2009 4:03 pm    Post subject: [Freeswitch-users] api_hangup_hook not actually executing th Reply with quote

I would use mod_limit and not futz with global anything.

/b

On Jan 22, 2009, at 2:07 PM, Mathieu Rene wrote:

Quote:
Its global_setvar not set_global

Math


_______________________________________________
Freeswitch-users mailing list
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
scott.ellis at novatex...
Guest





PostPosted: Fri Jan 23, 2009 9:05 pm    Post subject: [Freeswitch-users] api_hangup_hook not actually executing th Reply with quote

Thank you.

Scott

Brian West wrote:
Quote:
Quote:
I would use mod_limit and not futz with global anything.

/b

On Jan 22, 2009, at 2:07 PM, Mathieu Rene wrote:

Quote:
Its global_setvar not set_global

Math


_______________________________________________
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