[Freeswitch-users] record file failure
Khue Nguyen Minh
khuenm at vega.com.vn
Fri Jul 5 14:39:53 MSD 2013
Hi all,
I'm testing function "recordFile" with scripts:
var is_exit = false;
function on_dtmf(session, type, obj, arg){
try{
if (type == "dtmf"){
if (obj.digit == '*'){
is_exit = true;
return false;
}
}
} catch(e){
console_log("info","error read dtmf\n");
}
return true;
}
session.answer();
while (session.ready()){
console_log("info","starting record\n");
session.recordFile("/opt/freeswitch/recordings/test.wav", on_dtmf,
"", 240, 500, 3);
console_log("info","finish\n");
session.streamFile("/opt/freeswitch/recordings/test.wav");
session.hangup();
}
I see that function "recordFile" return immediately when called, and, I
didn't play file "test.wav". My FreeSWITCH receive incoming call from GMSC
of operator.
Please check it for me.
Thanks & Best regards,
Khue.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130705/f3fabd0d/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list