Posts

Showing posts from January, 2017

VBS Script - Recursively Delete all Files in a Folder

I found this post and it work for me. http://clintboessen.blogspot.com/2009/07/vbs-script-recursively-delete-all-files.html VBS Script - Recursively Delete all Files in a Folder This script deletes all files under a particular folder, in this example c:\test. set objFSO = createobject("Scripting.FileSystemObject") set objFolder = objFSO.GetFolder("C:\test") for each folder in objFolder.SubFolders objFSO.DeleteFolder folder.path, True next for each file in objFolder.Files objFSO.DeleteFile file.path, True next

Twilio SIP Registration call international

Using an SIP IP Phone With Twilio https://ertw.com/blog/2013/11/05/using-an-ip-phone-with-twilio/ I found Sean Walberg’s blog show how to connect SIP Phone to Twilio, I test it work for me. But the Voice URL app only work for local call not international, I modify and add international dialing. <?php   $called = preg_replace(   array('/sip:011?(.*?)@.*/', '/sip:1?(.*?)@.*/'),   array('{$1}', '{$1}'),   $_POST['Called']);   header("content-type: text/xml");   echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";   ob_start();   var_dump($called);   var_dump($_POST);   $contents = ob_get_contents();   ob_end_clean();   error_log($contents, 3, "/tmp/twilio.txt"); ?> <Response>   <Dial timeout="10" record="false" callerId="YOURTWILIONUMBER"><?= $called ?></Dial> </Response>

Dynamic DDNS Update Script for DNS Made Easy

Dynamic DNS Update Script  for  DNS Made Easy  https://dbly.com/dynamic-dns-update-script/ I found this Dynamic DNS Update Script for DNS Made Easy, very easy to use and free. Download link. https://dbly.com/wp-content/uploads/2016/08/ddns-1-0-3.zip Download and unzip it. run the script   Cscript ddns.vbs Cscript ddns.vbs /username:USERNAME Cscript ddns.vbs /password:PASSWORD Cscript ddns.vbs /recordid:REDORDID create a.bat file cscript //nologo ddns.vbs Create task schedule run the a.bat