Hi All
Im trying to mash up my DND code when set from an Aastra handset vi an xml
script
at the moment when the script is run it sets the light on and sets the ASTDB
to the value SET for the relevent extension.
What I want to do now is set the LED and TEXT in FOP. I can do this via a
userevent from the dialplan but just cant seem to work out a way of doing
its from the script which uses PHPAGI.
Even a way of getting FOP to poll the astDB at regular intervals would be
good
if($action=='change')
{
# change DND status
if($dnd==0)
{
$res = $as->Command('database put DND '.$user.' SET');
<<<<<<<<<<I NEED TO SET THE FOP LED VALUE HERE>>>>>>>
$dnd=1;
}
else
{
$res = $as->Command('database del DND '.$user);
$dnd=0;
}
}
[/code]
reading the phpagi notes it looks like something like :-
[code] $res = $as->send_request('ASTDB|Channel: SIP/2206-af91a490^Family:
DND^Value: SET ^');
[/code]
may do it but it doent seem to
Any Ideas ?
Cheers Ian Plain
http://www.cyber-cottage.co.uk
Call Us free with Free World Dial 43143
Get us to call you http://www.cyber-cottage.co.uk/voip/callback.htm
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.488 / Virus Database: 269.14.0/1048 - Release Date: 10/3/2007
8:22 PM