I have looked everywere to find a solution on this, but nothing worked!
The Callerid is working in to my house when Asterisk is
not in the middle between incomming from phone company and
my house. But when I connect the Asterisk, no callerid on
incomming calls shows on the handset. (normal phone with
callerid)
I can see my mobile nummber on incomming in the CLI, like this:
“CALLERID=123456789”. I can also in my SIP phone (X-Lite) and
Grandstream-GXV3000 see the incomming nummber, but nothing on
my ZAP hard POTS.
In the last test I only sent the signal to ZAP/1, but nothing!
What am I doing wrong when trying to get the incomming phone
nummber from FXO (connected to the telecompany) to FSX (POTS
in my house)?
Card: Digium TDM11B
Country = Sweden
Asterisk 1.2.24
Zaptel 1.2.20.1
Libpri 1.2.5
Addons 1.2.7
Sounds 1.2.1
OS: PoundKey release Snub
Kernel 2.6.17.11-1.1.x86.i686
FXO = ZAP/4 (connected to phone company)
FXS = ZAP/1 (Connected POTS in my house)
Connected to Asterisk 1.2.24 currently running on asterisk (pid = 1862)
]# ztcfg -vvv
Zaptel Configuration
Channel map:
Channel 01: FXO Kewlstart (Default) (Slaves: 01)
Channel 04: FXS Kewlstart (Default) (Slaves: 04)
2 channels configured.
This is me calling in to the house with my cellphone, and as you can see
I do have CALLERID in to the system: (just changed the number)
– Remote UNIX connection
Verbosity was 3 and is now 20
== Starting post polarity CID detection on channel 4
– Starting simple switch on ‘Zap/4-1’
– Executing Set(“Zap/4-1”, “CALLERID(number)=123456789”) in new stack
– Executing Verbose(“Zap/4-1”, “incomming CallerID=<123456789>”) in new stack
incomming CallerID=<123456789>
– Executing Dial(“Zap/4-1”, “ZAP/1|20|rfo”) in new stack
– Called 1
– Zap/1-1 is ringing
– Zap/1-1 is ringing
– Zap/1-1 is ringing
– Hungup ‘Zap/1-1’
== Spawn extension (zap_incoming, s, 3) exited non-zero on ‘Zap/4-1’
– Hungup 'Zap/4-1’
asterisk*CLI>
But nothing on the handset!
This is what I got:
[code]<zaptel.conf>
loadzone=se
defaultzone=se
fxsks=4
fxoks=1[/code]
[code]<zapata.conf>
[trunkgroups]
[channels]
adsi=yes
cidsignalling=dtmf
cidstart=polarity
usecallerid=yes
useincomingcalleridonzaptransfer=yes
relaxdtmf=yes
threewaycalling=yes
transfer=yes
echocancel=yes
echocancelwhenbridged=yes
echotraining=800
rxgain=0
txgain=0
callwaiting=yes
callwaitingcallerid=yes
answeronpolarityswitch=no
hanguponpolarityswitch=yes
context=call-in-house
signalling=fxo_ks
cidsignalling=dtmf
cidstart=polarity
language=se
callerid=“Micke & Helen”<6000>
mailbox=6000@intern-ank,6001@intern-ank,6002@intern-ank,6003@intern-ank
channel => 1
context=zap_incoming
signalling=fxs_ks
cidsignalling=dtmf
cidstart=polarity
language=se
usecallerid=yes
callerid=asreceived
answeronpolarityswitch=no
hanguponpolarityswitch=yes
channel => 4
musiconhold=default [/code]
[code]<extensions.conf>
[general]
writeprotect=yes
[globals]
CALLFROM_PSTN=ZAP/1&SIP/Micke_Helen&SIP/Nypon&SIP/Helah
CALLFROM_INTERNET=ZAP/1r4&SIP/Micke_Helen&SIP/Nypon&SIP/Helah
HOME_PHONE_NAME=Micke och Helen
HOME_PHONE_NO=+1111111111
[zap_incoming]
;exten => s,1,setCallerID(${CALLERID})
;exten => s,1,SetCallerID(${CALLERIDNUM})
exten => s,1,Set(CALLERID(number)=${CALLERID})
;exten => s,1,Set(CALLERID(number)=11111111)
exten => s,n,Verbose(incomming CallerID=<${CALLERID}>)
;exten => s,n,Wait(1) ; Så den hinner fånga tag på inkommande nummer.
;exten => s,1,setCIDNum(${CALLERID})
;exten => s,1,setCIDNum(1234)
;exten => s,n,Answer
;exten => s,n,Dial(${CALLFROM_PSTN},20,ro)
exten => s,n,Dial(ZAP/1,20,rfo)
exten => s,n,Voicemail(6000@intern-ank|u)
exten => s,103,Voicemail(6000@intern-ank|b)
exten => s,n,hangup()
[zap2pstn]
exten => _0ZXXXXXXXX,1,Dial(Zap/4/${EXTEN:0})
exten => _0ZXXXXXXX,1,Dial(Zap/4/${EXTEN:0})
exten => _0ZXXXXXX,1,Dial(Zap/4/${EXTEN:0})
exten => _0ZXXXXX,1,Dial(Zap/4/${EXTEN:0})
exten => _ZXXXXXXX,1,Dial(Zap/4/${EXTEN:0})
exten => _ZXXXXXX,1,Dial(Zap/4/${EXTEN:0})
exten => _ZXXXXX,1,Dial(Zap/4/${EXTEN:0})
exten => _ZXXXX,1,Dial(Zap/4/${EXTEN:0})
;exten => _X.,1,Dial(ZAP/4/${EXTEN:2})
exten => _X.,102,Playback(tt-allbusy)
exten => _X.,n,Hangup()[/code]
I hope someboddy can helpe me on this, something to try or anything!
At one point I got the feeling that the card was broken!
Thanks in advance!
// Nypon