Changeset 7306
- Timestamp:
- 12/01/08 08:45:04 (1 year ago)
- Files:
-
- modules/branches/2.6/core/functions.inc.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.6/core/functions.inc.php
r7302 r7306 212 212 } 213 213 214 // Move all 'disallow=all' to the top to avoid errors214 // Move all 'disallow=all' and 'deny' to the top to avoid errors 215 215 // 216 216 $results2 = array(); … … 218 218 $options = explode("&", $element['data']); 219 219 foreach ($options as $option) { 220 if ( $element['keyword'] == 'disallow' && $option == 'all') {220 if (($element['keyword'] == 'disallow' && $option == 'all') | ($element['keyword'] == 'deny')) { 221 221 array_unshift($results2,array('keyword'=>$element['keyword'],'data'=>$option)); 222 222 } else { … … 2391 2391 array($account,'callgroup',(isset($_REQUEST['callgroup']))?$_REQUEST['callgroup']:''), 2392 2392 array($account,'pickupgroup',(isset($_REQUEST['pickupgroup']))?$_REQUEST['pickupgroup']:''), 2393 array($account,'deny',(isset($_REQUEST['deny']))?$_REQUEST['deny']:''), 2394 array($account,'permit',(isset($_REQUEST['permit']))?$_REQUEST['permit']:''), 2393 2395 array($account,'disallow',(isset($_REQUEST['disallow']))?$_REQUEST['disallow']:''), 2394 2396 array($account,'allow',(isset($_REQUEST['allow']))?$_REQUEST['allow']:'') … … 2467 2469 array($account,'port',($_REQUEST['port'])?$_REQUEST['port']:'4569'), 2468 2470 array($account,'qualify',($_REQUEST['qualify'])?$_REQUEST['qualify']:'yes'), 2471 array($account,'deny',(isset($_REQUEST['deny']))?$_REQUEST['deny']:''), 2472 array($account,'permit',(isset($_REQUEST['permit']))?$_REQUEST['permit']:''), 2469 2473 array($account,'disallow',($_REQUEST['disallow'])?$_REQUEST['disallow']:''), 2470 2474 array($account,'allow',($_REQUEST['allow'])?$_REQUEST['allow']:''), … … 4613 4617 $tmparr['accountcode'] = array('value' => '', 'level' => 1); 4614 4618 $tmparr['mailbox'] = array('value' => '', 'level' => 1); 4619 $tmparr['deny'] = array('value' => '', 'level' => 1); 4620 $tmparr['permit'] = array('value' => '', 'level' => 1); 4615 4621 $currentcomponent->addgeneralarrayitem('devtechs', 'iax2', $tmparr); 4616 4622 unset($tmparr); … … 4634 4640 $tmparr['accountcode'] = array('value' => '', 'level' => 1); 4635 4641 $tmparr['mailbox'] = array('value' => '', 'level' => 1); 4642 $tmparr['deny'] = array('value' => '', 'level' => 1); 4643 $tmparr['permit'] = array('value' => '', 'level' => 1); 4636 4644 $currentcomponent->addgeneralarrayitem('devtechs', 'sip', $tmparr); 4637 4645 unset($tmparr);
