Outbound caller ID / caller ID passthrough

I am having an issue configuring my system to allow caller ID passthrough. I have already had our PSTN allow the passthrough on their end. My dialout context macro is the following in extensions.conf:

[macro-dialout]
exten => s,1,Macro(user-callerid,SKIPTTL)
exten => s,2,GotoIf($["${ECID${CALLERID(number)}}" = “”]?5) ;check for CID override for exten
exten => s,3,Set(CALLERID(all)=${ECID${CALLERID(number)}})
exten => s,4,Goto(7)
exten => s,5,GotoIf($["${OUTCID_${ARG1}}" = “”]?7) ;check for CID override for trunk
exten => s,6,Set(CALLERID(all)=${OUTCID_${ARG1}})
exten => s,7,Set(length=${LEN(${DIAL_OUT_${ARG1}})})
exten => s,8,Dial(${OUT_${ARG1}}/${ARG2:${length}})
exten => s,9,Playtones(congestion)
exten => s,10,Congestion(5)
exten => s,109,Macro(outisbusy)

And I have an extensions_additional.conf which provides the following:

OUT_2 = DAHDI/2
OUTPREFIX_2 =
OUTMAXCHANS_2 =
OUTCID_2 =
OUTKEEPCID_2 = off
OUTFAIL_2 =
OUTDISABLE_2 = off

It appears to me that I need to set “OUTKEEPCID” to “on” and it should work. Can anyone verify this?

1 Like