I have a TDM400p with an FXO module (Asterisk v1.4.10). My problem is that Asterisk seems unable to get the callerID for all incoming long-distance calls. Local calls work perfectly.
The following are my current configurations. I have tried with and without the Wait(x) in extensions and with/without the Answer()… no luck.
And with a regular phone LD CID comes in fine ? Can you please get the results from both a local and long distance calls using a regular phone with CID and post it here.
Just to clarify: for any incoming local call through my TDM400p card, all of my phones (Zap/1, Zap/2, SIP/spa942) receive and display the callerID. However, all incoming long-distance calls, no callerID (asterisk is displayed).
My PSTN is through Bell Canada–I have confirmed that if I by-pass Asterisk entirely, LD calls do display CID.
Here is the Asterisk CLI output for an incoming call… I tried with both local & LD and could not see any difference:
-- Starting simple switch on 'Zap/4-1'
-- Executing [s@incoming:1] Wait("Zap/4-1", "4") in new stack
-- Executing [s@incoming:2] Dial("Zap/4-1", "SIP/spa942&Zap/1&Zap/2|20|o") in new stack
-- Called spa942
-- Called 1
-- Called 2
-- Zap/1-1 is ringing
-- Zap/2-1 is ringing
-- SIP/spa942-081bc888 is ringing
-- Zap/1-1 is ringing
-- Zap/2-1 is ringing
-- Zap/1-1 is ringing
-- Zap/2-1 is ringing
-- Zap/1-1 is ringing
-- Zap/2-1 is ringing
-- Zap/1-1 is ringing
-- Zap/2-1 is ringing
-- Nobody picked up in 20000 ms
-- Hungup 'Zap/2-1'
-- Hungup 'Zap/1-1'
-- Executing [s@incoming:3] VoiceMail("Zap/4-1", "u501@default") in new stack
-- <Zap/4-1> Playing '/var/spool/asterisk/voicemail/default/501/unavail' (language 'en')
-- <Zap/4-1> Playing 'vm-intro' (language 'en')
-- <Zap/4-1> Playing 'beep' (language 'en')
-- Recording the message
-- x=0, open writing: /var/spool/asterisk/voicemail/default/501/tmp/N0fuqT format: wav49, 0x81b3730
-- x=1, open writing: /var/spool/asterisk/voicemail/default/501/tmp/N0fuqT format: gsm, 0x81b28a8
-- x=2, open writing: /var/spool/asterisk/voicemail/default/501/tmp/N0fuqT format: wav, 0x81b8480
-- User hung up
-- Recording was 1 seconds long but needs to be at least 5 - abandoning
== Spawn extension (incoming, s, 3) exited non-zero on 'Zap/4-1'
-- Hungup 'Zap/4-1'
Asterisk does not discriminate where the call is coming from. Again as I said before put a “regular” phone in and see how the CID comes in. Try to see what is different and why asterisk may be acting up.
When I unplugged my * box and had my analog phone connected directly to the PSTN, it was able to receive CID for both local and LD calls.
I repeated the calling sequence and traced it through *. There are some differences… can you help and tell me what the difference is?
LD:
-- Starting simple switch on 'Zap/4-1'
[Nov 15 21:01:02] NOTICE[22609]: chan_zap.c:6369 ss_thread: Got event 18 (Ring Begin)...
[Nov 15 21:01:03] NOTICE[22609]: chan_zap.c:6369 ss_thread: Got event 2 (Ring/Answered)...
[Nov 15 21:01:03] NOTICE[22609]: chan_zap.c:6369 ss_thread: Got event 18 (Ring Begin)...
-- Executing [s@incoming:1] Dial("Zap/4-1", "SIP/spa942&Zap/1&Zap/2|20|o") in new stack
-- Called spa942
-- Called 1
-- Called 2
-- Zap/1-1 is ringing
-- Zap/2-1 is ringing
-- SIP/spa942-081b3b38 is ringing
-- Zap/1-1 is ringing
-- Zap/2-1 is ringing
-- Zap/1-1 is ringing
-- Zap/2-1 is ringing
-- Zap/1-1 is ringing
-- Zap/2-1 is ringing
-- Hungup 'Zap/2-1'
-- Hungup 'Zap/1-1'
== Spawn extension (incoming, s, 1) exited non-zero on 'Zap/4-1'
-- Hungup 'Zap/4-1'
local:
-- Starting simple switch on 'Zap/4-1'
-- Executing [s@incoming:1] Dial("Zap/4-1", "SIP/spa942&Zap/1&Zap/2|20|o") in new stack
-- Called spa942
-- Called 1
-- Called 2
-- SIP/spa942-081b3b38 is ringing
-- Zap/1-1 is ringing
-- Zap/2-1 is ringing
-- Zap/1-1 is ringing
-- Zap/2-1 is ringing
-- Zap/1-1 is ringing
-- Zap/2-1 is ringing
-- Hungup 'Zap/2-1'
-- Hungup 'Zap/1-1'
== Spawn extension (incoming, s, 1) exited non-zero on 'Zap/4-1'
-- Hungup 'Zap/4-1'
I tried changing this to 8, reinstaling the driver, no luck. So I upped it to 32, still no luck. For all long-distance calls, I get the following:
-- Starting simple switch on 'Zap/4-1'
[Nov 17 19:28:49] NOTICE[4352]: chan_zap.c:6369 ss_thread: Got event 18 (Ring Begin)...
[Nov 17 19:28:49] NOTICE[4352]: chan_zap.c:6369 ss_thread: Got event 2 (Ring/Answered)...
[Nov 17 19:28:50] NOTICE[4352]: chan_zap.c:6369 ss_thread: Got event 18 (Ring Begin)...
-- Executing [s@incoming:1] Dial("Zap/4-1", "SIP/spa942&Zap/1&Zap/2|20|o") in new stack
-- Called spa942
-- Called 1
-- Called 2
-- SIP/spa942-081afa40 is ringing
-- Zap/1-1 is ringing
-- Zap/2-1 is ringing
-- Zap/1-1 is ringing
-- Zap/2-1 is ringing
-- Zap/1-1 is ringing
-- Zap/2-1 is ringing
-- Zap/1-1 answered Zap/4-1
-- Hungup 'Zap/2-1'
-- Native bridging Zap/4-1 and Zap/1-1
-- Hungup 'Zap/1-1'
Should I try upping this beyond 32? Is 128 not equal to 128*4=512ms?[/quote]
Yes thats the correct one, I was looking at a different driver so they were named differently. You could try a value of 64 which would debounce any ring thats less than 1024ms. Make sure you are recompiling and reloading the drivers.
I am a Linux neophyte, but have been able to negotiate my way round Ubuntu server reasonably well. If anyone can point to my error or suggest a way to build this latest driver…
I thought I would do a little more reading, and followed the instructions in the readme (newbie mistake ). I did the following:
/usr/src/temp/modules/zaptel$ sudo ./configure
/usr/src/temp/modules/zaptel$ sudo make
/usr/src/temp/modules/zaptel$ sudo make install
/usr/src/temp/modules/zaptel$ sudo make config
/usr/src/temp/modules/zaptel$ sudo shutdown -r now
No errors or anything. However, also still no CID. Executing:
Hi, I’m having this exact same problem - very very intermittent callerid on incoming calls that produce those 3 NOTICE messages. Maybe 2% of my incoming calls DO NOT produce those messages and callerid ALWAYS works for those. Unlike you, I have not only get those messages on long distance calls.
Anyone out there that can explain what those messages are trying to tell us? I’d appreciate any direction!
[quote=“Quahtrader”]Hi, I’m having this exact same problem - very very intermittent callerid on incoming calls that produce those 3 NOTICE messages. Maybe 2% of my incoming calls DO NOT produce those messages and callerid ALWAYS works for those. Unlike you, I have not only get those messages on long distance calls.
Anyone out there that can explain what those messages are trying to tell us? I’d appreciate any direction![/quote]
I’m not sure if module assistance is loading the driver with the correct settings or not. I’m pretty confident that this should fix your issue. Try doing it without using module assistance.
Do the following:
tar -zxvf zaptel-1.4.6.tar.gz
cd zaptel-1.4.6 edit wctdm.c
make install
insmod zaptel.ko
insmod wctdm.ko
ztcfg -vv
ztcfg -vv start Asterisk and give it a try