Changeset 8256
- Timestamp:
- 08/31/09 14:38:16 (2 years ago)
- Files:
-
- modules/branches/2.6/core/functions.inc.php (modified) (3 diffs)
- modules/branches/2.6/core/module.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.6/core/functions.inc.php
r8221 r8256 2801 2801 //take care of sip/iax/zap config 2802 2802 $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 } 2803 2809 if(function_exists($funct)){ 2804 2810 $funct($id); … … 3058 3064 global $db; 3059 3065 global $currentFile; 3060 3066 3067 $flag = 2; 3061 3068 foreach ($_REQUEST as $req=>$data) { 3062 3069 if ( substr($req, 0, 8) == 'devinfo_' ) { 3063 3070 $keyword = substr($req, 8); 3064 3071 if ( $keyword == 'dial' && $data == '' ) { 3065 $iaxfields[] = array($account, $keyword, 'IAX2/'.$account );3072 $iaxfields[] = array($account, $keyword, 'IAX2/'.$account, $flag++); 3066 3073 } elseif ($keyword == 'mailbox' && $data == '') { 3067 $iaxfields[] = array($account,'mailbox',$account.'@device' );3074 $iaxfields[] = array($account,'mailbox',$account.'@device', $flag++); 3068 3075 } else { 3069 $iaxfields[] = array($account, $keyword, $data );3076 $iaxfields[] = array($account, $keyword, $data, $flag++); 3070 3077 } 3071 3078 } … … 3073 3080 3074 3081 if ( !is_array($iaxfields) ) { // left for compatibilty....lord knows why ! 3075 $flag = 2;3076 3082 $iaxfields = array( 3077 3083 array($account,'secret',$db->escapeSimple(($_REQUEST['secret'])?$_REQUEST['secret']:''),$flag++), modules/branches/2.6/core/module.xml
r8254 r8256 10 10 <canuninstall>no</canuninstall> 11 11 <changelog> 12 *2.6.0beta2.1* #3844 (revert #3423), #3846 12 *2.6.0beta2.1* #3844 (revert #3423), #3846, #3849 13 13 *2.6.0beta2.0* #3075, #3501, #3636, #3581, #3266, #3701, #3545, #3430, #3798, #3609, #3836 14 14 *2.6.0beta1.3* trunk tab improvements
