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/[EMAIL PROTECTED]/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 |
_______________________________________________ --Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users