Unknown CallerID [Fixed - Solution]

Hello,

Idk why but when i recive a call the callerid show as ‘Unknown’

For what i read that can happend if i change the dahdi configuration but i didnt, i compared old files from a copy of April and is same than today

sip_general_additional.conf:
accept_outofcall_message=yes
auth_message_requests=no
outofcall_message_context=dpma_message_context
faxdetect=no
vmexten=*97
useragent=FPBX-13.0.192.19(13.16.0)
disallow=all
allow=ulaw
allow=alaw
allow=gsm
allow=h264
allow=mpeg4
context=from-sip-external
callerid=Unknown
notifyringing=yes
notifyhold=yes
tos_sip=cs3
tos_audio=ef
tos_video=af41
alwaysauthreject=yes
limitonpeers=yes
tcpenable=no
rtpend=20000
callevents=yes
rtpstart=10000
jbenable=no
allowguest=yes
notifyringing=yes
tlsbindaddr=[::]:5061
tlsclientmethod=sslv2
srvlookup=no
tlsenable=no
defaultexpiry=120
g726nonstandard=no
videosupport=yes
maxcallbitrate=384
canreinvite=no
rtptimeout=30
rtpkeepalive=0
rtpholdtimeout=300
minexpiry=60
maxexpiry=3600
registerattempts=0
registertimeout=20
notifyhold=yes
checkmwi=10
nat=no
ALLOW_SIP_ANON=no
callerid=Unknown
language=en

dahdi-channels.conf
; Autogenerated by /usr/sbin/dahdi_genconf on Mon Apr 1 19:55:59 2013
; If you edit this file and execute /usr/sbin/dahdi_genconf again,
; your manual changes will be LOST.
; Dahdi Channels Configurations (chan_dahdi.conf)
;
; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended
; to be #include-d by /etc/chan_dahdi.conf that will include the global settings
;

; Span 1: WCTDM/4 "Wildcard TDM400P REV I Board 5" (MASTER)
;;; line="3 WCTDM/4/2 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 3
callerid=
group=
context=default

;;; line="4 WCTDM/4/3 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 4
callerid=
group=
context=default

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=yes
echocancelwhenbridged=no
echotraining=no
immediate=no
faxdetect=no
rxgain=0.0
txgain=0.0
callerid=asreceived

; 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

Caller ID is kind of odd on DAHDI.

Remember, DAHDI isn’t part of FreePBX or Asterisk. It stands on its own. Asterisk (and hence FreePBX) uses it, but they are different programs.

My guess is either that the phone company has changed the way they are signaling the Caller ID, or (for some reason) you’re machine is picking up the call before the second ring - the Caller ID information usually makes its way into the system between the first and second ring.

I’d start with the phone company and see what they know. After that, I’d probably start looking at the /var/log/asterisk/full log. There’s some debug information in DAHDI too, IIRC. Sorry I can’t be more help, but I haven’t played around with DAHDI in a couple of years.

Thanks for your help, in the log i see something who can help:

[2017-10-30 11:07:55] VERBOSE[6829][C-000001c6] pbx.c: Executing [in@sub-record-check:2] Set("SIP/from trunk-00000aXX", "FROMEXTEN=unknown") in new stack
[2017-10-30 11:07:56] VERBOSE[6830][C-000001c7] res_agi.c: dialparties.agi: Caller ID name is 'unknown' number is 'unknown'
[2017-10-30 11:07:56] VERBOSE[6830][C-000001c7] res_agi.c: dialparties.agi: DbDel CALLTRACE/XXX - Caller ID is not defined

That would imply you are not getting CallerID from your carrier.

Update:

I setup FreePBX on another machine and still having same problem, looks like the problem is when i create the Inbound Routes group, any ideas?

VERBOSE[20551][C-00000020] res_agi.c: dialparties.agi: Caller ID name is 'unknown' number is 'unknown'
VERBOSE[29329][C-00000021] pbx.c: Executing [s@sub-record-check:8] Set("SIP/from trunk-000000XX", "__FROMEXTEN=unknown") in new stack

Fixed, i added trustrpid=yes into the trunk in incoming calls.

Thanks for ur support.

What do you mean by trunk of incoming calls

It’s a two-year-old post and it doesn’t apply to you because you’re using DAHDI.