Re: [Freeswitch-users] RecordFile returns prematurely
Brian, thanks for your response. I'm confused why my script is exiting at all as recordFile should block until the call is hung up by the far end, it does this 99% of the time. As a test I have put a log message right after the recordFile line, this gets printed out, so the script is continuing on after the recordFile call is returning (which is should not as the far end has not disconnected) As I understand autoHangup is used to keep processing the dial plan when the script is done. In my case the script should not have finished at all, the call is still up, nobody has sent any hangup yet. What would make recordFile return internally with no arguments except the file name? Is there some buffer, lock, rtp timeout that could be causing this? From: "Brian West" <brian@freeswitch.org> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Wednesday, September 1, 2010 6:59:20 PM Subject: Re: [Freeswitch-users] RecordFile returns prematurely because your script exited and you didn't set the autoHangup to false. See mod_lua wiki page. /b On Sep 1, 2010, at 6:53 PM, Dan wrote:
Right, session.recordFile returns, its the last line in my lua|javascript script, and the dial plan has nothing left to execute so it hangs up. The question is why is session.recordFile returning when it should be blocking until the call is hung up (remotely). There is no bye or media disconnect from the far end, the record call is just returning and freeswitch is then hanging the call up and sending a bye to the far end client as there's nothing left to do. ----- Original Message ----- From: "Brian West" <brian@freeswitch.org> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Wednesday, September 1, 2010 4:32:48 PM Subject: Re: [Freeswitch-users] RecordFile returns prematurely
Read this line.
/b
_______________________________________________ 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
Perhaps dtmf? Do you have a handler for this? -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/RecordFile-returns-prematurely... Sent from the freeswitch-users mailing list archive at Nabble.com.
Thanks Jeff, I do have a handler for dtmf digits (which just throws them away), so its not that (but it was a excellent guess). It always happens just as another call has finished hanging up. ----- Original Message ----- From: "Jeff Lenk" <jeff@jefflenk.com> To: freeswitch-users@lists.freeswitch.org Sent: Thursday, September 2, 2010 11:01:33 AM Subject: Re: [Freeswitch-users] RecordFile returns prematurely Perhaps dtmf? Do you have a handler for this? -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/RecordFile-returns-prematurely... Sent from the freeswitch-users mailing list archive at Nabble.com. _______________________________________________ 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)
-
Dan
-
Jeff Lenk