call die after 30 seconds in lua script
Hi list im testing the script welcome.lua from http://wiki.freeswitch.org/wiki/Lua_Welcome_IVR_Example but when do a transfer my call drop in 30 seconds just in script lua!! callig one ramal (ex: 12345) direct in x-lite the call works !! When make a session:execute("transfer","12345") in the script lua the call drop after 30 seconds!! why ?? Att, Eng Eder de Souza
On Thu, Feb 11, 2010 at 7:24 AM, Eder Souza <ederwander@gmail.com> wrote:
Hi list
im testing the script welcome.lua from http://wiki.freeswitch.org/wiki/Lua_Welcome_IVR_Example
but when do a transfer my call drop in 30 seconds just in script lua!!
callig one ramal (ex: 12345) direct in x-lite the call works !!
When make a session:execute("transfer","12345") in the script lua the call drop after 30 seconds!!
why ??
What does the FS console debug log say right before the disconnect? -MC
Hi Michael resolved i think lol lol 2010-02-11 13:02:12.566609 [NOTICE] sofia.c:322 Hangup sofia/internal/eder@ip [CS_EXECUTE] [NORMAL_CLEARING] 2010-02-11 13:02:12.566609 [DEBUG] switch_channel.c:1683 Send signal sofia/internal/eder@ip [KILL] 2010-02-11 13:02:12.566609 [DEBUG] switch_core_session.c:932 Send signal sofia/internal/eder@ip [BREAK] 2010-02-11 13:02:12.572884 [DEBUG] switch_ivr_play_say.c:1391 done playing file 2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:490 ( sofia/internal/eder@ip) State EXECUTE going to sleep 2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:397 ( sofia/internal/eder@ip) Running State Change CS_HANGUP 2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:433 ( sofia/internal/eder@ip) State HANGUP 2010-02-11 13:02:12.572884 [DEBUG] mod_sofia.c:338 Channel sofia/internal/eder@ip hanging up, cause: NORMAL_CLEARING 2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:46 sofia/internal/eder@ip Standard HANGUP, cause: NORMAL_CLEARING 2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:433 ( sofia/internal/eder@ip) State HANGUP going to sleep 2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:475 ( sofia/internal/eder@ip) State Change CS_HANGUP -> CS_REPORTING 2010-02-11 13:02:12.572884 [DEBUG] switch_core_session.c:932 Send signal sofia/internal/eder@ip [BREAK] 2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:397 ( sofia/internal/eder@ip) Running State Change CS_REPORTING 2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:607 ( sofia/internal/eder@ip) State REPORTING 2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:53 sofia/internal/eder@ip Standard REPORTING, cause: NORMAL_CLEARING 2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:607 ( sofia/internal/eder@ip) State REPORTING going to sleep 2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:410 ( sofia/internal/eder@ip) State Change CS_REPORTING -> CS_DESTROY 2010-02-11 13:02:12.572884 [DEBUG] switch_core_session.c:1066 Session 55 ( sofia/internal/eder@ip) Locked, Waiting on external entities 2010-02-11 13:02:12.572884 [NOTICE] switch_core_session.c:1084 Session 55 ( sofia/internal/eder@ip) Ended 2010-02-11 13:02:12.572884 [NOTICE] switch_core_session.c:1086 Close Channel sofia/internal/eder@ip [CS_DESTROY] 2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:559 ( sofia/internal/eder@ip) State DESTROY 2010-02-11 13:02:12.572884 [DEBUG] mod_sofia.c:255 sofia/internal/eder@ipSOFIA DESTROY 2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:60 sofia/internal/eder@ip Standard DESTROY 2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:559 ( sofia/internal/eder@ip) State DESTROY going to sleep im note this error when i transfer my calls to hold_music (MOH) extension!! when set "answer" the call drop after 30 seconds removing the flag "answer" my transfer dont die see: in my lua script i remove "session:answer();" here --session:answer(); --"""comented line work now"" session:setAutoHangup(false) digito = "hua" digito = session:playAndGetDigits(1, 1, 1, 10000, "#", "/usr/local/freeswitch/sounds/en/us/callie/conference/8000/conf-pin.wav", "", "\\d+"); freeswitch.consoleLog("info", "Got dtmf: ".. digito .."\n"); end if (digito == "5") then freeswitch.consoleLog("info", "tecla digitada: ".. digito .."\n"); session:execute("transfer","9000"); . . . in my /freeswitch/conf/dialplan/default.xml i remove "<action application="answer"/>" see line for answer coment <extension name="teste_eder"> <condition field="destination_number" expression="^9000$"> <!-- <action application="answer"/> """"comented line work now"""--> <action application="playback" data="$${hold_music}"/> </condition> </extension> Att, Eng Eder de Souza On Thu, Feb 11, 2010 at 2:03 PM, Michael Collins <msc@freeswitch.org> wrote:
On Thu, Feb 11, 2010 at 7:24 AM, Eder Souza <ederwander@gmail.com>wrote:
Hi list
im testing the script welcome.lua from http://wiki.freeswitch.org/wiki/Lua_Welcome_IVR_Example
but when do a transfer my call drop in 30 seconds just in script lua!!
callig one ramal (ex: 12345) direct in x-lite the call works !!
When make a session:execute("transfer","12345") in the script lua the call drop after 30 seconds!!
why ??
What does the FS console debug log say right before the disconnect? -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
participants (2)
-
Eder Souza
-
Michael Collins