telepony.php 456 B

1234567891011121314151617
  1. <?php
  2. //askozia number telepathy
  3. if (ubRouting::get('action') == 'telepony') {
  4. if ($alterconf['TELEPONY_ENABLED']) {
  5. if (ubRouting::checkGet('number')) {
  6. $number = ubRouting::get('number');
  7. $pbxNum = new PBXNum();
  8. $pbxNum->setNumber($number);
  9. $pbxNum->renderReply();
  10. } else {
  11. die('ERROR: EMPTY NUMBER');
  12. }
  13. } else {
  14. die('ERROR: TELEPONY DISABLED');
  15. }
  16. }