Changeset 5200
- Timestamp:
- 11/03/07 13:48:47 (6 years ago)
- Files:
-
- modules/branches/2.4/core/etc/extensions.conf (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.4/core/etc/extensions.conf
r5197 r5200 993 993 ; If this came through a ringgroup or CF, then we want to retain original CID unless 994 994 ; OUTKEEPCID_${trunknum} is set. 995 ; Save then CIDNAME while it is still intact in case we end up sending out this same CID 995 996 ; 996 997 exten => s,n,GotoIf($["${KEEPCID}" != "TRUE"]?normcid) ;Set to TRUE if coming from ringgroups, CF, etc. … … 998 999 exten => s,n,GotoIf($["foo${REALCALLERIDNUM}" = "foo"]?normcid) ;if not set to anything, go through normal processing 999 1000 exten => s,n,Set(USEROUTCID=${REALCALLERIDNUM}) 1001 exten => s,n,Set(REALCALLERIDNAME=${CALLERID(name)}) 1000 1002 1001 1003 ; 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 1002 1004 ; call (would be quite a conincidence if not) and go through the normal processing to get that CID. If a device 1003 1005 ; 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. 1004 1010 ; 1005 1011 exten => s,n,GotoIf($["foo${DB(AMPUSER/${REALCALLERIDNUM}/device)}" = "foo"]?bypass:normcid) … … 1016 1022 exten => s,n(usercid),GotoIf($["${USEROUTCID:1:2}" = ""]?report) ; check CID override for extension 1017 1023 exten => s,n,Set(CALLERID(all)=${USEROUTCID}) 1018 exten => s,n,GotoIf($["x${CALLERID(name)}"!="xhidden"]? report:hidecid) ; check CID blocking for extension1024 exten => s,n,GotoIf($["x${CALLERID(name)}"!="xhidden"]?checkname:hidecid) ; check CID blocking for extension 1019 1025 exten => s,n(hidecid),SetCallerPres(prohib_passed_screen) ; Only works with ISDN (T1/E1/BRI) 1026 exten => s,n(checkname),ExecIf($[ $[ "${CALLERID(number)}" = "${REALCALLERIDNUM}" ] & $[ "${CALLERID(name)}" = "" ] ],Set,CALLERID(name)=${REALCALLERIDNAME}) 1020 1027 exten => s,n(report),NoOp(CallerID set to ${CALLERID(all)}) 1021 1028
