Changeset 8700

Show
Ignore:
Timestamp:
01/28/10 02:28:31 (3 years ago)
Author:
p_lindheimer
Message:

fixes #3923 add fax exten to ivr and annoucement from fax module, remove from ivr re #4007

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.7/fax/functions.inc.php

    r8693 r8700  
    198198    $ext->add('ext-did-0001', 'fax', '', new ext_goto('${FAX_DEST}')); 
    199199    $ext->add('ext-did-0002', 'fax', '', new ext_goto('${FAX_DEST}')); 
     200 
     201    // Add fax extension to ivr and announcement as inbound controle may be passed quickly to them and still detection is desired 
     202    if (function_exists('ivr_list')) { 
     203      $ivrlist = ivr_list(); 
     204      if(is_array($ivrlist)) foreach($ivrlist as $item) { 
     205        $ext->add("ivr-".$item['ivr_id'], 'fax', '', new ext_goto('${FAX_DEST}')); 
     206      } 
     207    } 
     208    if (function_exists('announcement_list')) foreach (announcement_list() as $row) { 
     209      $ext->add('app-announcement-'.$row['announcement_id'], 'fax', '', new ext_goto('${FAX_DEST}')); 
     210    } 
     211 
    200212    //write out res_fax.conf and res_fax_digium.conf 
    201213    fax_write_conf(); 
     
    204216    $context='ext-fax-legacy'; 
    205217    $exten = 's'; 
     218    $ext->add($context, $exten, '', new ext_macro('user-callerid')); // $cmd,n,Macro(user-callerid) 
    206219    $ext->add($context, $exten, '', new ext_noop('Receiving Fax for: ${FAX_RX_EMAIL} , From: ${CALLERID(all)}')); 
    207220    if ($fax['module'] == 'spandsp') { 
  • modules/branches/2.7/ivr/functions.inc.php

    r8100 r8700  
    314314            $ext->add($id, 'return', '', new ext_goto($id.',s,begin')); 
    315315          } 
    316           $ext->add($id, 'fax', '', new ext_goto('ext-fax,in_fax,1')); 
    317316        } 
    318317      }