Callback daemon
Aus metasec wiki
Zphone Callback Daemon
[macro-anruf] exten => s, 1, TrySystem(/usr/local/metasec/bin/zphone_msg.sh ${ARG1} ${CALLERID(num)} i ${CHANNEL} ${UNIQUEID}) exten => s, 2, Agi(zphone_chese.php,${CALLERID(num)},${ARG1}) exten => s, 3, Set(__ZCHESE=${ZCHESE}) exten => s, 4, GoToIf($["${ZCHESE}"="1"]?10) exten => s, 5, Set(UML=${DB(uml_target/${ARG1})}) exten => s, 6, Set(DND=${DB(dnd/${ARG1})}) exten => s, 7, GoToIf($["${DND}"="1"]?100) exten => s, 8, NoOp(${UML}) exten => s, 9, GoToIf($[${LEN(${UML})}>0]?300) exten => s, 10, Agi(zphone_grp_count.php,${ARG1}) exten => s, 11, Set(GROUPCOUNT=${GROUP_COUNT(${ARG1})}) exten => s, 12, NoOp(${GROUPCOUNT}) exten => s, 13, GoToIf($[${CHAN_COUNT}>1]?100) exten => s, 14, Dial(SIP/${ARG1},${ARG2},tro) exten => s, 15, TrySystem(/usr/local/metasec/bin/zphone_msg.sh ${ARG1} ${MACRO_EXTEN} m ${CHANNEL} ${UNIQUEID} upd) exten => s, 16, GoToIf($["${ARG2}">"0"]?100) exten => s, 17, Hangup() exten => s, 100, GoToIf($[${LEN(${CALLERID(num)})}=2]?200) exten => s, 101, GoToIfTime(7:30-17:30|mon-thu|*|*?400) exten => s, 102, GoToIfTime(7:30-12:00|fri|*|*?400) exten => s, 103, Answer() exten => s, 104, Playback(/var/www/zphone/sounds/nachtschaltung) exten => s, 105, Hangup() exten => s, 200, Busy(30) exten => s, 201, Hangup() exten => s, 300, Dial(Local/${UML}@default) exten => s, 301, Hangup() exten => s, 400, Answer() exten => s, 401, Dial(Local/98@default,,trom(WTT)) exten => s, 402, Hangup()