This is the only difference between 2.5.1.8 and 2.6:
--- functions.inc.php 2008-11-08 19:24:14.000000000 +0100
+++ /usr/src/freepbx-mod-2.6/findmefollow/functions.inc.php 2009-08-24 06:46:26.000000000 +0200
@@ -315,6 +315,18 @@
// If the values are different then use what is in astdb as it may have been changed.
//
$changed=0;
+ if (!isset($results['pre_ring'])) {
+ $results['pre_ring'] = '';
+ }
+ if (!isset($results['grptime'])) {
+ $results['grptime'] = '';
+ }
+ if (!isset($results['grplist'])) {
+ $results['grplist'] = '';
+ }
+ if (!isset($results['needsconf'])) {
+ $results['needsconf'] = '';
+ }
if (($astdb_prering != $results['pre_ring']) && ($astdb_prering >= 0)) {
$results['pre_ring'] = $astdb_prering;
$changed=1;
@@ -467,7 +479,11 @@
$ext->add($id, $c, '', new ext_setvar('STATE', 'NOT_INUSE'));
$ext->add($id, $c, '', new ext_gosub('1', 'sstate', $id));
}
- $ext->add($id, $c, '', new ext_playback('followme&de-activated'));
+ if ($amp_conf['FCBEEPONLY']) {
+ $ext->add($id, $c, 'hook_off', new ext_playback('beep')); // $cmd,n,Playback(...)
+ } else {
+ $ext->add($id, $c, 'hook_off', new ext_playback('followme&de-activated'));
+ }
$ext->add($id, $c, 'end', new ext_macro('hangupcall'));
$ext->add($id, $c, 'activate', new ext_setvar('DB(AMPUSER/${AMPUSER}/followme/ddial)', 'DIRECT'));
@@ -475,7 +491,11 @@
$ext->add($id, $c, '', new ext_setvar('STATE', 'INUSE'));
$ext->add($id, $c, '', new ext_gosub('1', 'sstate', $id));
}
- $ext->add($id, $c, '', new ext_playback('followme&activated'));
+ if ($amp_conf['FCBEEPONLY']) {
+ $ext->add($id, $c, 'hook_on', new ext_playback('beep')); // $cmd,n,Playback(...)
+ } else {
+ $ext->add($id, $c, 'hook_on', new ext_playback('followme&activated'));
+ }
$ext->add($id, $c, '', new ext_macro('hangupcall'));
if ($amp_conf['USEDEVSTATE']) {