Changeset 5200

Show
Ignore:
Timestamp:
11/03/07 13:48:47 (6 years ago)
Author:
p_lindheimer
Message:

#2191 transmit original cidname as well as number on CF, followme and similar

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.4/core/etc/extensions.conf

    r5197 r5200  
    993993; If this came through a ringgroup or CF, then we want to retain original CID unless 
    994994; OUTKEEPCID_${trunknum} is set. 
     995; Save then CIDNAME while it is still intact in case we end up sending out this same CID 
    995996; 
    996997exten => s,n,GotoIf($["${KEEPCID}" != "TRUE"]?normcid) ;Set to TRUE if coming from ringgroups, CF, etc. 
     
    998999exten => s,n,GotoIf($["foo${REALCALLERIDNUM}" = "foo"]?normcid) ;if not set to anything, go through normal processing 
    9991000exten => s,n,Set(USEROUTCID=${REALCALLERIDNUM}) 
     1001exten => s,n,Set(REALCALLERIDNAME=${CALLERID(name)}) 
    10001002 
    10011003; We now have to make sure the CID is valid. If we find an AMPUSER with the same CID, we assume it is an internal  
    10021004; call (would be quite a conincidence if not) and go through the normal processing to get that CID. If a device  
    10031005; is set for this CID, then it must be internal  
     1006; If we end up using USEROUTCID at the end, it may still be the REALCALLERIDNUM we saved above. That is determined 
     1007; if the two are equal, AND there is no CALLERID(name) present since it has been removed by the CALLERID(all)=${USEROUTCID} 
     1008; setting. If this is the case, then we put the orignal name back in to send out. Although the CNAME is not honored by most 
     1009; carriers, there are cases where it is so this preserves that information to be used by those carriers who do honor it. 
    10041010;  
    10051011exten => s,n,GotoIf($["foo${DB(AMPUSER/${REALCALLERIDNUM}/device)}" = "foo"]?bypass:normcid)  
     
    10161022exten => s,n(usercid),GotoIf($["${USEROUTCID:1:2}" = ""]?report) ; check CID override for extension 
    10171023exten => s,n,Set(CALLERID(all)=${USEROUTCID}) 
    1018 exten => s,n,GotoIf($["x${CALLERID(name)}"!="xhidden"]?report:hidecid) ; check CID blocking for extension 
     1024exten => s,n,GotoIf($["x${CALLERID(name)}"!="xhidden"]?checkname:hidecid) ; check CID blocking for extension 
    10191025exten => s,n(hidecid),SetCallerPres(prohib_passed_screen) ; Only works with ISDN (T1/E1/BRI) 
     1026exten => s,n(checkname),ExecIf($[ $[ "${CALLERID(number)}" = "${REALCALLERIDNUM}" ] & $[ "${CALLERID(name)}" = "" ] ],Set,CALLERID(name)=${REALCALLERIDNAME}) 
    10201027exten => s,n(report),NoOp(CallerID set to ${CALLERID(all)}) 
    10211028