View Single Post
  #64  
Old 02-25-08, 11:45 AM
troycarpenter troycarpenter is offline
Senior Member
 
Join Date: Nov 2007
Location: Georgia
Posts: 119
Great Job!

With the web php script comes another possibility...via CLI!

Generate a POST request to http://<your-piaf.host>/reminders/index.php with the following data:
APPTPHONE=<phone number to call to match your dialplan>
APPTMO=<month, 01-12>
APPTDA=<day, 01-31>
APPTYR=<year, 2008>
APPTHR=<hour, 00-23>
APPTMIN=<minute, 00-59>
APPTRECUR=<recurrence, 1=Never, 2=Weekdays, 3=Daily, 4=Weekly, 5=Monthly, 6=Annually>
APPTMSG=<Message+with+pluses+for+spaces>

You will need to format the data per your favorite POSTing tool.
Here's an example using wget:
wget --post-data 'APPTPHONE=8617&APPTMO=02&APPTDA=25&APPTYR=2008&AP PTHR=12&APPTMIN=30&APPTRECUR=1&APPTMSG=This+is+a+C LI+test+reminder' http://192.168.0.123/reminders/index.php

This knowledge will allow automating phone reminders from scripts...like say an ICAL to Asterisk Reminder script. (hmmm...export calendar from your favorite PIM software to ICAL then run a script to put them in Asterisk...nice).

Last edited by wardmundy : 02-26-08 at 07:57 AM. Reason: fixed typo.
Reply With Quote