|  | Posted by Henk Oegema on 10/10/07 06:54 
> > But what's the operating system going to do with them?
 >
 > The operating system doesn't take parameters.  Rather, you run a program
 > (even if it is the shell) which does something with parameters.
 Yes jerry, you are right. That's exactly what I want.  :)
 Sorry for my confusion.
 
 I want to pass the values of the three variables in the php script to my PBX
 dial plan (Asterisk):
 
 exten => 3014,1,Playback(wait-moment)
 exten => 3014,n,Set(days=...) <----Here I need the value of $days from the
 php script.
 exten => 3014,n,Set(hours=..) <----Here I need the value of $hour from the
 php script.
 exten => 3014,n,Set(minutes=..)<---Here I need the value of $minutes from
 the php script.
 exten => 3014,n,System(echo "the server uptime is ${days} days and ${hours}
 hours and ${minutes} minutes" | /usr/bin/text2wave -scale 1.5 -F
 8000 -o /tmp/uptime.wav)
 exten => 3014,n,Playback(/tmp/uptime)
 exten => 3014,n,System(rm /tmp/uptime.wav)
 exten => 3014,n,Playback(goodbye)
 exten => 3014,n,Hangup()
 >
 
 
 I use something similar to get my account balance from the web:
 
 exten => 3000,1,Answer
 exten => 3000,n,Playback(astcc-account-balance-is)
 exten =>
 3000,n,Set(status=${CURL(http://localhost/credit/credit_dialnow.php)})
 <----HERE I GET MY ACCOUNT BALANCE.
 exten => 3000,n,SayDigits(${status})
 exten => 3000,n,Playback(vm-goodbye)
 exten => 3000,n,Hangup()
  Navigation: [Reply to this message] |