my zaptel card can't read the incoming call's callerid.
my zapta.conf as follows:
/etc/asterisk/zapata.conf:
# Digium/Clone X100P EXAMPLE:
# Here is an example of a configuration where an X100P single FXO card is used
# for zaptel timing and not used for calling:
#
# NOTE: you can get an X100P on ebay for $10-30 that will work with Asterisk
[trunkgroups]
[channels]
language=en
relaxdtmf=yes
callwaiting=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
usecallerid=yes
echocancel=yes
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0
group=1
pickupgroup=1
immediate=no
context=from-zaptel
signalling=fxs_ks
callerid=asreceived
channel => 1
/////////////////////////////////////////
and my extension.conf
[from-zaptel]
exten => s,1,Ringing
exten => s,2,Wait(2)
exten => s,3,Answer
exten => s,4,SayDigits(${CALLERID(num)})
exten => s,5,WaitExten(10)
when a incoming call, i grab the info:
-- Remote UNIX connection
-- Starting simple switch on 'Zap/1-1'
-- Executing Ringing("Zap/1-1", "") in new stack
-- Executing Wait("Zap/1-1", "2") in new stack
-- Executing Answer("Zap/1-1", "") in new stack
-- Executing SayDigits("Zap/1-1", "栋?[0;37;40m") in new stack
-- Executing WaitExten("Zap/1-1", "10") in new stack
CALLERID(num) is mess code. why?