Changeset 11289

Show
Ignore:
Timestamp:
02/03/11 10:00:02 (2 years ago)
Author:
p_lindheimer
Message:

closes #4790 adds sendprid/trustrpid to devices, un-tested so not publishing yet

Files:

Legend:

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

    r11288 r11289  
    39633963      array($account,'secret',$db->escapeSimple((isset($_REQUEST['secret']))?$_REQUEST['secret']:''),$flag++), 
    39643964      array($account,'canreinvite',$db->escapeSimple((isset($_REQUEST['canreinvite']))?$_REQUEST['canreinvite']:'no'),$flag++), 
     3965 
     3966      array($account,'trustrpid',$db->escapeSimple((isset($_REQUEST['trustrpid']))?$_REQUEST['trustrpid']:'no'),$flag++), 
     3967      array($account,'sendrpid',$db->escapeSimple((isset($_REQUEST['sendrpid']))?$_REQUEST['sendrpid']:'no'),$flag++), 
     3968 
    39653969      array($account,'context',$db->escapeSimple((isset($_REQUEST['context']))?$_REQUEST['context']:'from-internal'),$flag++), 
    39663970      array($account,'dtmfmode',$db->escapeSimple((isset($_REQUEST['dtmfmode']))?$_REQUEST['dtmfmode']:''),$flag++), 
     
    63856389 
    63866390    unset($select); 
     6391    $select[] = array('value' => 'no', 'text' => _('No')); 
     6392    $select[] = array('value' => 'yes', 'text' => _('Yes')); 
     6393    $tmparr['trustrpid'] = array('value' => 'no', 'select' => $select, 'level' => 1); 
     6394 
     6395    unset($select); 
     6396    $select[] = array('value' => 'no', 'text' => _('No')); 
     6397    $select[] = array('value' => 'yes', 'text' => _('Send Remote-Party-ID header')); 
     6398 
     6399    if (version_compare($amp_conf['ASTVERSION'],'1.8','ge')) { 
     6400      $select[] = array('value' => 'pai', 'text' => _('Send P-asserted-Identity header')); 
     6401    } 
     6402    $tmparr['sendrpid'] = array('value' => 'no', 'select' => $select, 'level' => 1); 
     6403 
     6404    $tmparr['context'] = array('value' => 'from-internal', 'level' => 1); 
     6405    $tmparr['host'] = array('value' => 'dynamic', 'level' => 1); 
     6406 
     6407    unset($select); 
    63876408    $select[] = array('value' => 'friend', 'text' => 'friend'); 
    63886409    $select[] = array('value' => 'peer', 'text' => 'peer');