How to continue call even if recording fails?
Hi, I'm recording sessions by sending uuid_record command to FS after calls are bridged. It works fine, but problems start when i'm sending a wrong/nonexistent directory to create the recorded file in. FS shows error (which is expected and fine): [ERR] mod_sndfile.c:195 Error Opening File [c:/FreeSWITCH/reco/rec_c1e3df00-dda2-4320-8900-4853a216f19b.wav] [System error : The system cannot find the path specified.] [ERR] switch_ivr_async.c:997 Error opening c:/FreeSWITCH/reco/rec_c1e3df00-dda2-4320-8900-4853a216f19b.wav After that the recorded call gets hung up. Is there any way to continue the call even if recording fails? -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/How-to-continue-call-even-if-r... Sent from the freeswitch-users mailing list archive at Nabble.com.
create the directory and then its not an issue? On Jun 16, 2010, at 2:18 AM, Maciej Aniserowicz wrote:
Hi, I'm recording sessions by sending uuid_record command to FS after calls are bridged. It works fine, but problems start when i'm sending a wrong/nonexistent directory to create the recorded file in. FS shows error (which is expected and fine):
[ERR] mod_sndfile.c:195 Error Opening File [c:/FreeSWITCH/reco/rec_c1e3df00-dda2-4320-8900-4853a216f19b.wav] [System error : The system cannot find the path specified.] [ERR] switch_ivr_async.c:997 Error opening c:/FreeSWITCH/reco/rec_c1e3df00-dda2-4320-8900-4853a216f19b.wav
After that the recorded call gets hung up. Is there any way to continue the call even if recording fails?
Well yes, then it would work. But the recordings directory is configurable setting in my application, which runs on different machine than FreeSWITCH, so I cannot create the folder or check if it exists from the app-level. Is there no other way to do this? MA On 2010-06-16 19:13, Michael Jerris wrote:
create the directory and then its not an issue?
On Jun 16, 2010, at 2:18 AM, Maciej Aniserowicz wrote:
Hi, I'm recording sessions by sending uuid_record command to FS after calls are bridged. It works fine, but problems start when i'm sending a wrong/nonexistent directory to create the recorded file in. FS shows error (which is expected and fine):
[ERR] mod_sndfile.c:195 Error Opening File [c:/FreeSWITCH/reco/rec_c1e3df00-dda2-4320-8900-4853a216f19b.wav] [System error : The system cannot find the path specified.] [ERR] switch_ivr_async.c:997 Error opening c:/FreeSWITCH/reco/rec_c1e3df00-dda2-4320-8900-4853a216f19b.wav
After that the recorded call gets hung up. Is there any way to continue the call even if recording fails?
_______________________________________________ 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
use the system app to mkdir -p :) /b On Jun 16, 2010, at 12:28 PM, Maciej Aniserowicz wrote:
Well yes, then it would work. But the recordings directory is configurable setting in my application, which runs on different machine than FreeSWITCH, so I cannot create the folder or check if it exists from the app-level.
Is there no other way to do this?
MA
Just to clarify the reason the call fails is for consistency... Your app is broken if it doesn't make sure the directory is there.... What if this was a case where the phone call could save a client from a HUGE lawsuit and your application failed to actually do anything? See the reasoning? /b On Jun 16, 2010, at 12:28 PM, Maciej Aniserowicz wrote:
Well yes, then it would work. But the recordings directory is configurable setting in my application, which runs on different machine than FreeSWITCH, so I cannot create the folder or check if it exists from the app-level.
Is there no other way to do this?
MA
On Wed, Jun 16, 2010 at 12:33:42PM -0500, Brian West wrote:
Just to clarify the reason the call fails is for consistency... Your app is broken if it doesn't make sure the directory is there.... What if this was a case where the phone call could save a client from a HUGE lawsuit and your application failed to actually do anything? See the reasoning?
Conversely, what if you'd merely like to make a 'best effort' attempt to record the call, because the call is making you lots of money or AVOID this fabled huge lawsuit. Sometimes drives fill up, disks get unmounted, etc and no dialplan magic is going to save you. Personally I hate it when FS drops a call because recording failed, or I tried to uuid_broadcast a nonexistant file, or whatever. Andrew
Hello, This feature has been added by http://jira.freeswitch.org/browse/FSCORE-591 where an environment variable version was provided too. Tamas 2010-06-16 23:20 keltezéssel, Andrew Thompson írta:
On Wed, Jun 16, 2010 at 12:33:42PM -0500, Brian West wrote:
Just to clarify the reason the call fails is for consistency... Your app is broken if it doesn't make sure the directory is there.... What if this was a case where the phone call could save a client from a HUGE lawsuit and your application failed to actually do anything? See the reasoning?
Conversely, what if you'd merely like to make a 'best effort' attempt to record the call, because the call is making you lots of money or AVOID this fabled huge lawsuit. Sometimes drives fill up, disks get unmounted, etc and no dialplan magic is going to save you.
Personally I hate it when FS drops a call because recording failed, or I tried to uuid_broadcast a nonexistant file, or whatever.
Andrew
_______________________________________________ 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 (5)
-
Andrew Thompson
-
Brian West
-
Maciej Aniserowicz
-
Michael Jerris
-
Tamas