Quote from: Bay11 on November 02, 2012, 07:07:00 PM
Infin8loop, can you help me please.
...
https://www.box.com/s/kzzau8jkwcr8urd4zg0s
I don't have an OBi202, so I cannot test.
Looking at the source for callstatus.htm (from an Obi202) in the above "box" file (posted by bay11) I see:
function click_record(p){
var a;
a="record.au?port="+p;
document.forms[0].action=a;
document.forms[0].submit();
}
The above function click_record(p) appears to invoke url
"
http://your-obi-ip-address/record.au?port=0"
The port is zero because in the code I'm looking at the function click_record is invoked when clicking
the "record" button by code:
<input class=buttoninput type=button value='Record' onClick="click_record(0)">.
Notice the zero being passed as a parameter to the function.
I don't know if the parameter will always be zero or will vary depending on what call(s) are in progress.
I suggest someone with both my original script and an Obi202 do the following:
Make sure you modify the following 3 lines in the script as shown:
strURL = "
http://192.168.0.40/record.au?port=0"
''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.
Notice the addition of "?port=0" to the strURL string which is not in the original script because the OBi110 doesn't (or didn't) need it. The poster of the htm file (bay11) appears to have had only 1 call in progress at the time of the callstatus.htm source capture. If memory serves me correctly, an OBi110 only has one "record" button even if more than one call is in progress. Pressing "record" will record whatever call in on the phone as you "flash" dial between the calls (if that makes sense). I don't know what the OBi202 shows. Does an OBi202 show more than one record button for multiple calls necessitating the port number?