Changeset 3643
- Timestamp:
- 01/24/07 23:14:53 (2 years ago)
- Files:
-
- freepbx/branches/2.2 (modified) (1 prop)
- freepbx/branches/2.2/amp_conf/astetc/extensions.conf (modified) (6 diffs)
- freepbx/branches/2.2/amp_conf/bin/retrieve_op_conf_from_mysql.pl (modified) (1 diff)
- freepbx/branches/2.2/amp_conf/htdocs/admin/common/mainstyle.css (modified) (1 diff)
- freepbx/branches/2.2/amp_conf/htdocs/admin/modules/core/functions.inc.php (modified) (2 diffs)
- freepbx/branches/2.2/amp_conf/htdocs/admin/modules/core/page.routing.php (modified) (2 diffs)
- freepbx/branches/2.2/amp_conf/htdocs/admin/modules/core/page.trunks.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.2
- Property svnmerge-integrated changed from /freepbx/trunk:1-3224,3231,3245-3246,3291-3295,3297,3299-3332,3336,3338-3365,3367-3373,3375-3388,3390-3391,3393-3395,3419,3567,3624 to /freepbx/trunk:1-3224,3231,3245-3246,3291-3295,3297,3299-3332,3336,3338-3365,3367-3373,3375-3388,3390-3391,3393-3395,3419,3567,3614-3622,3624
freepbx/branches/2.2/amp_conf/astetc/extensions.conf
r3585 r3643 97 97 exten => s,n,Set(EXTTOCALL=${ARG2}) 98 98 exten => s,n,Set(CFUEXT=${DB(CFU/${EXTTOCALL})}) 99 exten => s,n,Set(CFBEXT=${DB(CFB/${EXTTOCALL})}) 99 100 exten => s,n,Set(RT=${IF($[$["${VMBOX}"!="novm"] | $["foo${CFUEXT}"!="foo"]]?${RINGTIMER}:"")}) 100 101 exten => s,n,Macro(record-enable,${EXTTOCALL},IN) … … 102 103 exten => s,n,Macro(dial,${RT},${DIAL_OPTIONS},${EXTTOCALL}) 103 104 exten => s,n,GosubIf($[$["${DIALSTATUS}"="NOANSWER"] & $["foo${CFUEXT}"!="foo"]]?docfu,1) ; check for CFU in use on no answer 105 exten => s,n,GosubIf($[$["${DIALSTATUS}"="BUSY"] & $["foo${CFBEXT}"!="foo"]]?docfb,1) ; check for CFB in use on busy 104 106 exten => s,n,NoOp(Voicemail is '${VMBOX}') 105 107 exten => s,n,GotoIf($["${VMBOX}" = "novm"]?s-${DIALSTATUS},1) ; no voicemail in use for this extension … … 111 113 exten => docfu,n,Dial(Local/${CFUEXT}@from-internal/n,${RTCFU},${DIAL_OPTIONS}) 112 114 exten => docfu,n,Return 115 116 ; Try the Call Forward on Busy number 117 exten => docfb,1,Set(RTCFB=${IF($["${VMBOX}"!="novm"]?${RINGTIMER}:"")}) 118 exten => docfb,n,Dial(Local/${CFBEXT}@from-internal/n,${RTCFB},${DIAL_OPTIONS}) 119 exten => docfb,n,Return 113 120 114 121 ; Extensions with no Voicemail box reporting BUSY come here … … 197 204 exten => s,n,Set(RT=${ARG2}) 198 205 exten => s,n,Set(CFUEXT=${DB(CFU/${EXTTOCALL})}) 206 exten => s,n,Set(CFBEXT=${DB(CFB/${EXTTOCALL})}) 199 207 exten => s,n,Macro(record-enable,${EXTTOCALL},IN) 200 208 … … 206 214 ; 207 215 exten => s,n,GosubIf($[$["${DIALSTATUS}"="NOANSWER"] & $["foo${CFUEXT}"!="foo"]]?docfu,1) ; check for CFU in use on no answer 216 exten => s,n,GosubIf($[$["${DIALSTATUS}"="BUSY"] & $["foo${CFBEXT}"!="foo"]]?docfb,1) ; check for CFB in use on busy 208 217 209 218 ; Nothing yet, then go to the end (which will just return, but in case we decide to do something with certain … … 226 235 exten => docfu,n(chlocal),Dial(Local/${CFUEXT}@from-internal/n,${RT},${DIAL_OPTIONS}) 227 236 exten => docfu,n,Return 237 238 ; Try the Call Forward on Busy number 239 exten => docfb,1,GotoIf( $[ "foo${DB(AMPUSER/${CFBEXT}/device)}" = "foo" ]?chlocal) 240 exten => docfb,n,Dial(Local/${CFBEXT}@ext-local,${RT},${DIAL_OPTIONS}) 241 exten => docfb,n,Return 242 exten => docfb,n(chlocal),Dial(Local/${CFBEXT}@from-internal/n,${RT},${DIAL_OPTIONS}) 243 exten => docfb,n,Return 228 244 229 245 ; In all cases of no connection, come here and simply return, since the calling dialplan will freepbx/branches/2.2/amp_conf/bin/retrieve_op_conf_from_mysql.pl
r3482 r3643 221 221 foreach $table ("sip","iax") { 222 222 if (table_exists($dbh,$table)) { 223 $statement = "SELECT data,id,'$table' from $table where keyword='account' and flags <> 1 and id>9999 group by data order by id";223 $statement = "SELECT data,id,'$table' from $table where keyword='account' and flags <> 1 and id>99990 group by data order by id"; 224 224 $result = $dbh->selectall_arrayref($statement); 225 225 @resultSet = @{$result}; freepbx/branches/2.2/amp_conf/htdocs/admin/common/mainstyle.css
r3532 r3643 282 282 /* make it scroll */ 283 283 max-height:35em; 284 max-width:275px; 284 285 overflow:auto; 285 286 } freepbx/branches/2.2/amp_conf/htdocs/admin/modules/core/functions.inc.php
r3584 r3643 1550 1550 1551 1551 if(strpos($results[0][0],"AMP:") === 0) { //custom trunks begin with AMP: 1552 $tname = ltrim($results[0][0],"AMP:");1552 $tname = substr($results[0][0],4); 1553 1553 } else { 1554 1554 strtok($results[0][0],'/'); … … 2597 2597 2598 2598 $section = 'Device Options'; 2599 $currentcomponent->addguielem($section, new gui_label('techlabel', sprintf(_("This device uses %s technology."),$devinfo_tech)),4); 2599 2600 $devopts = $currentcomponent->getgeneralarrayitem('devtechs', $devinfo_tech); 2600 2601 foreach ($devopts as $devopt=>$devoptarr) { freepbx/branches/2.2/amp_conf/htdocs/admin/modules/core/page.routing.php
r3496 r3643 487 487 <?php 488 488 foreach ($trunks as $name=>$display) { 489 echo "<option id=\"trunk".$key."\" value=\"".$name."\" ".($name == $trunk ? "selected" : "").">". $display."</option>";489 echo "<option id=\"trunk".$key."\" value=\"".$name."\" ".($name == $trunk ? "selected" : "").">".(strpos($display,'AMP:')===0 ? substr($display,4) : $display)."</option>"; 490 490 } 491 491 ?> … … 527 527 <?php 528 528 foreach ($trunks as $name=>$display) { 529 echo "<option value=\"".$name."\">". ltrim($display,"AMP:")."</option>";529 echo "<option value=\"".$name."\">".(strpos($display,'AMP:')===0 ? substr($display,4) : $display)."</option>"; 530 530 } 531 531 ?> freepbx/branches/2.2/amp_conf/htdocs/admin/modules/core/page.trunks.php
r3631 r3643 184 184 185 185 foreach ($tresults as $tresult) { 186 echo "\t<li><a ".($extdisplay==$tresult[0] ? 'class="current"':'')." href=\"config.php?display=".urlencode($display)."&extdisplay=".urlencode($tresult[0])."\" title=\"".urlencode($tresult[1])."\">"._("Trunk")." ". substr(ltrim($tresult[1],"AMP:"),0,15)."</a></li>\n";186 echo "\t<li><a ".($extdisplay==$tresult[0] ? 'class="current"':'')." href=\"config.php?display=".urlencode($display)."&extdisplay=".urlencode($tresult[0])."\" title=\"".urlencode($tresult[1])."\">"._("Trunk")." ".(strpos($tresult[1],'AMP:')===0 ? substr($tresult[1],4,15) : substr($tresult[1],0,15))."</a></li>\n"; 187 187 } 188 188
