root/freepbx/branches/2.3/upgrades/2.3.0rc1/tables.php
| Revision 4750, 381 bytes (checked in by p_lindheimer, 6 years ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | |
| 3 | // This will be used to put an optional wait in from-zaptel to handle lines with |
| 4 | // badly behaved CID |
| 5 | // |
| 6 | outn("Checking for Global var ZAPTEL_DELAY.."); |
| 7 | $nrows = $db->getOne("SELECT count(*) from globals where variable='ZAPTEL_DELAY'"); |
| 8 | if (!$nrows) { |
| 9 | $db->query("insert into globals values ('ZAPTEL_DELAY', '0')"); |
| 10 | out("Created"); |
| 11 | } else { |
| 12 | out("Already exists!"); |
| 13 | } |
| 14 | |
| 15 | ?> |
| 16 |
Note: See TracBrowser for help on using the browser.
