| 32 | | $sql = "SELECT context,descr FROM extensions WHERE extension = 's' AND application LIKE 'DigitTimeout' AND context LIKE '".$dept."aa_%' ORDER BY context,priority"; |
|---|
| | 32 | if ($amp_conf["AMPDBENGINE"] == "sqlite3") { |
|---|
| | 33 | $sql = "SELECT context,descr FROM extensions WHERE extension = 's' AND application LIKE 'DigitTimeout' AND context LIKE '".$dept."aa\_%' ESCAPE '\' ORDER BY context,priority"; |
|---|
| | 34 | } |
|---|
| | 35 | else { |
|---|
| | 36 | $sql = "SELECT context,descr FROM extensions WHERE extension = 's' AND application LIKE 'DigitTimeout' AND context LIKE '".$dept."aa_%' ORDER BY context,priority"; |
|---|
| | 37 | } |
|---|