Script to record call in progress

(1/13) > >>

MYOBi:
I understand it is possible to login to OBI management interface and record the call in progress.
Is it possible to create a script, when executed from windows, it will start recording the call in progress from the PC OBI is connected to?

See this for scripting ideas: http://www.obitalk.com/forum/index.php?topic=1152.0

Or, preferably, is it possible to record the call in progress by pressing certain keys on the telephone keypad, recorded file to be saved in the connected PC?

Thanks,

infin8loop:
Per your request I created the attached obi-recordcallinator.vbs script.   I have done very limited testing.  It successfully recorded a couple of test calls, the longest being 1min 42secs.  I don't know for sure how it will behave on longer calls as the files get larger.

The 3 variables in the script that must be changed to your specific configuration are:

strURL = "http://192.168.0.40/record.au"
''change 192.168.0.40 above to the local IP address of your Obi

strPassword = "obipassword"
''change obipassword above to the password of your local Obi page login

strDirectoryPath = "C:\Call_Recordings"
''change C:\Call_Recordings above to the full path of the directory to save the call recordings into. The Directory must already exist.

The script does exactly what clicking the "Record" button does and the resulting recording is saved in the directory specified by strDirectoryPath with a file name in the format of obi_recording_yyyymmdd_hhmmss.au.

Good luck and let me know how it works out.

infin8loop

Updated the attached script. Added some basic error checking based on feedback. Will now display "No OBi call in progress" if there is no call in progress.

  

MYOBi:
infin8loop,

I tried your script a couple of times. The first attempt was not successful, at the end of the first call, my local OBI rebooted by itself, and nothing was recorded. At the second try, the recorded massage appeared in the specified folder. I like the additions of date and time strings. Very nice!

Thanks.

Edit: I ran the script again when there was no call in progress, just to perform a stress test. It gives an error message.
"Arguments are of wrong type" at Line 27, char 1, code... source...

mrnaughty:
Works good when call in progress.!
Thank you!

infin8loop:
Quote from: MYOBi on January 22, 2012, 08:01:28 am

infin8loop,

I tried your script a couple of times. The first attempt was not successful, at the end of the first call, my local OBI rebooted by itself, and nothing was recorded. At the second try, the recorded massage appeared in the specified folder. I like the additions of date and time strings. Very nice!

Thanks.

Edit: I ran the script again when there was no call in progress, just to perform a stress test. It gives an error message.
"Arguments are of wrong type" at Line 27, char 1, code... source...



I'm not sure why your OBi would have rebooted.  I just checked my OBi and it's been up for 2 days (after a config change), well before I even thought of this script. If your OBi reboots immediately during or after the call recording, please check the Status -> System Status -> Product Information -> Uptime for the Reboot Reason code that's in parenthesis. This may or may not tell us something.         

I updated the script (see the updated attachment to the original post) by adding some basic error checking to handle the "Line 27, char 1" error when no call is in progress by displaying a more friendly "No OBi call in progress" message.

If anyone wants to share the longest duration of call they've successfully recorded with the script, I'd appreciate the info.

Thanks for the feedback.

Navigation

[0] Message Index

[#] Next page