Changeset 4040

Show
Ignore:
Timestamp:
06/09/07 13:58:16 (6 years ago)
Author:
p_lindheimer
Message:

make sure is always set to a valid value since feature codes depend on it being set to the real user, and not the masqueraded user

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/astetc/extensions.conf

    r4003 r4040  
    917917 
    918918;sets the callerid of the device to that of the logged in user 
     919; 
     920; ${AMPUSER} is set upon return to the real user despite any aliasing that may 
     921; have been set as a result of the AMPUSER/<nnn>/cidnum field. This is used by 
     922; features like DND, CF, etc. to set the proper structure on aliased instructions 
     923; 
    919924[macro-user-callerid] 
    920925exten => s,1,Noop(user-callerid: ${CALLERID(name)} ${CALLERID(number)}) 
     926 
     927; make sure AMPUSER is set if it doesn't get set below 
     928; 
     929exten => s,n,Set(AMPUSER=${IF($["foo${AMPUSER}" = "foo"]?${CALLERID(number)}:${AMPUSER})}) 
    921930exten => s,n,GotoIf($["${CHANNEL:0:5}" = "Local"]?report)  
    922931exten => s,n,GotoIf($["${REALCALLERIDNUM:1:2}" != ""]?start)