Changeset 11956 for modules/branches
- Timestamp:
- 04/02/11 17:30:23 (2 years ago)
- Files:
-
- modules/branches/2.9/core/functions.inc.php (modified) (4 diffs)
- modules/branches/2.9/core/page.trunks.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.9/core/functions.inc.php
r11942 r11956 2727 2727 $ext->add($context, $exten, '', new ext_macro('Hangupcall', 'dummy')); 2728 2728 2729 $ext->add($context, $exten, 'dahdiok', new ext_noop('Is a DAHD IChannel'));2729 $ext->add($context, $exten, 'dahdiok', new ext_noop('Is a DAHDi Channel')); 2730 2730 $ext->add($context, $exten, '', new ext_set('CHAN', '${CHANNEL:6}')); 2731 2731 $ext->add($context, $exten, '', new ext_set('CHAN', '${CUT(CHAN,-,1)}')); … … 4557 4557 $result = $db->executeMultiple($compiled,$dahdifields); 4558 4558 if(DB::IsError($result)) { 4559 die_freepbx($result->getMessage()."<br><br>error adding to DAHD Itable");4559 die_freepbx($result->getMessage()."<br><br>error adding to DAHDi table"); 4560 4560 } 4561 4561 } … … 6883 6883 } 6884 6884 if (ast_with_dahdi()) { 6885 $currentcomponent->addoptlistitem('devicelist', 'dahdi_generic', _("Generic DAHD IDevice"));6885 $currentcomponent->addoptlistitem('devicelist', 'dahdi_generic', _("Generic DAHDi Device")); 6886 6886 } 6887 6887 $currentcomponent->addoptlistitem('devicelist', 'custom_custom', _("Other (Custom) Device")); … … 7021 7021 $section = _("Device Options"); 7022 7022 7023 $device_uses = sprintf(_("This device uses %s technology."),$devinfo_tech).(strtoupper($devinfo_tech) == 'ZAP' && ast_with_dahdi()?" ("._("Via DAHD Icompatibility mode").")":"");7023 $device_uses = sprintf(_("This device uses %s technology."),$devinfo_tech).(strtoupper($devinfo_tech) == 'ZAP' && ast_with_dahdi()?" ("._("Via DAHDi compatibility mode").")":""); 7024 7024 $currentcomponent->addguielem($section, new gui_label('techlabel', $device_uses),4); 7025 7025 $devopts = $currentcomponent->getgeneralarrayitem('devtechs', $devinfo_tech); modules/branches/2.9/core/page.trunks.php
r11890 r11956 361 361 $trunks[] = array('url'=> $baseURL.'tech=SIP', 'tlabel' => _("Add SIP Trunk")); 362 362 if (ast_with_dahdi()) { 363 $trunks[] = array('url'=> $baseURL.'tech=DAHDI', 'tlabel' => _("Add DAHD ITrunk"));363 $trunks[] = array('url'=> $baseURL.'tech=DAHDI', 'tlabel' => _("Add DAHDi Trunk")); 364 364 } 365 $trunks[] = array('url'=> $baseURL.'tech=ZAP', 'tlabel' => _("Add Zap Trunk").(ast_with_dahdi()?" ("._("DAHD Icompatibility mode").")":"" ));365 $trunks[] = array('url'=> $baseURL.'tech=ZAP', 'tlabel' => _("Add Zap Trunk").(ast_with_dahdi()?" ("._("DAHDi compatibility mode").")":"" )); 366 366 $trunks[] = array('url'=> $baseURL.'tech=IAX2', 'tlabel' => _("Add IAX2 Trunk")); 367 367 //-------------------------------------------------------------------------------------- … … 423 423 $trunk_name = ($upper_tech == 'ZAP'|$upper_tech == 'DAHDI'?sprintf(_('%s Channel %s'),$upper_tech,$channelid):$channelid); 424 424 } 425 echo "<h2>".sprintf(_("Edit %s Trunk"),$upper_tech).($upper_tech == 'ZAP' && ast_with_dahdi()?" ("._("DAHD Icompatibility Mode").")":"")."</h2>";425 echo "<h2>".sprintf(_("Edit %s Trunk"),$upper_tech).($upper_tech == 'ZAP' && ast_with_dahdi()?" ("._("DAHDi compatibility Mode").")":"")."</h2>"; 426 426 $tlabel = sprintf(_("Delete Trunk %s"),substr($trunk_name,0,20)); 427 427 $label = '<span><img width="16" height="16" border="0" title="'.$tlabel.'" alt="" src="images/core_delete.png"/> '.$tlabel.'</span>'; … … 475 475 476 476 $upper_tech = strtoupper($tech); 477 echo "<h2>".sprintf(_("Add %s Trunk"),$upper_tech).($upper_tech == 'ZAP' && ast_with_dahdi()?" ("._("DAHD Icompatibility mode").")":"")."</h2>";477 echo "<h2>".sprintf(_("Add %s Trunk"),$upper_tech).($upper_tech == 'ZAP' && ast_with_dahdi()?" ("._("DAHDi compatibility mode").")":"")."</h2>"; 478 478 } 479 479 if (!isset($dialpattern_array)) { … … 659 659 <a href=# class="info"><?php echo _("Dial Rules Wizards")?><span> 660 660 <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 DAHD Itrunks, 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> 662 662 <strong><?php echo _("Setup directory assistance")?></strong> <?php echo _("is useful to translate a call to directory assistance")?><br> 663 663 <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> … … 842 842 <tr> 843 843 <td> 844 <a href=# class="info"><?php echo _("DAHD I Identifier")?><span><?php echo _("DAHDIchannels 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>: 845 845 </td><td> 846 846 <input type="text" size="8" name="channelid" value="<?php echo htmlspecialchars($channelid) ?>" tabindex="<?php echo ++$tabindex;?>"/>
