I have a custom setup for my trunks - so I can dial like the following…
1402255444412345
Where 12345 is the account number…
[outrt-1] ; OUTBOUNDROUTE
include => outrt-1-custom
exten => _1NXXNXXXXXX.,1,Macro(user-callerid,LIMIT,)
exten => _1NXXNXXXXXX.,n,Set(CDR(accountcode)=${EXTEN:11:10}${CDR(accountcode)})
exten => _1NXXNXXXXXX.,n,Set(CDR(userfield)=${EXTEN:1:10}${CDR(userfield)})
exten => _1NXXNXXXXXX.,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => _1NXXNXXXXXX.,n,ExecIf($["${KEEPCID}"!=“TRUE” & ${LEN(${DB(AMPUSER/${AMPUSER}/outboundcid)})}=0 & ${LEN(${TRUNKCIDOVERRIDE})}=0]?Set(TRUNKCIDOVERRIDE=1))
exten => _1NXXNXXXXXX.,n,Set(_NODEST=)
exten => _1NXXNXXXXXX.,n,Gosub(sub-record-check,s,1(out,${EXTEN},))
exten => _1NXXNXXXXXX.,n,Macro(dialout-trunk,2,${EXTEN:1:10},)
exten => _1NXXNXXXXXX.,n,Macro(outisbusy,)
What my issue is is this. When I do a blind transfer or attended transfer using ##, it always sends the caller ID that I have assigned at the extension level.
I tried messing with trustrpid and sendrpid on the extensions, but to no avail.
Is there a way I can modify my settings above to send caller ID like normal on regular calls, but with transfers ONLY I pass the number I called, or the account number which I have in ${CDR(userfield)} would be ideal!
Jeremy