[Asterisk-Users] FOP led Colors

Alex Montoanelli alexm at unetvale.com.br
Sun Dec 18 14:15:51 MST 2005


Hello guy´s

I´m trying to create a extension do modify the led colors of a button on a
FOP, 

Via manager command, liked PHP, but I  do not have a good result, I have set
de astdb family in op_astdb.conf, but never,

My Php script, and my extension.conf is bellow

Thanks for all

By

 

//php script

 

fputs($socket, "Action: Originate\r\n");

                        fputs($socket, "Channel: Local/123 at features/n\r\n");
fputs($socket, "Context: features \r\n");

                        fputs($socket, "Exten: *79\r\n");

                        fputs($socket, "Priority: 1\r\n");

                        fputs($socket, "Callerid:
$_SESSION[type]/$_SESSION[extension]\r\n"); type like SIP or IAX

                        fputs($socket, "Timeout: 30000\r\n\r\n");

 

 

//extensions.conf

 

[features]

exten => *78,1,UserEvent(ASTDB|Channel: ${CALLERID}^Family: dnd^State: On)

exten => *78,2,SetVar(temp=${CALLERID})

exten => *78,3,Cut(temp=temp,,1)

exten => *78,4,DBPut(dnd/${temp}=On)

exten => *78,5,Hangup

 

exten => 123,1,answer

exten => 123,n,hangup

            

 

 

Alex Montoanelli



 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051218/c9e55dc5/attachment.htm


More information about the asterisk-users mailing list