Singing Dwarf
New Member
- Joined
- Aug 21, 2015
- Messages
- 13
- Reaction score
- 0
I am trying to modify the Lenny Blacklist Mod v0.0.8 module kindly provided by lgaetz
What I would like to do is add the line
in order to put a physical limt of 3 minutes on any call sent to Lenny (due to the problem I have been experiencing with calls not being dropped by my Fritz!Box).
I have modified the module files, but when installed, Incredible PBX gui becomes non-responsive - no errors are displayed.
What I would like to do is add the line
Code:
exten => s,n,Set(TIMEOUT(absolute)=180)
I have modified the module files, but when installed, Incredible PBX gui becomes non-responsive - no errors are displayed.
PHP:
functions.inc.php
35d34
< $var4 = $db->escapeSimple($post['timeout']);
40c39
< if ($foo[0]['enable']!=$var1 || $foo[0]['record']!=$var2 || $foo[0]['destination']!=$var3 || $foo[0]['timeout']!=$var4) {
---
> if ($foo[0]['enable']!=$var1 || $foo[0]['record']!=$var2 || $foo[0]['destination']!=$var3) {
50d48
< timeout = '$var4'
72d69
< $ext->splice($context, $exten, "blacklisted", new ext_set('TIMEOUT(absolute)='$config[0]['timeout']);
77d73
< $ext->splice($context, $exten, "blacklisted", new ext_set('TIMEOUT(absolute)='$config[0]['timeout']);
291c287
< }
---
> }
PHP:
install.php
41,42c41
< destination VARCHAR(100) NOT NULL,
< timeout INT(10) NOT NULL
---
> destination VARCHAR(100) NOT NULL
50c49
< $sql = "INSERT INTO lenny (id, enable, record, destination, timeout) VALUES (1 , '', 'CHECKED', 'SIP/[email protected]:5060', 240)";
---
> $sql = "INSERT INTO lenny (id, enable, record, destination) VALUES (1 , '', 'CHECKED', 'SIP/[email protected]:5060')";
PHP:
page.lenny.php
82,86d81
<
< $html .= "</tr><tr>";
< $html .= "<td><a href='#' class='info'>Timeout<span>Maximum permitted duration of call, before call is terminated automatically</span></a></td>";
< $html .= "<td><input type='number' name='timeout' maxlength=10 value='".$lenconfig[0]['timeout']."' ></td>";
<