Is anyone here using optigold with the ISP Dialer and specifically using it with the "notify" function within the dialer. They have an example of using the notify to let the user know their accoun is past due and we were wondering if anyone here is using it in that manner. If so would you be willing to exchange some info as we would like to use it in that manner ourselves.
I do, I have the SQL plugin for optigold and update a table with the userinfo for each server action optigold performs, one of them being on hold and such. I made the notify URL for the ISP Wizard Dialer a php script, the php script takes the username posted to it from ISP Wizard and determines it's status by reading this table, if they are on hold or whatever else, I push the appropriate message back from the PHP script. I'll paste the script below. notify.php <html> <head> <title></title> </head> <body bgcolor="FFFFFF" text="000000"> <?php $username = ($_POST['USERNAME']); $baseusername = ($_POST['BASEUSERNAME']); $password = ($_POST['PASSWORD']); $softwareversion = ($_POST['SOFTWAREVERSION']); $configurationversion = ($_POST['CONFIGURATIONVERSION']); $buildtimestamp = ($_POST['BUILDTIMESTAMP']); $numberdialed = ($_POST['NUMBERDIALED']); $accessno = ($_POST['ACCESSNO']); $windowsversion = ($_POST['WINDOWSVERSION']); $windowsversionnumber = ($_POST['WINDOWSVERSIONNUMBER']); $windowsservicepack = ($_POST['WINDOWSSERVICEPACK']); $modemname = ($_POST['MODEMNAME']); $connectionspeed = ($_POST['CONNECTIONSPEED']); $db = mysql_connect("127.0.0.1", "username", "password"); mysql_select_db("userbase",$db); $result = mysql_query("SELECT inact FROM users WHERE username = '$username'",$db); $inact = mysql_result($result,0,"inact"); $filename = 'file.txt'; $fp = fopen($filename, "a+"); $write = fputs($fp, $baseusername); fclose($fp); if($inact == '1') { echo "MessageTitle Account Overdue\n"; echo "MessageYesNo Your Account is Overdue\nDo you wish to make payment now?\n"; echo "goto launchurl\n"; echo "hangup\n"; echo "goto end\n"; echo ":Launchurl\n"; /* Send them to make a payment page, I allow people on hold to login, but restrict them to only being able to get to my payment page, in fact all URL's requested go to the make a payment page when the person is on hold, the wonders of radius attributes and create named config. */ echo "LaunchURL http://payments.domain.com\n"; echo ":end\n"; } ?> </body> </html>