api_hangup_hook not actually executing the command
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
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:
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
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:
Can you pastebin the entire call from start to finish? Also, pastebin your dialplan extension. -MC
Its global_setvar not set_global Math On Tue, Jan 20, 2009 at 12:11 PM, Scott Ellis <scott.ellis@novatex.com.au>wrote:
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
participants (4)
-
Brian West
-
Mathieu Rene
-
Michael Collins
-
Scott Ellis