Yes, that was a typo… Sorry…
The feature was working… It isn’t now. The phone displays the caller ID NAME (not number), without the prefix. Here is the asterisk output:
-- Accepting call from '6168934381' to '6163288375' on channel 0/1, span 1
-- Executing Set("Zap/1-1", "DID=6163288375") in new stack
-- Executing Goto("Zap/1-1", "s|1") in new stack
-- Goto (from-zaptel,s,1)
-- Executing NoOp("Zap/1-1", "Entering from-zaptel with DID == 6163288375") in new stack
-- Executing Ringing("Zap/1-1", "") in new stack
-- Executing Set("Zap/1-1", "DID=6163288375") in new stack
-- Executing NoOp("Zap/1-1", "DID is now 6163288375") in new stack
-- Executing GotoIf("Zap/1-1", "1?zapok:notzap") in new stack
-- Goto (from-zaptel,s,8)
-- Executing NoOp("Zap/1-1", "Is a Zaptel Channel") in new stack
-- Executing Set("Zap/1-1", "CHAN=1-1") in new stack
-- Executing Set("Zap/1-1", "CHAN=1") in new stack
-- Executing Macro("Zap/1-1", "from-zaptel-1|6163288375|1") in new stack
Jun 15 09:14:32 WARNING[20757]: app_macro.c:210 macro_exec: No such context ‘macro-from-zaptel-1’ for macro ‘from-zaptel-1’
– Executing NoOp(“Zap/1-1”, “Returned from Macro from-zaptel-1”) in new stack
– Executing Goto(“Zap/1-1”, “from-pstn|6163288375|1”) in new stack
– Goto (from-pstn,6163288375,1)
– Executing Set(“Zap/1-1”, “FROM_DID=6163288375”) in new stack
– Executing Gosub(“Zap/1-1”, “app-blacklist-check|s|1”) in new stack
– Executing LookupBlacklist(“Zap/1-1”, “”) in new stack
– Executing GotoIf(“Zap/1-1”, “0?blacklisted”) in new stack
– Executing Return(“Zap/1-1”, “”) in new stack
– Executing Goto(“Zap/1-1”, “ext-queues|598|1”) in new stack
– Goto (ext-queues,598,1)
– Executing Answer(“Zap/1-1”, “”) in new stack
– Executing Set(“Zap/1-1”, “__BLKVM_OVERRIDE=BLKVM/598/Zap/1-1”) in new stack
– Executing Set(“Zap/1-1”, “__BLKVM_BASE=598”) in new stack
– Executing Set(“Zap/1-1”, “DB(BLKVM/598/Zap/1-1)=TRUE”) in new stack
– Executing Set(“Zap/1-1”, “_DIAL_OPTIONS=trM(auto-blkvm)”) in new stack
– Executing Set(“Zap/1-1”, “__NODEST=598”) in new stack
– Executing GotoIf(“Zap/1-1”, “0?USERCID:SETCID”) in new stack
– Goto (ext-queues,598,9)
– Executing Set(“Zap/1-1”, “CALLERID(name)=TEST:”) in new stack
– Executing Set(“Zap/1-1”, “MONITOR_FILENAME=/var/spool/asterisk/monitor/q598-20070615-091432-1181913272.4617”) in new stack
– Executing Playback(“Zap/1-1”, “custom/ESS-Q”) in new stack
– Playing ‘custom/ESS-Q’ (language ‘en’)
– Executing Queue(“Zap/1-1”, “598|t|||120”) in new stack
– Started music on hold, class ‘default’, on Zap/1-1
– Called Local/1108@from-internal/n
– Executing Macro(“Local/1108@from-internal-74f0,2”, “exten-vm|1108|1108”) in new stack
– Executing Macro(“Local/1108@from-internal-74f0,2”, “user-callerid”) in new stack
– Executing NoOp(“Local/1108@from-internal-74f0,2”, “user-callerid: Cell Phone MI 6168934381”) in new stack
– Executing GotoIf(“Local/1108@from-internal-74f0,2”, “1?report”) in new stack
– Goto (macro-user-callerid,s,11)
– Executing NoOp(“Local/1108@from-internal-74f0,2”, “TTL: ARG1: 1108”) in new stack
– Executing GotoIf(“Local/1108@from-internal-74f0,2”, “0?continue”) in new stack
– Executing Set(“Local/1108@from-internal-74f0,2”, “_TTL=64”) in new stack
– Executing GotoIf(“Local/1108@from-internal-74f0,2”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,21)
– Executing NoOp(“Local/1108@from-internal-74f0,2”, “Using CallerID “Cell Phone MI” <6168934381>”) in new stack
– Executing Set(“Local/1108@from-internal-74f0,2”, “FROMCONTEXT=exten-vm”) in new stack
– Executing Set(“Local/1108@from-internal-74f0,2”, “VMBOX=1108”) in new stack
– Executing Set(“Local/1108@from-internal-74f0,2”, “EXTTOCALL=1108”) in new stack
– Executing Set(“Local/1108@from-internal-74f0,2”, “CFUEXT=”) in new stack
– Executing Set(“Local/1108@from-internal-74f0,2”, “CFBEXT=”) in new stack
– Executing Set(“Local/1108@from-internal-74f0,2”, “RT=15”) in new stack
– Executing Macro(“Local/1108@from-internal-74f0,2”, “record-enable|1108|IN”) in new stack
– Executing GotoIf(“Local/1108@from-internal-74f0,2”, “0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing DeadAGI(“Local/1108@from-internal-74f0,2”, “recordingcheck|20070615-091436|1181913276.4619”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20070615-091436|1181913276.4619: Inbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing NoOp(“Local/1108@from-internal-74f0,2”, “No recording needed”) in new stack
– Executing Macro(“Local/1108@from-internal-74f0,2”, “dial|15|trM(auto-blkvm)|1108”) in new stack
– Executing DeadAGI(“Local/1108@from-internal-74f0,2”, “dialparties.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
dialparties.agi: priority is 1
dialparties.agi: Caller ID name is ‘Cell Phone MI’ number is '6168934381’
dialparties.agi: Methodology of ring is ‘none’
> dialparties.agi: USE_CONFIRMATION: ‘FALSE’
> dialparties.agi: RINGGROUP_INDEX: ‘’
– dialparties.agi: Added extension 1108 to extension map
– dialparties.agi: Extension 1108 cf is disabled
– dialparties.agi: Extension 1108 do not disturb is disabled
> dialparties.agi: extnum: 1108
> dialparties.agi: exthascw: 1
> dialparties.agi: exthascfb: 0
> dialparties.agi: extcfb:
> dialparties.agi: exthascfu: 0
> dialparties.agi: extcfu:
– dialparties.agi: dbset CALLTRACE/1108 to 6168934381
> dialparties.agi: NODEST: 598 blkvm enabled macro already in dialopts: trM(auto-blkvm)
– AGI Script dialparties.agi completed, returning 0
– Executing Dial(“Local/1108@from-internal-74f0,2”, “SIP/1108|15|trM(auto-blkvm)”) in new stack
– Called 1108
– Local/1108@from-internal-74f0,1 is ringing
– SIP/1108-09980b20 is ringing
– Hungup ‘Zap/27-1’
== Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on ‘SIP/1105-b771ce58’ in macro ‘dialout-trunk’
== Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on ‘SIP/1105-b771ce58’
– Executing Macro(“SIP/1105-b771ce58”, “hangupcall”) in new stack
– Executing ResetCDR(“SIP/1105-b771ce58”, “w”) in new stack
– Executing NoCDR(“SIP/1105-b771ce58”, “”) in new stack
Jun 15 09:14:37 NOTICE[20745]: cdr.c:443 ast_cdr_free: CDR on channel ‘SIP/1105-b771ce58’ not posted
Jun 15 09:14:37 NOTICE[20745]: cdr.c:445 ast_cdr_free: CDR on channel ‘SIP/1105-b771ce58’ lacks end
– Executing GotoIf(“SIP/1105-b771ce58”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,6)
– Executing GotoIf(“SIP/1105-b771ce58”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing Wait(“SIP/1105-b771ce58”, “5”) in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/1105-b771ce58’ in macro ‘hangupcall’
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/1105-b771ce58’
– Channel 0/1, span 1 got hangup request
– Stopped music on hold on Zap/1-1
== Spawn extension (ext-queues, 598, 12) exited non-zero on ‘Zap/1-1’
== Spawn extension (macro-dial, s, 10) exited non-zero on ‘Local/1108@from-internal-74f0,2’ in macro ‘dial’
== Spawn extension (macro-dial, s, 10) exited non-zero on ‘Local/1108@from-internal-74f0,2’ in macro ‘exten-vm’
== Spawn extension (macro-dial, s, 10) exited non-zero on ‘Local/1108@from-internal-74f0,2’
– Executing Macro(“Local/1108@from-internal-74f0,2”, “hangupcall”) in new stack
– Executing ResetCDR(“Local/1108@from-internal-74f0,2”, “w”) in new stack
– Hungup ‘Zap/1-1’
– Executing NoCDR(“Local/1108@from-internal-74f0,2”, “”) in new stack
Jun 15 09:14:37 NOTICE[20760]: cdr.c:443 ast_cdr_free: CDR on channel ‘Local/1108@from-internal-74f0,2’ not posted
Jun 15 09:14:37 NOTICE[20760]: cdr.c:445 ast_cdr_free: CDR on channel ‘Local/1108@from-internal-74f0,2’ lacks end
– Executing GotoIf(“Local/1108@from-internal-74f0,2”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,6)
– Executing GotoIf(“Local/1108@from-internal-74f0,2”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing Wait(“Local/1108@from-internal-74f0,2”, “5”) in new stack
And it’s not just cell phones, it’s other calls as well…