Request - Ability to turn off CallerID Name on PRI

One of our PRI carriers changed their switches and some calls started failing. They setup tests and couldn’t reproduce the problem. An analysis of the differences showed we were sending names and numbers, their equipment only sent numbers. They would pass through the name and the remote phone company would later reject the call. I wanted to turn off the name part of the caller ID for the trunks that were affected. This was very easy on the straight asterisk configuration we were running at the time.

We are now setting up a new system (in a limited test) using PBX in a Flash, and I immediately ran into this problem again.

I have created an override for the set caller ID function to do the same. It feels a bit cludgy (having the trunk number hard coded), but gets the job done.

We have been using a very long caller ID macro and will probably keep this as an override for other reasons, but I felt this was a good feature request since this part of our environment can’t possibly bee unique.

[email protected]:/etc/asterisk $ cat extensions_override_freepbx.conf
[macro-outbound-callerid]
include => macro-outbound-callerid-custom
exten => s,1,ExecIf($["${CALLINGPRES_SV}" != “”]?Set(CALLERPRES()=${CALLINGPRES_SV}))
exten => s,n,ExecIf($["${REALCALLERIDNUM:1:2}" = “”]?Set(REALCALLERIDNUM=${CALLERID(number)}))
exten => s,n(start),GotoIf($[ $["${REALCALLERIDNUM}" = “”] | $["${KEEPCID}" != “TRUE”] | $["${OUTKEEPCID_${ARG1}}" = “on”] ]?normcid)
exten => s,n,Set(USEROUTCID=${REALCALLERIDNUM})
exten => s,n,GotoIf($[“foo${DB(AMPUSER/${REALCALLERIDNUM}/device)}” = “foo”]?bypass)
exten => s,n(normcid),Set(USEROUTCID=${DB(AMPUSER/${AMPUSER}/outboundcid)})
exten => s,n(bypass),Set(EMERGENCYCID=${DB(DEVICE/${REALCALLERIDNUM}/emergency_cid)})
exten => s,n,Set(TRUNKOUTCID=${OUTCID_${ARG1}})
exten => s,n,GotoIf($[ $["${EMERGENCYROUTE:1:2}" = “”] | $["${EMERGENCYCID:1:2}" = “”] ]?trunkcid)
exten => s,n,Set(CALLERID(all)=${EMERGENCYCID})
exten => s,n(exit),MacroExit()
exten => s,n(trunkcid),ExecIf($["${TRUNKOUTCID:1:2}" != “”]?Set(CALLERID(all)=${TRUNKOUTCID}))
exten => s,n(usercid),ExecIf($["${USEROUTCID:1:2}" != “”]?Set(CALLERID(all)=${USEROUTCID}))
exten => s,n,ExecIf($["${DIAL_TRUNK}" == “1”]?Set(CALLERID(name)=""))
exten => s,n(hidecid),ExecIf($["${CALLERID(name)}"=“hidden”]?Set(CALLERPRES()=prohib_passed_screen))

; end of [macro-outbound-callerid]

Feature requests should be posted using the ticket system: http://www.freepbx.org/trac/newticket