No caller id on the Inbound

Hopefully someone can help me, I am not seeing the caller id on inbound calls, instead they are displaying as UNKNOWN, I have tried an alternative pbx and the Telco appears to be sending the caller id correctly however on this system it is not being detected.

Just wondering if someone can offer any advice?

I am running the following setup not from a distribution.
FreePBX: 2.11.0
Asterisk: 11.8.1
Dahdi: 2.9.0
Centos: 6.5

etc/dahdi/system.conf
span=1,0,0,CCS,HDB3,CRC4
span=2,0,0,CCS,HDB3,CRC4
bchan=1-15,17-31,32-46,48-62
dchan=16,47

I am using a Digium TE220 set for Europe.

/etc/modprobe.d/dahdi.conf
options wct4xxp default_linemode=e1

/etc/asterisk/chan_dahdi.conf
[channels]
language=en
busydetect=yes
busycount=10
usecallerid=yes
callwaiting=yes
usecallingpres=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=no
immediate=no
faxdetect=no
rxgain=0.0
txgain=0.0

Trace

Connected to Asterisk 11.8.1 currently running on s000411 (pid = 10147)
– Accepting call from ‘7905305067’ to ‘547555’ on channel 0/1, span 1
– Executing [[email protected]:1] NoOp(“DAHDI/i1/-8b”, “Catch-All DID Match - Found 547555 - You probably want a DID for this.”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/i1/-8b”, “__FROM_DID=547555”) in new stack
– Executing [[email protected]:3] Goto(“DAHDI/i1/-8b”, “ext-did,s,1”) in new stack
– Goto (ext-did,s,1)
– Executing [[email protected]:1] ExecIf(“DAHDI/i1/-8b”, “0?Set(__FROM_DID=s)”) in new stack
– Executing [[email protected]:2] Gosub(“DAHDI/i1/-8b”, “sub-record-check,s,1(force,s,always)”) in new stack
– Executing [[email protected]:1] Set(“DAHDI/i1/-8b”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [[email protected]:2] GotoIf(“DAHDI/i1/-8b”, “1?check”) in new stack
– Goto (sub-record-check,s,7)
– Executing [[email protected]:7] Set(“DAHDI/i1/-8b”, “__MON_FMT=wav”) in new stack
– Executing [[email protected]:8] GotoIf(“DAHDI/i1/-8b”, “1?next”) in new stack
– Goto (sub-record-check,s,11)
– Executing [[email protected]:11] ExecIf(“DAHDI/i1/-8b”, “0?Return()”) in new stack
– Executing [[email protected]:12] ExecIf(“DAHDI/i1/-8b”, “1?Set(__REC_POLICY_MODE=always)”) in new stack
– Executing [[email protected]:13] GotoIf(“DAHDI/i1/-8b”, “0?force,1”) in new stack
– Executing [[email protected]:14] Set(“DAHDI/i1/-8b”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:15] Set(“DAHDI/i1/-8b”, “NOW=1398543234”) in new stack
– Executing [[email protected]:16] Set(“DAHDI/i1/-8b”, “__DAY=26”) in new stack
– Executing [[email protected]:17] Set(“DAHDI/i1/-8b”, “__MONTH=04”) in new stack
– Executing [[email protected]:18] Set(“DAHDI/i1/-8b”, “__YEAR=2014”) in new stack
– Executing [[email protected]:19] Set(“DAHDI/i1/-8b”, “__TIMESTR=20140426-211354”) in new stack
– Executing [[email protected]:20] Set(“DAHDI/i1/-8b”, “__FROMEXTEN=unknown”) in new stack
– Executing [[email protected]:21] Set(“DAHDI/i1/-8b”, “__CALLFILENAME=force-s-unknown-20140426-211354-1398543234.423”) in new stack
– Executing [[email protected]:22] Goto(“DAHDI/i1/-8b”, “force,1”) in new stack
– Goto (sub-record-check,force,1)
– Executing [[email protected]:1] GosubIf(“DAHDI/i1/-8b”, “1?record,1(force,always,unknown)”) in new stack
– Executing [[email protected]:1] Set(“DAHDI/i1/-8b”, “AUDIOHOOK_INHERIT(MixMonitor)=yes”) in new stack
– Executing [[email protected]:2] MixMonitor(“DAHDI/i1/-8b”, “/var/spool/asterisk/monitor/2014/04/26/force-s-unknown-20140426-211354-1398543234.423.wav,r(/var/spool/asterisk/monitor/2014/04/26/force-s-unknown-20140426-211354-1398543234.423-in.wav)t(/var/spool/asterisk/monitor/2014/04/26/force-s-unknown-20140426-211354-1398543234.423-out.wav),/usr/local/bin/wavmix ^{MIXMON_DIR}^{YEAR}/^{MONTH}/^{DAY}/^{CALLFILENAME}-in.^{MIXMON_FORMAT} ^{MIXMON_DIR}^{YEAR}/^{MONTH}/^{DAY}/^{CALLFILENAME}-out.^{MIXMON_FORMAT} ^{MIXMON_DIR}^{YEAR}/^{MONTH}/^{DAY}/^{CALLFILENAME}.^{MIXMON_FORMAT}”) in new stack
– Executing [[email protected]:3] Set(“DAHDI/i1/-8b”, “__REC_STATUS=RECORDING”) in new stack
– Executing [[email protected]:4] Set(“DAHDI/i1/-8b”, “CDR(recordingfile)=force-s-unknown-20140426-211354-1398543234.423.wav”) in new stack
– Executing [[email protected]:5] Return(“DAHDI/i1/-8b”, “”) in new stack
– Executing [[email protected]:2] Return(“DAHDI/i1/-8b”, “”) in new stack
– Executing [[email protected]:3] Set(“DAHDI/i1/-8b”, “CDR(did)=547555”) in new stack
== Begin MixMonitor Recording DAHDI/i1/-8b
– Executing [[email protected]:4] ExecIf(“DAHDI/i1/-8b”, “1 ?Set(CALLERID(name)=)”) in new stack
– Executing [[email protected]:5] Ringing(“DAHDI/i1/-8b”, “”) in new stack
– Executing [[email protected]:6] Set(“DAHDI/i1/-8b”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
– Executing [[email protected]:7] Set(“DAHDI/i1/-8b”, “CALLERPRES()=allowed_not_screened”) in new stack
– Executing [[email protected]:8] Goto(“DAHDI/i1/-8b”, “ext-trunk,2,1”) in new stack
– Goto (ext-trunk,2,1)
– Executing [[email protected]:1] Set(“DAHDI/i1/-8b”, “TDIAL_STRING=DAHDI/g1”) in new stack
– Executing [[email protected]:2] Set(“DAHDI/i1/-8b”, “DIAL_TRUNK=2”) in new stack
– Executing [[email protected]:3] Goto(“DAHDI/i1/-8b”, “ext-trunk,tdial,1”) in new stack
– Goto (ext-trunk,tdial,1)
– Executing [[email protected]:1] Set(“DAHDI/i1/-8b”, “OUTBOUND_GROUP=OUT_2”) in new stack
– Executing [[email protected]:2] GotoIf(“DAHDI/i1/-8b”, “1?nomax”) in new stack
– Goto (ext-trunk,tdial,4)
– Executing [[email protected]:4] ExecIf(“DAHDI/i1/-8b”, “1?Set(CALLERPRES()=allowed_not_screened)”) in new stack
– Executing [[email protected]:5] Set(“DAHDI/i1/-8b”, “DIAL_NUMBER=547555”) in new stack
– Executing [[email protected]:6] GosubIf(“DAHDI/i1/-8b”, “0?sub-flp-2,s,1()”) in new stack
– Executing [[email protected]:7] Set(“DAHDI/i1/-8b”, “OUTNUM=547555”) in new stack
– Executing [[email protected]:8] Set(“DAHDI/i1/-8b”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [[email protected]:9] Dial(“DAHDI/i1/-8b”, “DAHDI/g1/547555,300,”) in new stack
– Requested transfer capability: 0x10 - 3K1AUDIO
– Called DAHDI/g1/547555
– DAHDI/i2/547555-f9 is proceeding passing it to DAHDI/i1/-8b
– DAHDI/i2/547555-f9 answered DAHDI/i1/-8b
– Span 1: Channel 0/1 got hangup request, cause 16
– Hungup ‘DAHDI/i2/547555-f9’
== Spawn extension (ext-trunk, tdial, 9) exited non-zero on ‘DAHDI/i1/-8b’
– Hungup ‘DAHDI/i1/-8b’
== MixMonitor close filestream (mixed)
== MixMonitor close filestream (read)
== MixMonitor close filestream (write)
== Executing [/usr/local/bin/wavmix /var/spool/asterisk/monitor/2014/04/26/force-s-unknown-20140426-211354-1398543234.423-in.wav /var/spool/asterisk/monitor/2014/04/26/force-s-unknown-20140426-211354-1398543234.423-out.wav /var/spool/asterisk/monitor/2014/04/26/force-s-unknown-20140426-211354-1398543234.423.wav]
== End MixMonitor Recording DAHDI/i1/-8b

Thanks for the feedback. It’s nice to know when things do work.

Try adding:

hidecallerid=no to chan_dahdi.conf

Also can you post your chan_dahdi_trunk.conf file as well?

Thanks for coming back to me, will let you know the outcome, please see below chan_dahdi.conf

[general]

; generated by module
#include chan_dahdi_general.conf

; for user additions not provided by module
#include chan_dahdi_general_custom.conf

[channels]
language=en
busydetect=yes
busycount=10
usecallerid=yes
callwaiting=yes
usecallingpres=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=no
echocancelwhenbridged=no
echotraining=no
immediate=no
faxdetect=no
rxgain=0.0
txgain=0.0
defaultzone=uk
loadzone=uk

; for user additions not provided by module
#include chan_dahdi_channels_custom.conf

; include dahdi groups defined by DAHDI module of FreePBX
#include chan_dahdi_groups.conf

; include dahdi extensions defined in FreePBX
#include chan_dahdi_additional.conf
~

I made the change as Lee suggested and was successful, although I have another unrelated issue now lol.

To make the change I did the following:

Connectivity > Dahdi config > Global Settings > Global Settings

hidecallerid = No
callwaitingcallerid = yes
callerid = asreceived