On an OBi110/100 you can clear the call history by using the following URL
http://your-obi-ip-address/callhistory.htm?item=0 This can be done by typing the URL into a browser or emulating a call to it in a script.
Caution: There is no confirmation prompt and a single page showing "Number of calls in history: 0" will be returned (which could be ignored by a script).
Here is a link to an updated version of a script I posted earlier elsewhere on this forum. This version has an option to clear the call history.
obi-historydumpinatorV2.vbs:
https://www.box.com/s/9vdwpvswrvja3wbkuptdThe script must be configured by editing it:
''**** You must change the following 4 values to your specific configuration
strIP = "192.168.0.40"
''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_History"
''change C:\Call_History above to the full path of the directory to save the history files into. The Directory must already exist.
flgClearHistory = "N"
''change N above to Y to clear history after saving (if desired)
''Please test and ensure the script is saving history correctly to the appropriate directory before changing to Y!
''**** You must change the above 4 values to your specific configuration
The script will save the history file as: callhistory_ip_yyyymmdd_hhmmss.xml
Where "ip" will be the last part of the IP address for the Obi (after the last "." in the ip address) followed by date (yyyymmdd) and time (hhmmss) saved. I have two OBi110's, so I have two configured versions of the script, one for each OBi.
As QBZappy said, the resulting XML imports into MS Excel nicely.
"Inator" is inspired by watching too much Phineas and Ferb with my 23 year old daughter. Doofenshmirtz Evil Incorporated.