Okay – this is the change I made to the ext:
exten => 8914,1,Set(__FROM_DID=${EXTEN})
exten => 8914,n,Gosub(app-blacklist-check,s,1)
exten => 8914,n,Wait(2)
exten => 8914,n,NooP()
exten => 8914,n,ExecIf($[ “${CALLERID(name)}” = “” ] ?Set(CALLERID(name)=${CALLERID(num)}))
exten => 8914,n,Set(__CALLINGPRES_SV=${CALLERPRES()})
exten => 8914,n,Set(CALLERPRES()=allowed_not_screened)
exten => 8914,n,Set(FAX_DEST=ext-fax^8914^1)
exten => 8914,n,Answer
exten => 8914,n,Wait(4)
exten => 8914,n(dest-ext),Goto(from-did-direct,8914,1)
And this the results in the CLI - still no caller ID name. Did I do this right?
Connected to Asterisk 1.6.2.16.1 currently running on pbx (pid = 2826)
Verbosity is at least 11
– Accepting call from ‘4803706884’ to ‘8914’ on channel 0/2, span 1
– Executing [8914@from-pstn:1] Set(“DAHDI/2-1”, “__FROM_DID=8914”) in new stack
– Executing [8914@from-pstn:2] Gosub(“DAHDI/2-1”, “app-blacklist-check,s,1”) in new stack
– Executing [s@app-blacklist-check:1] GotoIf(“DAHDI/2-1”, “0?blacklisted”) in new stack
– Executing [s@app-blacklist-check:2] Set(“DAHDI/2-1”, “CALLED_BLACKLIST=1”) in new stack
– Executing [s@app-blacklist-check:3] Return(“DAHDI/2-1”, “”) in new stack
– Executing [8914@from-pstn:3] ExecIf(“DAHDI/2-1”, “1 ?Set(CALLERID(name)=4803706884)”) in new stack
– Executing [8914@from-pstn:4] Set(“DAHDI/2-1”, “__CALLINGPRES_SV=allowed”) in new stack
– Executing [8914@from-pstn:5] Set(“DAHDI/2-1”, “CALLERPRES()=allowed_not_screened”) in new stack
– Executing [8914@from-pstn:6] Set(“DAHDI/2-1”, “FAX_DEST=ext-fax^8914^1”) in new stack
– Executing [8914@from-pstn:7] Answer(“DAHDI/2-1”, “”) in new stack
– Executing [8914@from-pstn:8] Wait(“DAHDI/2-1”, “4”) in new stack
– Executing [8914@from-pstn:9] Goto(“DAHDI/2-1”, “from-did-direct,8914,1”) in new stack
– Goto (from-did-direct,8914,1)
– Executing [8914@from-did-direct:1] Macro(“DAHDI/2-1”, “exten-vm,8914,8914”) in new stack
– Executing [s@macro-exten-vm:1] Macro(“DAHDI/2-1”, “user-callerid,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“DAHDI/2-1”, “AMPUSER=4803706884”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“DAHDI/2-1”, “0?report”) in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“DAHDI/2-1”, “1?Set(REALCALLERIDNUM=4803706884)”) in new stack
– Executing [s@macro-user-callerid:4] Set(“DAHDI/2-1”, “AMPUSER=”) in new stack
– Executing [s@macro-user-callerid:5] Set(“DAHDI/2-1”, “AMPUSERCIDNAME=”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“DAHDI/2-1”, “1?report”) in new stack
– Goto (macro-user-callerid,s,10)
– Executing [s@macro-user-callerid:10] GotoIf(“DAHDI/2-1”, “0?continue”) in new stack
– Executing [s@macro-user-callerid:11] Set(“DAHDI/2-1”, “__TTL=64”) in new stack
– Executing [s@macro-user-callerid:12] GotoIf(“DAHDI/2-1”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,19)
– Executing [s@macro-user-callerid:19] Set(“DAHDI/2-1”, “CALLERID(number)=4803706884”) in new stack
– Executing [s@macro-user-callerid:20] Set(“DAHDI/2-1”, “CALLERID(name)=4803706884”) in new stack
– Executing [s@macro-user-callerid:21] NoOp(“DAHDI/2-1”, “Using CallerID “4803706884” <4803706884>”) in new stack
– Executing [s@macro-exten-vm:2] Set(“DAHDI/2-1”, “RingGroupMethod=none”) in new stack
– Executing [s@macro-exten-vm:3] Set(“DAHDI/2-1”, “VMBOX=8914”) in new stack
– Executing [s@macro-exten-vm:4] Set(“DAHDI/2-1”, “__EXTTOCALL=8914”) in new stack
– Executing [s@macro-exten-vm:5] Set(“DAHDI/2-1”, “CFUEXT=”) in new stack
– Executing [s@macro-exten-vm:6] Set(“DAHDI/2-1”, “CFBEXT=”) in new stack
– Executing [s@macro-exten-vm:7] Set(“DAHDI/2-1”, “RT=15”) in new stack
– Executing [s@macro-exten-vm:8] Macro(“DAHDI/2-1”, “record-enable,8914,IN”) in new stack
– Executing [s@macro-record-enable:1] GotoIf(“DAHDI/2-1”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [s@macro-record-enable:4] ExecIf(“DAHDI/2-1”, “0?MacroExit()”) in new stack
– Executing [s@macro-record-enable:5] GotoIf(“DAHDI/2-1”, “0?Group:OUT”) in new stack
– Goto (macro-record-enable,s,15)
– Executing [s@macro-record-enable:15] GotoIf(“DAHDI/2-1”, “1?IN”) in new stack
– Goto (macro-record-enable,s,20)
– Executing [s@macro-record-enable:20] ExecIf(“DAHDI/2-1”, “1?MacroExit()”) in new stack
– Executing [s@macro-exten-vm:9] Macro(“DAHDI/2-1”, “dial-one,15,tr,8914”) in new stack
– Executing [s@macro-dial-one:1] Set(“DAHDI/2-1”, “DEXTEN=8914”) in new stack
– Executing [s@macro-dial-one:2] Set(“DAHDI/2-1”, “DIALSTATUS_CW=”) in new stack
– Executing [s@macro-dial-one:3] GosubIf(“DAHDI/2-1”, “0?screen,1”) in new stack
– Executing [s@macro-dial-one:4] GosubIf(“DAHDI/2-1”, “0?cf,1”) in new stack
– Executing [s@macro-dial-one:5] GotoIf(“DAHDI/2-1”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,8)
– Executing [s@macro-dial-one:8] GotoIf(“DAHDI/2-1”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:9] GotoIf(“DAHDI/2-1”, “0?continue”) in new stack
– Executing [s@macro-dial-one:10] Set(“DAHDI/2-1”, “EXTHASCW=ENABLED”) in new stack
– Executing [s@macro-dial-one:11] GotoIf(“DAHDI/2-1”, “0?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,23)
– Executing [s@macro-dial-one:23] GotoIf(“DAHDI/2-1”, “1?next3:continue”) in new stack
– Goto (macro-dial-one,s,24)
– Executing [s@macro-dial-one:24] ExecIf(“DAHDI/2-1”, “0?Set(DIALSTATUS_CW=BUSY)”) in new stack
– Executing [s@macro-dial-one:25] GotoIf(“DAHDI/2-1”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:26] GosubIf(“DAHDI/2-1”, “1?dstring,1:dlocal,1”) in new stack
– Executing [dstring@macro-dial-one:1] Set(“DAHDI/2-1”, “DSTRING=”) in new stack
– Executing [dstring@macro-dial-one:2] Set(“DAHDI/2-1”, “DEVICES=8914”) in new stack
– Executing [dstring@macro-dial-one:3] ExecIf(“DAHDI/2-1”, “0?Return()”) in new stack
– Executing [dstring@macro-dial-one:4] ExecIf(“DAHDI/2-1”, “0?Set(DEVICES=914)”) in new stack
– Executing [dstring@macro-dial-one:5] Set(“DAHDI/2-1”, “LOOPCNT=1”) in new stack
– Executing [dstring@macro-dial-one:6] Set(“DAHDI/2-1”, “ITER=1”) in new stack
– Executing [dstring@macro-dial-one:7] Set(“DAHDI/2-1”, “THISDIAL=SIP/8914”) in new stack
– Executing [dstring@macro-dial-one:8] GosubIf(“DAHDI/2-1”, “1?zap2dahdi,1”) in new stack
– Executing [zap2dahdi@macro-dial-one:1] ExecIf(“DAHDI/2-1”, “0?Return()”) in new stack
– Executing [zap2dahdi@macro-dial-one:2] Set(“DAHDI/2-1”, “NEWDIAL=”) in new stack
– Executing [zap2dahdi@macro-dial-one:3] Set(“DAHDI/2-1”, “LOOPCNT2=1”) in new stack
– Executing [zap2dahdi@macro-dial-one:4] Set(“DAHDI/2-1”, “ITER2=1”) in new stack
– Executing [zap2dahdi@macro-dial-one:5] Set(“DAHDI/2-1”, “THISPART2=SIP/8914”) in new stack
– Executing [zap2dahdi@macro-dial-one:6] ExecIf(“DAHDI/2-1”, “0?Set(THISPART2=DAHDI/8914)”) in new stack
– Executing [zap2dahdi@macro-dial-one:7] Set(“DAHDI/2-1”, “NEWDIAL=SIP/8914&”) in new stack
– Executing [zap2dahdi@macro-dial-one:8] Set(“DAHDI/2-1”, “ITER2=2”) in new stack
– Executing [zap2dahdi@macro-dial-one:9] GotoIf(“DAHDI/2-1”, “0?begin2”) in new stack
– Executing [zap2dahdi@macro-dial-one:10] Set(“DAHDI/2-1”, “THISDIAL=SIP/8914”) in new stack
– Executing [zap2dahdi@macro-dial-one:11] Return(“DAHDI/2-1”, “”) in new stack
– Executing [dstring@macro-dial-one:9] Set(“DAHDI/2-1”, “DSTRING=SIP/8914&”) in new stack
– Executing [dstring@macro-dial-one:10] Set(“DAHDI/2-1”, “ITER=2”) in new stack
– Executing [dstring@macro-dial-one:11] GotoIf(“DAHDI/2-1”, “0?begin”) in new stack
– Executing [dstring@macro-dial-one:12] Set(“DAHDI/2-1”, “DSTRING=SIP/8914”) in new stack
– Executing [dstring@macro-dial-one:13] Return(“DAHDI/2-1”, “”) in new stack
– Executing [s@macro-dial-one:27] GotoIf(“DAHDI/2-1”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:28] GotoIf(“DAHDI/2-1”, “1?skiptrace”) in new stack
– Goto (macro-dial-one,s,30)
– Executing [s@macro-dial-one:30] Set(“DAHDI/2-1”, “D_OPTIONS=tr”) in new stack
– Executing [s@macro-dial-one:31] ExecIf(“DAHDI/2-1”, “0?SIPAddHeader(Alert-Info: )”) in new stack
– Executing [s@macro-dial-one:32] ExecIf(“DAHDI/2-1”, “0?SIPAddHeader()”) in new stack
– Executing [s@macro-dial-one:33] ExecIf(“DAHDI/2-1”, “0?Set(CHANNEL(musicclass)=)”) in new stack
– Executing [s@macro-dial-one:34] GosubIf(“DAHDI/2-1”, “0?qwait,1”) in new stack
– Executing [s@macro-dial-one:35] Set(“DAHDI/2-1”, “__CWIGNORE=”) in new stack
– Executing [s@macro-dial-one:36] Set(“DAHDI/2-1”, “__KEEPCID=TRUE”) in new stack
– Executing [s@macro-dial-one:37] Dial(“DAHDI/2-1”, “SIP/8914,15,tr”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called 8914
– SIP/8914-0000034a is ringing
– Channel 0/2, span 1 got hangup request, cause 16
== Spawn extension (macro-dial-one, s, 37) exited non-zero on ‘DAHDI/2-1’ in macro ‘dial-one’
== Spawn extension (macro-exten-vm, s, 9) exited non-zero on ‘DAHDI/2-1’ in macro ‘exten-vm’
== Spawn extension (from-did-direct, 8914, 1) exited non-zero on ‘DAHDI/2-1’
– Executing [h@from-did-direct:1] Macro(“DAHDI/2-1”, “hangupcall,”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“DAHDI/2-1”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,4)
– Executing [s@macro-hangupcall:4] GotoIf(“DAHDI/2-1”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [s@macro-hangupcall:7] GotoIf(“DAHDI/2-1”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] Hangup(“DAHDI/2-1”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘DAHDI/2-1’ in macro ‘hangupcall’
== Spawn extension (from-did-direct, h, 1) exited non-zero on ‘DAHDI/2-1’
– Hungup 'DAHDI/2-1’
pbx*CLI>