Skip to content

Commit

Permalink
Remove send notify since now is CTI to call the notify using REST API
Browse files Browse the repository at this point in the history
  • Loading branch information
Stell0 committed Jul 13, 2023
1 parent 20370e0 commit 3a5fb3a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 51 deletions.
34 changes: 0 additions & 34 deletions agi-bin/send_notify.php

This file was deleted.

17 changes: 0 additions & 17 deletions functions.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,23 +86,6 @@ function nethcti3_get_config($engine) {
}
}
}
/* Add phone reload SIP NOTIFY */
if (isset($core_conf) && (method_exists($core_conf, 'addSipNotify'))) {
$core_conf->addSipNotify('generic-reload', array('Event' => 'check-sync\;reboot=false', 'Content-Length' => '0'));
if (!empty($codes['dnd_on'])) {
$exten=$codes['dnd_on'];
$ext->splice('app-dnd-on', $codes['dnd_on'], "hook_1", new ext_agi('send_notify.php,${AMPUSER}'),'notify',1);
}
if (!empty($codes['dnd_off'])) {
$exten=$codes['dnd_off'];
$ext->splice('app-dnd-off', $codes['dnd_off'], "hook_1", new ext_agi('send_notify.php,${AMPUSER}'),'notify',1);
}
if (!empty($codes['dnd_toggle'])) {
$exten=$codes['dnd_toggle'];
$ext->splice('app-dnd-toggle', $codes['dnd_toggle'], "hook_on", new ext_agi('send_notify.php,${AMPUSER}'),'notify',1);
$ext->splice('app-dnd-toggle', $codes['dnd_toggle'], "hook_off", new ext_agi('send_notify.php,${AMPUSER}'),'notify',1);
}
}
break;
}
}
Expand Down

0 comments on commit 3a5fb3a

Please sign in to comment.