[Freeswitch-users] call die after 30 seconds in lua script

Eder Souza ederwander at gmail.com
Thu Feb 11 08:37:06 PST 2010


Hi Michael

resolved i think lol lol

2010-02-11 13:02:12.566609 [NOTICE] sofia.c:322 Hangup
sofia/internal/eder at ip [CS_EXECUTE] [NORMAL_CLEARING]
2010-02-11 13:02:12.566609 [DEBUG] switch_channel.c:1683 Send signal
sofia/internal/eder at ip [KILL]
2010-02-11 13:02:12.566609 [DEBUG] switch_core_session.c:932 Send signal
sofia/internal/eder at 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 at ip) State EXECUTE going to sleep
2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:397 (
sofia/internal/eder at ip) Running State Change CS_HANGUP
2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:433 (
sofia/internal/eder at ip) State HANGUP
2010-02-11 13:02:12.572884 [DEBUG] mod_sofia.c:338 Channel
sofia/internal/eder at ip hanging up, cause: NORMAL_CLEARING
2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:46
sofia/internal/eder at ip Standard HANGUP, cause: NORMAL_CLEARING
2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:433 (
sofia/internal/eder at ip) State HANGUP going to sleep
2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:475 (
sofia/internal/eder at 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 at ip [BREAK]
2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:397 (
sofia/internal/eder at ip) Running State Change CS_REPORTING
2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:607 (
sofia/internal/eder at ip) State REPORTING
2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:53
sofia/internal/eder at ip Standard REPORTING, cause: NORMAL_CLEARING
2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:607 (
sofia/internal/eder at ip) State REPORTING going to sleep
2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:410 (
sofia/internal/eder at 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 at ip) Locked, Waiting on external entities
2010-02-11 13:02:12.572884 [NOTICE] switch_core_session.c:1084 Session 55 (
sofia/internal/eder at ip) Ended
2010-02-11 13:02:12.572884 [NOTICE] switch_core_session.c:1086 Close Channel
sofia/internal/eder at ip [CS_DESTROY]
2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:559 (
sofia/internal/eder at ip) State DESTROY
2010-02-11 13:02:12.572884 [DEBUG] mod_sofia.c:255
sofia/internal/eder at ipSOFIA DESTROY
2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:60
sofia/internal/eder at ip Standard DESTROY
2010-02-11 13:02:12.572884 [DEBUG] switch_core_state_machine.c:559 (
sofia/internal/eder at 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 at freeswitch.org> wrote:

>
>
>   On Thu, Feb 11, 2010 at 7:24 AM, Eder Souza <ederwander at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100211/a0feec0c/attachment-0002.html 


More information about the FreeSWITCH-users mailing list