Changeset 4559

Show
Ignore:
Timestamp:
07/27/07 15:32:42 (1 year ago)
Author:
p_lindheimer
Message:

#2168 dialparties to set sip header from SIPADDHEADER channel var because 1.4 no longer supports that and SipAddHeader? does not survive inheritance which the dialplan requires

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.3/core/agi-bin/dialparties.agi

    r4401 r4559  
    8787$rgmethod       = get_var( $AGI, "RingGroupMethod" ); 
    8888 
    89 $alertinfo = get_var( $AGI, "ALERT_INFO"); 
     89$alertinfo = get_var( $AGI, "ALERT_INFO" ); 
    9090if ($alertinfo) { 
    9191        debug("Setting Alert-Info:  $alertinfo", 4); 
    9292        $AGI->set_alertinfo($alertinfo);                                                 
     93} 
     94 
     95$sippheader = get_var( $AGI, "SIPADDHEADER" ); 
     96if ($sippheader) { 
     97        $fields = explode(':',$sippheader,2); 
     98        debug("Setting sipheader ".$fields[0].": ".$fields[1], 4); 
     99        $AGI->exec_sipaddheader($fields[0], $fields[1]); 
    93100} 
    94101