Changeset 8256

Show
Ignore:
Timestamp:
08/31/09 15:38:16 (4 years ago)
Author:
p_lindheimer
Message:

fixes #3849 iax extension updates failing, also removes bogus field device_secret_origional from being instered in iax or sip extensions

Files:

Legend:

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

    r8221 r8256  
    28012801  //take care of sip/iax/zap config 
    28022802  $funct = "core_devices_add".strtolower($tech); 
     2803   
     2804  // before calling device specifc funcitions, get rid of any bogus fields in the REQUEST array 
     2805  // 
     2806  if (isset($_REQUEST['devinfo_secret_origional'])) { 
     2807    unset($_REQUEST['devinfo_secret_origional']); 
     2808  } 
    28032809  if(function_exists($funct)){ 
    28042810    $funct($id); 
     
    30583064  global $db; 
    30593065  global $currentFile; 
    3060    
     3066 
     3067  $flag = 2; 
    30613068  foreach ($_REQUEST as $req=>$data) { 
    30623069    if ( substr($req, 0, 8) == 'devinfo_' ) { 
    30633070      $keyword = substr($req, 8); 
    30643071      if ( $keyword == 'dial' && $data == '' ) { 
    3065         $iaxfields[] = array($account, $keyword, 'IAX2/'.$account); 
     3072        $iaxfields[] = array($account, $keyword, 'IAX2/'.$account, $flag++); 
    30663073      } elseif ($keyword == 'mailbox' && $data == '') { 
    3067         $iaxfields[] = array($account,'mailbox',$account.'@device'); 
     3074        $iaxfields[] = array($account,'mailbox',$account.'@device', $flag++); 
    30683075      } else { 
    3069         $iaxfields[] = array($account, $keyword, $data); 
     3076        $iaxfields[] = array($account, $keyword, $data, $flag++); 
    30703077      } 
    30713078    } 
     
    30733080   
    30743081  if ( !is_array($iaxfields) ) { // left for compatibilty....lord knows why ! 
    3075     $flag = 2; 
    30763082    $iaxfields = array( 
    30773083      array($account,'secret',$db->escapeSimple(($_REQUEST['secret'])?$_REQUEST['secret']:''),$flag++), 
  • modules/branches/2.6/core/module.xml

    r8254 r8256  
    1010  <canuninstall>no</canuninstall> 
    1111  <changelog> 
    12     *2.6.0beta2.1* #3844 (revert #3423), #3846  
     12    *2.6.0beta2.1* #3844 (revert #3423), #3846, #3849 
    1313    *2.6.0beta2.0* #3075, #3501, #3636, #3581, #3266, #3701, #3545, #3430, #3798, #3609, #3836 
    1414    *2.6.0beta1.3* trunk tab improvements