Hi Ian,
Once I did that by using the userevent and originating a
call using
Local channels to fire the dialplan I wanted to set the
UserEvent. So
you can actually originate a call from phpagi, using a
channel like:
Local/$extension fakeDNDevent
And have in the dialplan the context:
[fakeDNDevent]
exten => _X.,1,UserEvent(ASTDB|Channel:
SIP/$^Family: DND^Value:
Break)
This is just a rough example, but you will get the idea.
This way you
can have it working without patching FOP.
Best regards,
Ian wrote:
> 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-cotta
ge.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
>
>
Flash Operator Panel Mailing List
To unsubscribe send an empty message to:
<operator_panel-unsubscribe lists.house.com.ar>
To get help send an empty message to:
<operator_panel-help lists.house.com.ar>
The archives can be found at:
http:/
/www.asternic.org/archives/maillist.html
|