Script to record call in progress
mrjoe:
Infin8loop, thanks so much for your help.
I can confirm the following:
The following URL will record calls only on Phone port 1
"http://your-obi-ip-address/record.au?port=0”
Putting a 1 in place of the 0 will record calls only on Phone port 2
"http://your-obi-ip-address/record.au?port=1”
MikeHObi:
Obi puts up two grids with a record button on the header of each for multiple call presentations on the obi202.
See below.
Now I did test this and and flashing between the callers was wonkey.i.e. the first caller could be flashed to hold, but when I went back they couldn't hear me, but I could hear them. Recording caught both sides though. Pressing the second button after pressing the 1st didn't really do anything. It appears that what it is recording is what is sent or received from the handset, and not the individual sp ports.
Thus if I press record call on the top call, it switched to showing stop recording for both.
infin8loop:
Quote from: mrjoe on November 10, 2012, 09:04:49 am
Infin8loop, thanks so much for your help.
I can confirm the following:
The following URL will record calls only on Phone port 1
"http://your-obi-ip-address/record.au?port=0”
Putting a 1 in place of the 0 will record calls only on Phone port 2
"http://your-obi-ip-address/record.au?port=1”
Thanks for the heads-up. I forgot the OBi202 has two phone ports. Makes sense why the port parameter is needed.
Below link points to an updated version of the original script. The phone port (0 or 1) may be passed to the script via the command line. This can be done by creating a shortcut for the script and then editing the properties of the shortcut. Add a 0 or 1 to the end of the shortcut "Target" after the last double quote if there are double quotes surrounding the value. There should be a space between the last double quote and the 0 or 1. Create two different shortcuts, one with a 0 for phone port 1 and another shortcut with a 1 for phone port two. No port needs to be passed for the OBi 100/110.
Three lines in the script still need to be modified to your own values.
script: https://www.box.com/s/hthaoxvqbuidwd6uogqp
Again, I don't have an OBi202, so I cannot test the nuances of script execution.
The upload directory here on the forum shows to be full.
Update: If you have an OBi202 and can't remember to pass the 0 or 1 in the command line then you can add the three lines shown in red below:
if WScript.Arguments.Count = 1 then
strPort = WScript.Arguments(0)
if strPort = "0" or strPort = "1" then
strURL = strURL & "?port=" & strPort
else
wscript.echo "If a port number is passed, it must be 0 or 1"
wscript.quit(2)
end if
else
wscript.echo "You must include the phone port number in the shortcut for an OBi202"
wscript.quit(2)
end if
I was attempting to make the script generic enough to handle both an OBi100/110 or OBi202. The port is not need for an OBi100/110.
skipro:
Infi8loop,
Thanks for the scripts.
What script line would send a error msg if no port # was included. You have one if it is not "0" or "1", but what if there is no port # added or included.
Msg Ex: "You must include the phone port number in the shortcut"
Now all you get is a Windows Script Host error: "Status code = 12152 : unknown"
infin8loop:
Quote from: skipro on November 10, 2012, 04:13:12 pm
Infi8loop,
Thanks for the scripts.
What script line would send a error msg if no port # was included. You have one if it is not "0" or "1", but what if there is no port # added or included.
Msg Ex: "You must include the phone port number in the shortcut"
Now all you get is a Windows Script Host error: "Status code = 12152 : unknown"
Please see the update in my earlier post.
Does the updated script work on an OBi202 if the phone port is passed in the command line?
Navigation
[0] Message Index
[#] Next page
[*] Previous page