| 1765 | 1765 | $ext->add($context, $exten, 'a7', new ext_gotoif('$["${CALLBACKNUM}" = "${ARG1}"]', 'invalid')); // Error, they put in the queue number |
|---|
| 1766 | 1766 | $ext->add($context, $exten, '', new ext_execif('$["${QREGEX}" != ""]', 'GotoIf', '$["${REGEX("${QREGEX}" ${CALLBACKNUM})}" = "0"]?invalid')); |
|---|
| 1767 | 1767 | $ext->add($context, $exten, '', new ext_execif('$["${ARG2}" != ""]', 'Authenticate', '${ARG2}')); |
|---|
| | 1768 | if ($amp_conf['QUEUESTATEINTERFACE'] == 'true') { |
|---|
| | 1769 | $ext->add($context, $exten, 'a9', new ext_dbget('DEVICE','AMPUSER/${CALLBACKNUM}/device')); |
|---|
| | 1770 | $ext->add($context, $exten, '', new ext_dbget('STATEINTERFACE','DEVICE/${DEVICE}/dial')); |
|---|
| | 1771 | $ext->add($context, $exten, '', new ext_addqueuemember('${ARG1}', 'Local/${CALLBACKNUM}@from-internal/n,,,,${STATEINTERFACE}')); // using chan_local allows us to have agents over trunks |
|---|
| | 1772 | } else { |
|---|