Show
Ignore:
Timestamp:
04/02/11 17:30:23 (2 years ago)
Author:
mickecarlsson
Message:

core, standardize on DAHDi

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.9/core/functions.inc.php

    r11942 r11956  
    27272727      $ext->add($context, $exten, '', new ext_macro('Hangupcall', 'dummy')); 
    27282728 
    2729       $ext->add($context, $exten, 'dahdiok', new ext_noop('Is a DAHDI Channel')); 
     2729      $ext->add($context, $exten, 'dahdiok', new ext_noop('Is a DAHDi Channel')); 
    27302730      $ext->add($context, $exten, '', new ext_set('CHAN', '${CHANNEL:6}')); 
    27312731      $ext->add($context, $exten, '', new ext_set('CHAN', '${CUT(CHAN,-,1)}')); 
     
    45574557  $result = $db->executeMultiple($compiled,$dahdifields); 
    45584558  if(DB::IsError($result)) { 
    4559     die_freepbx($result->getMessage()."<br><br>error adding to DAHDI table");  
     4559    die_freepbx($result->getMessage()."<br><br>error adding to DAHDi table");  
    45604560  } 
    45614561} 
     
    68836883    } 
    68846884    if (ast_with_dahdi()) { 
    6885       $currentcomponent->addoptlistitem('devicelist', 'dahdi_generic', _("Generic DAHDI Device")); 
     6885      $currentcomponent->addoptlistitem('devicelist', 'dahdi_generic', _("Generic DAHDi Device")); 
    68866886    } 
    68876887    $currentcomponent->addoptlistitem('devicelist', 'custom_custom', _("Other (Custom) Device")); 
     
    70217021      $section = _("Device Options"); 
    70227022 
    7023       $device_uses = sprintf(_("This device uses %s technology."),$devinfo_tech).(strtoupper($devinfo_tech) == 'ZAP' && ast_with_dahdi()?" ("._("Via DAHDI compatibility mode").")":""); 
     7023      $device_uses = sprintf(_("This device uses %s technology."),$devinfo_tech).(strtoupper($devinfo_tech) == 'ZAP' && ast_with_dahdi()?" ("._("Via DAHDi compatibility mode").")":""); 
    70247024      $currentcomponent->addguielem($section, new gui_label('techlabel', $device_uses),4); 
    70257025      $devopts = $currentcomponent->getgeneralarrayitem('devtechs', $devinfo_tech); 
  • modules/branches/2.9/core/page.trunks.php

    r11890 r11956  
    361361  $trunks[] = array('url'=> $baseURL.'tech=SIP', 'tlabel' =>  _("Add SIP Trunk")); 
    362362  if (ast_with_dahdi()) { 
    363     $trunks[] = array('url'=> $baseURL.'tech=DAHDI', 'tlabel' =>  _("Add DAHDI Trunk")); 
     363    $trunks[] = array('url'=> $baseURL.'tech=DAHDI', 'tlabel' =>  _("Add DAHDi Trunk")); 
    364364  } 
    365   $trunks[] = array('url'=> $baseURL.'tech=ZAP', 'tlabel' =>  _("Add Zap Trunk").(ast_with_dahdi()?" ("._("DAHDI compatibility mode").")":"" )); 
     365  $trunks[] = array('url'=> $baseURL.'tech=ZAP', 'tlabel' =>  _("Add Zap Trunk").(ast_with_dahdi()?" ("._("DAHDi compatibility mode").")":"" )); 
    366366  $trunks[] = array('url'=> $baseURL.'tech=IAX2', 'tlabel' =>  _("Add IAX2 Trunk")); 
    367367  //-------------------------------------------------------------------------------------- 
     
    423423      $trunk_name = ($upper_tech == 'ZAP'|$upper_tech == 'DAHDI'?sprintf(_('%s Channel %s'),$upper_tech,$channelid):$channelid); 
    424424    } 
    425     echo "<h2>".sprintf(_("Edit %s Trunk"),$upper_tech).($upper_tech == 'ZAP' && ast_with_dahdi()?" ("._("DAHDI compatibility Mode").")":"")."</h2>"; 
     425    echo "<h2>".sprintf(_("Edit %s Trunk"),$upper_tech).($upper_tech == 'ZAP' && ast_with_dahdi()?" ("._("DAHDi compatibility Mode").")":"")."</h2>"; 
    426426    $tlabel = sprintf(_("Delete Trunk %s"),substr($trunk_name,0,20)); 
    427427    $label = '<span><img width="16" height="16" border="0" title="'.$tlabel.'" alt="" src="images/core_delete.png"/>&nbsp;'.$tlabel.'</span>'; 
     
    475475   
    476476    $upper_tech = strtoupper($tech); 
    477     echo "<h2>".sprintf(_("Add %s Trunk"),$upper_tech).($upper_tech == 'ZAP' && ast_with_dahdi()?" ("._("DAHDI compatibility mode").")":"")."</h2>"; 
     477    echo "<h2>".sprintf(_("Add %s Trunk"),$upper_tech).($upper_tech == 'ZAP' && ast_with_dahdi()?" ("._("DAHDi compatibility mode").")":"")."</h2>"; 
    478478  }  
    479479  if (!isset($dialpattern_array)) { 
     
    659659          <a href=# class="info"><?php echo _("Dial Rules Wizards")?><span> 
    660660          <strong><?php echo _("Always dial with prefix")?></strong> <?php echo _("is useful for VoIP trunks, where if a number is dialed as \"5551234\", it can be converted to \"16135551234\".")?><br> 
    661           <strong><?php echo _("Remove prefix from local numbers")?></strong> <?php echo _("is useful for ZAP and DAHDI trunks, where if a local number is dialed as \"6135551234\", it can be converted to \"555-1234\".")?><br> 
     661          <strong><?php echo _("Remove prefix from local numbers")?></strong> <?php echo _("is useful for ZAP and DAHDi trunks, where if a local number is dialed as \"6135551234\", it can be converted to \"555-1234\".")?><br> 
    662662          <strong><?php echo _("Setup directory assistance")?></strong> <?php echo _("is useful to translate a call to directory assistance")?><br> 
    663663          <strong><?php echo _("Lookup numbers for local trunk")?></strong> <?php echo _("This looks up your local number on www.localcallingguide.com (NA-only), and sets up so you can dial either 7 or 10 digits (regardless of what your PSTN is) on a local trunk (where you have to dial 1+area code for long distance, but only 5551234 (7-digit dialing) or 6135551234 (10-digit dialing) for local calls")?><br> 
     
    842842        <tr> 
    843843          <td> 
    844             <a href=# class="info"><?php echo _("DAHDI Identifier")?><span><?php echo _("DAHDI channels are referenced either by a group number or channel number (which is defined in chan_dahdi.conf).  <br><br>The default setting is <b>g0</b> (group zero).")?></span></a>:  
     844            <a href=# class="info"><?php echo _("DAHDi Identifier")?><span><?php echo _("DAHDi channels are referenced either by a group number or channel number (which is defined in chan_dahdi.conf).  <br><br>The default setting is <b>g0</b> (group zero).")?></span></a>:  
    845845          </td><td> 
    846846            <input type="text" size="8" name="channelid" value="<?php echo htmlspecialchars($channelid) ?>" tabindex="<?php echo ++$tabindex;?>"/>