[Amportal-users] NVBackgroundDetect

I’ve needed to use NVBackgroundDetect instead of NVFAXDetect - we put an outbound message warning callers to press START on their FAX machine instead of waiting for our side to generate FAX tones. Here’s what I added to FreePBX. It’s a hack because I continued to extend extension which doesn’t allow one to make variable the recording (incoming-fax) or the options (d):
class ext_nvbgdetect extends extension {
        function output() {
                return “NVBackgroundDetect(incoming-fax|d|”.$this->data.")";
admin/modules/core/functions.inc.php (line 174):
                                        if ($item[‘answer’] == “3”) { // CustomFaxDetect
                                                $ext->add($context, $exten, ‘’, new ext_answer(’’));
                                                $ext->add($context, $exten, ‘’, new ext_nvbgdetect($item[‘wait’]));
admin/modules/core/page.did.php (line 154):
                                        <option value=“3” <?php  echo ($answer == '3' ? 'SELECTED' : '')?>><?php echo _("CustomFax")?>
I hope this is helpful to anyone. A more robust implementation would add gui elements for “recording” and “options”.

Post generated using Mail2Forum (http://www.mail2forum.com)