Configuring FSK in Asterisk to determine phone numbers

To determine the number from analog lines, you need to specify in the context for each Trunk channel Dahdi:

usecallerid = yes
hidecallerid=no
cidstart = ring
cidsignalling = bell
callerid = asreceived

asreceived – means that the number must be transmitted in the form in which it is.
I used the Chinese board TDM410P.
It is also necessary to submit an application to the telephone operator so that they do not include the old Caller ID, but CallerID, that is, FSK (Bellcore).
I wrote a technical support message on the Ukrtelecom website, and the next day a local engineer called back to the landline phone.
We were connected to the SI 3000 PBX, after another day, after several attempts, they still turned on FSK and the numbers began to be determined even before the handset was picked up, mobile, landline, etc., although sometimes there were cases when the number was not determined.

If the telephone service provider does not have FSK enabled, then in the Asterisk console you may see errors during calls:

WARNING[21790][C-00000000]: chan_dahdi.c:1842 my_get_callerid: Failed to decode CallerID
ERROR[21790][C-00000000]: callerid.c:566 callerid_feed: No start bit found in fsk data.

To record sound from a telephone line channel for analysis, use the command:

dahdi_monitor 1 -v -r streamrx.wav

You can also enable (on) / disable (off) the mode of debugging calls by opening the Asterisk console and typing the command:

sudo asterisk -rvvvvvv
sip set debug on
sip set debug off

I left /etc/asterisk/dahdi-channels.conf unchanged (just in case, I will give its contents):

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

Leave a comment

Leave a Reply