Inbound caller ID name not working after upgrade

I recently upgraded FreePBX from a very old version to a new server and version 2.8.1.0 running Asterisk 1.6.2.16.1. All works very well – there have been a lot of great improvements over the years. One strange thing is that after the upgrade, we stopped getting CID name info. The display on the phone just has the number in both fields.

I tried installing Superfecta and tested by setting one number manually which worked in the debug but still never made it to the phone.

I have pasted a copy of the log from a typical call below. Any help you can offer will be much appreciated.

in your PRI configuration it normally looks something like:

context=from-pstn

That needs to be changed to something like:

context=from-my-slow-pri

Then in extensions_custom.conf:

[from-muy-slow-pri]
exten => _.,1,Wait(2)
exten => _.,n,Goto(from-pstn,${EXTEN},1)

Where Wait(2) could be Wait(1) if that is long enough, or longer if need be.

1 Like

Perfect! Thank you so much for your help.

That worked. Thanks for putting up with my noobiness. Here is the results of the test call. How do I change the PRI context?

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 [[email protected]:1] Set(“DAHDI/2-1”, “__FROM_DID=8914”) in new stack
– Executing [[email protected]:2] Gosub(“DAHDI/2-1”, “app-blacklist-check,s,1”) in new stack
– Executing [[email protected]:1] GotoIf(“DAHDI/2-1”, “0?blacklisted”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/2-1”, “CALLED_BLACKLIST=1”) in new stack
– Executing [[email protected]:3] Return(“DAHDI/2-1”, “”) in new stack
– Executing [[email protected]:3] Wait(“DAHDI/2-1”, “2”) in new stack
– Executing [[email protected]:4] NoOp(“DAHDI/2-1”, "CNAM: MXSECURE INC ") in new stack
– Executing [[email protected]:5] ExecIf(“DAHDI/2-1”, “0 ?Set(CALLERID(name)=4803706884)”) in new stack
– Executing [[email protected]:6] Set(“DAHDI/2-1”, “__CALLINGPRES_SV=allowed”) in new stack
– Executing [[email protected]:7] Set(“DAHDI/2-1”, “CALLERPRES()=allowed_not_screened”) in new stack
– Executing [[email protected]:8] Set(“DAHDI/2-1”, “FAX_DEST=ext-fax^8914^1”) in new stack
– Executing [[email protected]:9] Answer(“DAHDI/2-1”, “”) in new stack
– Executing [[email protected]:10] Wait(“DAHDI/2-1”, “4”) in new stack
– Executing [[email protected]:11] Goto(“DAHDI/2-1”, “from-did-direct,8914,1”) in new stack
– Goto (from-did-direct,8914,1)
– Executing [[email protected]:1] Macro(“DAHDI/2-1”, “exten-vm,8914,8914”) in new stack
– Executing [[email protected]:1] Macro(“DAHDI/2-1”, “user-callerid,”) in new stack
– Executing [[email protected]:1] Set(“DAHDI/2-1”, “AMPUSER=4803706884”) in new stack
– Executing [[email protected]:2] GotoIf(“DAHDI/2-1”, “0?report”) in new stack
– Executing [[email protected]:3] ExecIf(“DAHDI/2-1”, “1?Set(REALCALLERIDNUM=4803706884)”) in new stack
– Executing [[email protected]:4] Set(“DAHDI/2-1”, “AMPUSER=”) in new stack
– Executing [[email protected]:5] Set(“DAHDI/2-1”, “AMPUSERCIDNAME=”) in new stack
– Executing [[email protected]:6] GotoIf(“DAHDI/2-1”, “1?report”) in new stack
– Goto (macro-user-callerid,s,10)
– Executing [[email protected]:10] GotoIf(“DAHDI/2-1”, “0?continue”) in new stack
– Executing [[email protected]:11] Set(“DAHDI/2-1”, “__TTL=64”) in new stack
– Executing [[email protected]:12] GotoIf(“DAHDI/2-1”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,19)
– Executing [[email protected]:19] Set(“DAHDI/2-1”, “CALLERID(number)=4803706884”) in new stack
– Executing [[email protected]:20] Set(“DAHDI/2-1”, "CALLERID(name)=MXSECURE INC ") in new stack
– Executing [[email protected]:21] NoOp(“DAHDI/2-1”, "Using CallerID “MXSECURE INC " <4803706884>”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/2-1”, “RingGroupMethod=none”) in new stack
– Executing [[email protected]:3] Set(“DAHDI/2-1”, “VMBOX=8914”) in new stack
– Executing [[email protected]:4] Set(“DAHDI/2-1”, “__EXTTOCALL=8914”) in new stack
– Executing [[email protected]:5] Set(“DAHDI/2-1”, “CFUEXT=”) in new stack
– Executing [[email protected]:6] Set(“DAHDI/2-1”, “CFBEXT=”) in new stack
– Executing [[email protected]:7] Set(“DAHDI/2-1”, “RT=15”) in new stack
– Executing [[email protected]:8] Macro(“DAHDI/2-1”, “record-enable,8914,IN”) in new stack
– Executing [[email protected]:1] GotoIf(“DAHDI/2-1”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [[email protected]:4] ExecIf(“DAHDI/2-1”, “0?MacroExit()”) in new stack
– Executing [[email protected]:5] GotoIf(“DAHDI/2-1”, “0?Group:OUT”) in new stack
– Goto (macro-record-enable,s,15)
– Executing [[email protected]:15] GotoIf(“DAHDI/2-1”, “1?IN”) in new stack
– Goto (macro-record-enable,s,20)
– Executing [[email protected]:20] ExecIf(“DAHDI/2-1”, “1?MacroExit()”) in new stack
– Executing [[email protected]:9] Macro(“DAHDI/2-1”, “dial-one,15,tr,8914”) in new stack
– Executing [[email protected]ro-dial-one:1] Set(“DAHDI/2-1”, “DEXTEN=8914”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/2-1”, “DIALSTATUS_CW=”) in new stack
– Executing [[email protected]:3] GosubIf(“DAHDI/2-1”, “0?screen,1”) in new stack
– Executing [[email protected]:4] GosubIf(“DAHDI/2-1”, “0?cf,1”) in new stack
– Executing [[email protected]:5] GotoIf(“DAHDI/2-1”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,8)
– Executing [[email protected]:8] GotoIf(“DAHDI/2-1”, “0?nodial”) in new stack
– Executing [[email protected]:9] GotoIf(“DAHDI/2-1”, “0?continue”) in new stack
– Executing [[email protected]:10] Set(“DAHDI/2-1”, “EXTHASCW=ENABLED”) in new stack
– Executing [[email protected]:11] GotoIf(“DAHDI/2-1”, “0?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,23)
– Executing [[email protected]:23] GotoIf(“DAHDI/2-1”, “1?next3:continue”) in new stack
– Goto (macro-dial-one,s,24)
– Executing [[email protected]:24] ExecIf(“DAHDI/2-1”, “0?Set(DIALSTATUS_CW=BUSY)”) in new stack
– Executing [[email protected]:25] GotoIf(“DAHDI/2-1”, “0?nodial”) in new stack
– Executing [[email protected]:26] GosubIf(“DAHDI/2-1”, “1?dstring,1:dlocal,1”) in new stack
– Executing [[email protected]:1] Set(“DAHDI/2-1”, “DSTRING=”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/2-1”, “DEVICES=8914”) in new stack
– Executing [[email protected]:3] ExecIf(“DAHDI/2-1”, “0?Return()”) in new stack
– Executing [[email protected]:4] ExecIf(“DAHDI/2-1”, “0?Set(DEVICES=914)”) in new stack
– Executing [[email protected]:5] Set(“DAHDI/2-1”, “LOOPCNT=1”) in new stack
– Executing [[email protected]:6] Set(“DAHDI/2-1”, “ITER=1”) in new stack
– Executing [[email protected]:7] Set(“DAHDI/2-1”, “THISDIAL=SIP/8914”) in new stack
– Executing [[email protected]:8] GosubIf(“DAHDI/2-1”, “1?zap2dahdi,1”) in new stack
– Executing [[email protected]:1] ExecIf(“DAHDI/2-1”, “0?Return()”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/2-1”, “NEWDIAL=”) in new stack
– Executing [[email protected]:3] Set(“DAHDI/2-1”, “LOOPCNT2=1”) in new stack
– Executing [[email protected]:4] Set(“DAHDI/2-1”, “ITER2=1”) in new stack
– Executing [[email protected]:5] Set(“DAHDI/2-1”, “THISPART2=SIP/8914”) in new stack
– Executing [[email protected]:6] ExecIf(“DAHDI/2-1”, “0?Set(THISPART2=DAHDI/8914)”) in new stack
– Executing [[email protected]:7] Set(“DAHDI/2-1”, “NEWDIAL=SIP/8914&”) in new stack
– Executing [[email protected]:8] Set(“DAHDI/2-1”, “ITER2=2”) in new stack
– Executing [[email protected]:9] GotoIf(“DAHDI/2-1”, “0?begin2”) in new stack
– Executing [[email protected]:10] Set(“DAHDI/2-1”, “THISDIAL=SIP/8914”) in new stack
– Executing [[email protected]:11] Return(“DAHDI/2-1”, “”) in new stack
– Executing [[email protected]:9] Set(“DAHDI/2-1”, “DSTRING=SIP/8914&”) in new stack
– Executing [[email protected]:10] Set(“DAHDI/2-1”, “ITER=2”) in new stack
– Executing [[email protected]:11] GotoIf(“DAHDI/2-1”, “0?begin”) in new stack
– Executing [[email protected]:12] Set(“DAHDI/2-1”, “DSTRING=SIP/8914”) in new stack
– Executing [[email protected]:13] Return(“DAHDI/2-1”, “”) in new stack
– Executing [[email protected]:27] GotoIf(“DAHDI/2-1”, “0?nodial”) in new stack
– Executing [[email protected]:28] GotoIf(“DAHDI/2-1”, “1?skiptrace”) in new stack
– Goto (macro-dial-one,s,30)
– Executing [[email protected]:30] Set(“DAHDI/2-1”, “D_OPTIONS=tr”) in new stack
– Executing [[email protected]:31] ExecIf(“DAHDI/2-1”, “0?SIPAddHeader(Alert-Info: )”) in new stack
– Executing [[email protected]:32] ExecIf(“DAHDI/2-1”, “0?SIPAddHeader()”) in new stack
– Executing [[email protected]:33] ExecIf(“DAHDI/2-1”, “0?Set(CHANNEL(musicclass)=)”) in new stack
– Executing [[email protected]:34] GosubIf(“DAHDI/2-1”, “0?qwait,1”) in new stack
– Executing [[email protected]:35] Set(“DAHDI/2-1”, “__CWIGNORE=”) in new stack
– Executing [[email protected]:36] Set(“DAHDI/2-1”, “__KEEPCID=TRUE”) in new stack
– Executing [[email protected]: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-00000355 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 [[email protected]:1] Macro(“DAHDI/2-1”, “hangupcall,”) in new stack
– Executing [[email protected]:1] GotoIf(“DAHDI/2-1”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,4)
– Executing [[email protected]:4] GotoIf(“DAHDI/2-1”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [[email protected]:7] GotoIf(“DAHDI/2-1”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [[email protected]: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>

You did not do a ‘module reload’ from the CLI (or just restart Asterisk) after your mods so they were not read into memory.

Also, there is nothing in your Noop()

It would be good to put the Noop() before and after the wait to see if it stays the same.

Here is what it should look like:

exten => 8914,n,Noop(CNAM: ${CALLERID(name)} )

That will print out what CNAM is in at the time before we mess with it.

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 [[email protected]:1] Set(“DAHDI/2-1”, “__FROM_DID=8914”) in new stack
– Executing [[email protected]:2] Gosub(“DAHDI/2-1”, “app-blacklist-check,s,1”) in new stack
– Executing [[email protected]:1] GotoIf(“DAHDI/2-1”, “0?blacklisted”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/2-1”, “CALLED_BLACKLIST=1”) in new stack
– Executing [[email protected]:3] Return(“DAHDI/2-1”, “”) in new stack
– Executing [[email protected]:3] ExecIf(“DAHDI/2-1”, “1 ?Set(CALLERID(name)=4803706884)”) in new stack
– Executing [[email protected]:4] Set(“DAHDI/2-1”, “__CALLINGPRES_SV=allowed”) in new stack
– Executing [[email protected]:5] Set(“DAHDI/2-1”, “CALLERPRES()=allowed_not_screened”) in new stack
– Executing [[email protected]:6] Set(“DAHDI/2-1”, “FAX_DEST=ext-fax^8914^1”) in new stack
– Executing [[email protected]:7] Answer(“DAHDI/2-1”, “”) in new stack
– Executing [[email protected]:8] Wait(“DAHDI/2-1”, “4”) in new stack
– Executing [[email protected]:9] Goto(“DAHDI/2-1”, “from-did-direct,8914,1”) in new stack
– Goto (from-did-direct,8914,1)
– Executing [[email protected]:1] Macro(“DAHDI/2-1”, “exten-vm,8914,8914”) in new stack
– Executing [[email protected]:1] Macro(“DAHDI/2-1”, “user-callerid,”) in new stack
– Executing [[email protected]:1] Set(“DAHDI/2-1”, “AMPUSER=4803706884”) in new stack
– Executing [[email protected]:2] GotoIf(“DAHDI/2-1”, “0?report”) in new stack
– Executing [[email protected]:3] ExecIf(“DAHDI/2-1”, “1?Set(REALCALLERIDNUM=4803706884)”) in new stack
– Executing [[email protected]:4] Set(“DAHDI/2-1”, “AMPUSER=”) in new stack
– Executing [[email protected]:5] Set(“DAHDI/2-1”, “AMPUSERCIDNAME=”) in new stack
– Executing [[email protected]:6] GotoIf(“DAHDI/2-1”, “1?report”) in new stack
– Goto (macro-user-callerid,s,10)
– Executing [[email protected]:10] GotoIf(“DAHDI/2-1”, “0?continue”) in new stack
– Executing [[email protected]:11] Set(“DAHDI/2-1”, “__TTL=64”) in new stack
– Executing [[email protected]:12] GotoIf(“DAHDI/2-1”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,19)
– Executing [[email protected]:19] Set(“DAHDI/2-1”, “CALLERID(number)=4803706884”) in new stack
– Executing [[email protected]:20] Set(“DAHDI/2-1”, “CALLERID(name)=4803706884”) in new stack
– Executing [[email protected]:21] NoOp(“DAHDI/2-1”, “Using CallerID “4803706884” <4803706884>”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/2-1”, “RingGroupMethod=none”) in new stack
– Executing [[email protected]:3] Set(“DAHDI/2-1”, “VMBOX=8914”) in new stack
– Executing [[email protected]:4] Set(“DAHDI/2-1”, “__EXTTOCALL=8914”) in new stack
– Executing [[email protected]:5] Set(“DAHDI/2-1”, “CFUEXT=”) in new stack
– Executing [[email protected]:6] Set(“DAHDI/2-1”, “CFBEXT=”) in new stack
– Executing [[email protected]:7] Set(“DAHDI/2-1”, “RT=15”) in new stack
– Executing [[email protected]:8] Macro(“DAHDI/2-1”, “record-enable,8914,IN”) in new stack
– Executing [[email protected]:1] GotoIf(“DAHDI/2-1”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [[email protected]:4] ExecIf(“DAHDI/2-1”, “0?MacroExit()”) in new stack
– Executing [[email protected]:5] GotoIf(“DAHDI/2-1”, “0?Group:OUT”) in new stack
– Goto (macro-record-enable,s,15)
– Executing [[email protected]:15] GotoIf(“DAHDI/2-1”, “1?IN”) in new stack
– Goto (macro-record-enable,s,20)
– Executing [[email protected]:20] ExecIf(“DAHDI/2-1”, “1?MacroExit()”) in new stack
– Executing [[email protected]:9] Macro(“DAHDI/2-1”, “dial-one,15,tr,8914”) in new stack
– Executing [[email protected]:1] Set(“DAHDI/2-1”, “DEXTEN=8914”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/2-1”, “DIALSTATUS_CW=”) in new stack
– Executing [[email protected]:3] GosubIf(“DAHDI/2-1”, “0?screen,1”) in new stack
– Executing [[email protected]:4] GosubIf(“DAHDI/2-1”, “0?cf,1”) in new stack
– Executing [[email protected]:5] GotoIf(“DAHDI/2-1”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,8)
– Executing [[email protected]:8] GotoIf(“DAHDI/2-1”, “0?nodial”) in new stack
– Executing [[email protected]:9] GotoIf(“DAHDI/2-1”, “0?continue”) in new stack
– Executing [[email protected]:10] Set(“DAHDI/2-1”, “EXTHASCW=ENABLED”) in new stack
– Executing [[email protected]:11] GotoIf(“DAHDI/2-1”, “0?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,23)
– Executing [[email protected]:23] GotoIf(“DAHDI/2-1”, “1?next3:continue”) in new stack
– Goto (macro-dial-one,s,24)
– Executing [[email protected]:24] ExecIf(“DAHDI/2-1”, “0?Set(DIALSTATUS_CW=BUSY)”) in new stack
– Executing [[email protected]:25] GotoIf(“DAHDI/2-1”, “0?nodial”) in new stack
– Executing [[email protected]:26] GosubIf(“DAHDI/2-1”, “1?dstring,1:dlocal,1”) in new stack
– Executing [[email protected]:1] Set(“DAHDI/2-1”, “DSTRING=”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/2-1”, “DEVICES=8914”) in new stack
– Executing [[email protected]:3] ExecIf(“DAHDI/2-1”, “0?Return()”) in new stack
– Executing [[email protected]:4] ExecIf(“DAHDI/2-1”, “0?Set(DEVICES=914)”) in new stack
– Executing [[email protected]:5] Set(“DAHDI/2-1”, “LOOPCNT=1”) in new stack
– Executing [[email protected]:6] Set(“DAHDI/2-1”, “ITER=1”) in new stack
– Executing [[email protected]:7] Set(“DAHDI/2-1”, “THISDIAL=SIP/8914”) in new stack
– Executing [[email protected]:8] GosubIf(“DAHDI/2-1”, “1?zap2dahdi,1”) in new stack
– Executing [[email protected]:1] ExecIf(“DAHDI/2-1”, “0?Return()”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/2-1”, “NEWDIAL=”) in new stack
– Executing [[email protected]:3] Set(“DAHDI/2-1”, “LOOPCNT2=1”) in new stack
– Executing [[email protected]:4] Set(“DAHDI/2-1”, “ITER2=1”) in new stack
– Executing [[email protected]:5] Set(“DAHDI/2-1”, “THISPART2=SIP/8914”) in new stack
– Executing [[email protected]:6] ExecIf(“DAHDI/2-1”, “0?Set(THISPART2=DAHDI/8914)”) in new stack
– Executing [[email protected]:7] Set(“DAHDI/2-1”, “NEWDIAL=SIP/8914&”) in new stack
– Executing [[email protected]:8] Set(“DAHDI/2-1”, “ITER2=2”) in new stack
– Executing [[email protected]:9] GotoIf(“DAHDI/2-1”, “0?begin2”) in new stack
– Executing [[email protected]:10] Set(“DAHDI/2-1”, “THISDIAL=SIP/8914”) in new stack
– Executing [[email protected]:11] Return(“DAHDI/2-1”, “”) in new stack
– Executing [[email protected]:9] Set(“DAHDI/2-1”, “DSTRING=SIP/8914&”) in new stack
– Executing [[email protected]:10] Set(“DAHDI/2-1”, “ITER=2”) in new stack
– Executing [[email protected]:11] GotoIf(“DAHDI/2-1”, “0?begin”) in new stack
– Executing [[email protected]:12] Set(“DAHDI/2-1”, “DSTRING=SIP/8914”) in new stack
– Executing [[email protected]:13] Return(“DAHDI/2-1”, “”) in new stack
– Executing [[email protected]:27] GotoIf(“DAHDI/2-1”, “0?nodial”) in new stack
– Executing [[email protected]:28] GotoIf(“DAHDI/2-1”, “1?skiptrace”) in new stack
– Goto (macro-dial-one,s,30)
– Executing [[email protected]:30] Set(“DAHDI/2-1”, “D_OPTIONS=tr”) in new stack
– Executing [[email protected]:31] ExecIf(“DAHDI/2-1”, “0?SIPAddHeader(Alert-Info: )”) in new stack
– Executing [[email protected]:32] ExecIf(“DAHDI/2-1”, “0?SIPAddHeader()”) in new stack
– Executing [[email protected]:33] ExecIf(“DAHDI/2-1”, “0?Set(CHANNEL(musicclass)=)”) in new stack
– Executing [[email protected]:34] GosubIf(“DAHDI/2-1”, “0?qwait,1”) in new stack
– Executing [[email protected]:35] Set(“DAHDI/2-1”, “__CWIGNORE=”) in new stack
– Executing [[email protected]:36] Set(“DAHDI/2-1”, “__KEEPCID=TRUE”) in new stack
– Executing [[email protected]: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 [[email protected]:1] Macro(“DAHDI/2-1”, “hangupcall,”) in new stack
– Executing [[email protected]:1] GotoIf(“DAHDI/2-1”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,4)
– Executing [[email protected]:4] GotoIf(“DAHDI/2-1”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [[email protected]:7] GotoIf(“DAHDI/2-1”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [[email protected]: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>

.

Pardon me for being such a noob, but where is this change made?

it’s in the auto-generated file:

/etc/asterisk/extensions_additional.conf

in the ext-did-0000 or ext-did-0001 context, which ever contains the DID you are routing.

Note this file will be re-generated each time you press the Orange ‘Apply Configuration Changes’ bar so my suggestion is for testing only, not a fix. You will need to reload the configuration from the CLI in Asterisk once you make the change also so that it is reread into memory.

Looks to me like your call is coming in without a name, this is the instruction that is putting the number into the name:

exten => s,n,ExecIf($[ “${CALLERID(name)}” = “” ] ,Set,CALLERID(name)=${CALLERID(num)})

On some occasions we have seen PRIs that don’t have CNAM updated immediately and it ‘magically’ finds it’s way into the channel shortly after the dialplan starts to execute.

If you think this may be the case, you can test it out by inserting a wait(2) just prior to that line for the given DID and see if it does the same thing. (TO be thorough, put in a NooP() immediately following printing out what the CNAM is prior to us changing it to get visual confirmation at the CLI what is going on.

If this shows you have this problem, then you will have to fix it by running your PRI to a special context which adds the required delay (probably 1 sec is fine) and then sends the call into from-pstn after that to process normally like here.

Okay, thanks. This was a call from my cell phone. I will turn off follow me for that ext to eliminate all the noise.

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

the trace is all outbound calling.

If you are not getting CID Name then you need to provide an inbound call for anyone to have a look and see if they spot an issue.

Make a call from your cell phone onto the system and include that trace.