Changeset 1605

Show
Ignore:
Timestamp:
04/15/06 19:38:36 (7 years ago)
Author:
mheydon1973
Message:

Caller ID information was missing, changed to use the $request var that is passed into the AGI class by Asterisk when running the AGI

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/agi-bin/dialparties.agi.php

    r1457 r1605  
    6060debug( "priority is $priority" ); 
    6161 
    62 $callerid = get_var( $AGI, "callerid" ); 
     62// Caller ID info is stored in $request in AGI class, passed from Asterisk 
     63$cidnum = $AGI->request['agi_callerid']; 
     64$cidname = $AGI->request['agi_calleridname']; 
     65debug("Caller ID name is '$cidname' number is '$cidnum'", 1); 
     66/* 
    6367if (preg_match( $callerid, '/^\"(.*)\"\s+\<(\d+)-?(\d*)\>\s*$/', $matches))  
    6468{ 
     
    7983  debug("Caller ID is not set", 1); 
    8084} 
     85*/ 
    8186 
    8287$timer    = get_var( $AGI, "ARG1" );