Problem with getting Caller ID by TDM2400P

Questions and discussion about the use of Digium's analog and digital telephony interface cards with AsteriskNOW.

Problem with getting Caller ID by TDM2400P

Postby cosmic17 » Fri Jun 15, 2012 1:57 am

Hello.
First sorry for my English.
I`m from Moscow, Russia.
I have a problem with getting caller id.
Dist: Elastix version 2.0.0.-36, Asterisk version 1.6.2.10.
There is a digium card TDM2400P in the server. The analog phone line directly connected in this card. There is activated service "Euro Caller ID" on this phone number.
I`m sure that I get caller id from my provider, because I have tested it with fax device Panasonic.
The routing of incoming calls:
Code: Select all
incoming call->IVR("All calls are recorded")->redirect on ring-group

During the calls I can see in log file:
Code: Select all
Starting simple switch on 'DAHDI/1-1'
-- Executing [s@from-pstn:1] Set("DAHDI/1-1", "__FROM_DID=s") in new stack
-- Executing [s@from-pstn:2] Gosub("DAHDI/1-1", "app-blacklist-check,s,1") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("DAHDI/1-1", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Set("DAHDI/1-1", "CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:3] Return("DAHDI/1-1", "") in new stack
-- Executing [s@from-pstn:3] ExecIf("DAHDI/1-1", "1 ?Set(CALLERID(name)=)") in new stack
-- Executing [s@from-pstn:4] Set("DAHDI/1-1", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [s@from-pstn:5] Set("DAHDI/1-1", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [s@from-pstn:6] Set("DAHDI/1-1", "FAX_DEST=from-did-direct^1000^1") in new stack
-- Executing [s@from-pstn:7] Answer("DAHDI/1-1", "") in new stack
-- Executing [s@from-pstn:8] Wait("DAHDI/1-1", "4") in new stack
-- Executing [s@from-pstn:9] Goto("DAHDI/1-1", "app-announcement-3,s,1") in new stack
...
-- Executing [s@macro-user-callerid:19] Set("DAHDI/1-1", "CALLERID(number)=") in new stack
-- Executing [s@macro-user-callerid:20] Set("DAHDI/1-1", "CALLERID(name)=") in new stack

So I can see in display phones of ring-group instead of phone number phrase "unknown".
Before to write this message I have read a lot of forums. But I can`t solve my problem.
My config files are:
chan_dahdi.conf:
Code: Select all
[channels]                                                                                                                                                                                                                                   
context=from-pstn
signalling=fxs_ks
rxwink=300
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
faxdetect=incoming
echotraining=800
rxgain=5.0
txgain=5.0
callgroup=1
pickupgroup=1
callerid=asreceived
cidsignalling=fsk
cidstart=ring

My provider said that the method of transmission is FSK.
dahdi_channels.conf:
Code: Select all
; Span 1: WCTDM/0 "Wildcard TDM2400P Board 1" (MASTER)
;;; line="1 WCTDM/0/0 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 1
callerid=
group=
context=default

Also I have tried
Code: Select all
sendcalleridafter=1, sendcalleridafter=2
, but had no result:(
Maybe somebody can help me.
WBR.
Last edited by cosmic17 on Mon Jun 18, 2012 2:43 am, edited 1 time in total.
cosmic17
Newsterisk
 
Posts: 9
Joined: Fri Jun 15, 2012 1:18 am

Re: Problem with getting Caller ID by TDM2400P

Postby malcolmd » Fri Jun 15, 2012 6:57 am

Hello,

Have you worked with Digium's Support department for your trouble?

They may be contacted via:

+1 256 428 6000

or via:

http://www.digium.com/en/users/support-create-a-case/
Malcolm Davenport
Digium, Inc. | Senior Product Manager
malcolmd
Moves Like Spencer
 
Posts: 2204
Joined: Wed Aug 03, 2005 3:53 pm
Location: Huntsville, AL, US

Re: Problem with getting Caller ID by TDM2400P

Postby cosmic17 » Fri Jun 15, 2012 7:00 am

No, I have not. I`ll try!
cosmic17
Newsterisk
 
Posts: 9
Joined: Fri Jun 15, 2012 1:18 am

Re: Problem with getting Caller ID by TDM2400P

Postby cosmic17 » Wed Jun 20, 2012 7:12 am

I found this.
I tried to do like the author said.
I have this result:
Code: Select all
/usr/src/multimon/bin-i686/multimon -a UFSK1200 -t raw ./test.raw
multimod  (C) 1996/1997 by Tom Sailer HB9JNX/AE4WA
available demodulators: POCSAG512 POCSAG1200 POCSAG2400 UFSK1200 CLIPFSK AFSK1200 AFSK2400 AFSK2400_2 AFSK2400_3 HAPN4800 FSK9600 DTMF ZVEI SCOPE
Enabled demodulators: UFSK1200
[0x10][0x00]@
@
[0x10][0x91]
[0x00][0xC0]
[0x06]$
[0x00]
[0x08]$
[0x00][0x04][0x02][0x04][0x10][0x00][0x0C][0x04][0x00]A
[0x00][0x86]
[0x04][0x02])H[0x09]I
=
[0x14][0xA0]H8
[0x83]
[0x83]
[0x04][0x11][0x16][0xFF][0xEF]
[0xEB]
[0xFF]
[0xEF]
[0xFF]
[0xFF]
[0xF7]
[0xAE]
[0x9F]
[0xF7]
[0xF5]
[0xEF]
[0xF6]
[0xFF][0xFF]
[0xEF]
[0xEF]
[0xFF]
[0xF7][0xD7]
[0xFA]
[0xEF][0xFD]
[0xFB]
[0xDF]
{
[0xEF]
[0xF7]
[0xFF]
[0xFF]
[0xFF]
[0xFF]
[0xFF]
[0xFF]
[0xBF]
[0xBB]
[0xF3]
[0xFF]
[0xFF]
[0xEF]
[0xFF]
[0xFF]
[0xFD]
[0xFF]
[0xFF]
[0xBC]
[0xFE]
[0xFF]
[0xFF]
[0xFF]
[0xBF]
[0xFF]

[0xFF]
[0xFF]
[0xFF]
[0xFF]
[0xFF]
o
[0x1B][0xF6]
{
O
E
[0xA4]
[0x11][0x92][0xE9]
[0x8D]
\
[0xD1]
[0x0E])
.
7
[0xC9]
[0xF8]
[0xFF]
o
[0x00]X[0xE0]
[0xEA][0x01]
~
?
r
[0xEF]
[0xFD]
[0xFB]
[0x1F][0xF7]
[0x1B][0xBB]
[0xDD]
[0xFF]`
[0xFF]
[0xF4]
[0xCF][0xEB]
[0xF5]
[0xFB]
[0xF7]
T
[0xFE]
[0xEF]
[0xED]
[0xFF]
[0xBB]
[0x8E]
[0xE9]
[0xD7][0xF7]
[0xFE]
[0xFF]
[0xDB]
[0xE6]
[0xFF]
[0xFF]
[0xFD]
[0xFF]
[0xEA]
[0xFB][0xFF][0xFF]
[0xBF]
[0xFF]
[0xFF]
[0x08]B

B
[0xA0]
7
[0x02]t
[0xB7][0xA7]
%
%
[0xFB]
[0x10][0x02][0x05][0xB0]
[0xCF]
[0xFF]
R
[0xAA]
[0x00][0x80]
1
x[0x01]
[0xEA]
[0x00]8
[0x00][0x00][0x00][0x00]0
[0x00][0x00][0x00][0x00][0x88]
L[0x00]
[0x08]D
C[0x04]
[0x02][0x00][0x00][0x02][0x01][0x0A][0x00][0x00][0x00][0xC1]@
[0x00]`[0x10]
P
[0x00][0x01]
1[0x00]
[0x07][0x00][0x04]
D
9
[0x00][0x00][0x02][0x02][0x00][0x00][0x00][0x00][0x80]
[0x09][0x00]R
[0x0A][0x10][0x08][0x00]

Code: Select all
/usr/src/multimon/bin-i686/multimon -a ZVEI -t raw ./test.raw
multimod  (C) 1996/1997 by Tom Sailer HB9JNX/AE4WA
available demodulators: POCSAG512 POCSAG1200 POCSAG2400 UFSK1200 CLIPFSK AFSK1200 AFSK2400 AFSK2400_2 AFSK2400_3 HAPN4800 FSK9600 DTMF ZVEI SCOPE
Enabled demodulators: ZVEI
ZVEI: f
ZVEI: f
ZVEI: f
ZVEI: f
ZVEI: f
ZVEI: 2
ZVEI: f
ZVEI: 2
ZVEI: 2
ZVEI: f
ZVEI: f
ZVEI: 2
ZVEI: f

But I don`t understand what does it mean;(
Also I upgraded my dahdi driver from 2.4 to 2.6.1 - nothing result:(
cosmic17
Newsterisk
 
Posts: 9
Joined: Fri Jun 15, 2012 1:18 am

Re: Problem with getting Caller ID by TDM2400P

Postby malcolmd » Wed Jun 20, 2012 7:21 am

Having read that, the result of that person's experience was that they needed to:
a) be using a version of Asterisk newer than 1.2, which you are, since you're using DAHDI because DAHDI doesn't work with Asterisk 1.2

b) change the ring debounce timeout from 64 to 32.

You can affect that when loading the wctdm24xxp driver module by setting the ringdebounce module parameter. The README file that comes with the DAHDI download provides advice on setting module parameters when loading modules.

ymmv, I do not work in the Support department. :D
Malcolm Davenport
Digium, Inc. | Senior Product Manager
malcolmd
Moves Like Spencer
 
Posts: 2204
Joined: Wed Aug 03, 2005 3:53 pm
Location: Huntsville, AL, US

Re: Problem with getting Caller ID by TDM2400P

Postby cosmic17 » Fri Jun 22, 2012 12:48 am

Malcolmd, tnanks for your reply.
malcolmd wrote:Having read that, the result of that person's experience was that they needed to:
a) be using a version of Asterisk newer than 1.2, which you are, since you're using DAHDI because DAHDI doesn't work with Asterisk 1.2

I`ll try to update my Elastix distr with Asterisk.
malcolmd wrote:b) change the ring debounce timeout from 64 to 32.

I set in my chan_dahdi.conf
Code: Select all
debounce=32

but had nothing result:(
But now in asterisk log I can see:
[Jun 22 09:30:31] VERBOSE[8471] chan_dahdi.c: -- Starting simple switch on 'DAHDI/1-1'
[Jun 22 09:30:35] NOTICE[8471] chan_dahdi.c: Got event 18 (Ring Begin)...
[Jun 22 09:30:36] NOTICE[8471] chan_dahdi.c: Got event 2 (Ring/Answered)...

[Jun 22 09:30:36] VERBOSE[8471] pbx.c: -- Executing [s@from-pstn:1] NoOp("DAHDI/1-1", "---") in new stack
[Jun 22 09:30:36] VERBOSE[8471] pbx.c: -- Executing [s@from-pstn:2] Gosub("DAHDI/1-1", "app-blacklist-check,s,1") in new stack

As i remember it`s the first time when this messages appear...As I understand there is no polarity. But I really don`t know can it help me..
cosmic17
Newsterisk
 
Posts: 9
Joined: Fri Jun 15, 2012 1:18 am

Re: Problem with getting Caller ID by TDM2400P

Postby malcolmd » Fri Jun 22, 2012 7:07 am

I don't know if that chan_dahdi.conf setting applies to the analog cards or if that's the debounce time on digital lines. Like I said, the thread you referenced was changing the module parameter.
Malcolm Davenport
Digium, Inc. | Senior Product Manager
malcolmd
Moves Like Spencer
 
Posts: 2204
Joined: Wed Aug 03, 2005 3:53 pm
Location: Huntsville, AL, US

Re: Problem with getting Caller ID by TDM2400P

Postby cosmic17 » Mon Jun 25, 2012 1:17 am

malcolmd wrote: Like I said, the thread you referenced was changing the module parameter.

Success!!
I tried to set, as you said, module parameter:
Code: Select all
modprobe wctdm24xxp ringdebounce=32

but had nothing result..Than I set:
Code: Select all
modprobe wctdm24xxp ringdebounce=128

and now I can see the number of incoming call!!
Thank you very much for you help!!
But can you explain me what this parameter means? Because I can`t find any infromation about it!
cosmic17
Newsterisk
 
Posts: 9
Joined: Fri Jun 15, 2012 1:18 am

Re: Problem with getting Caller ID by TDM2400P

Postby cosmic17 » Mon Jun 25, 2012 4:11 am

OOoohh my God...
Now I find that I can get caller id not in all incoming calls, only in some (2 from 15). And it is not depends on mobile operator:(
cosmic17
Newsterisk
 
Posts: 9
Joined: Fri Jun 15, 2012 1:18 am

Re: Problem with getting Caller ID by TDM2400P

Postby malcolmd » Mon Jun 25, 2012 7:21 am

Another plug for letting Digium's Support department help you to troubleshoot...
Malcolm Davenport
Digium, Inc. | Senior Product Manager
malcolmd
Moves Like Spencer
 
Posts: 2204
Joined: Wed Aug 03, 2005 3:53 pm
Location: Huntsville, AL, US

Re: Problem with getting Caller ID by TDM2400P

Postby sruffell » Mon Jun 25, 2012 8:42 am

cosmic17, In addition to contacting Digium's support department, make sure you're running DAHDI-Linux 2.6.1. When I see intermittent caller ID I think of this fix: wctdm24xxp: Shorten RINGOFF debounce interval from 512ms to 128ms.
sruffell
Oldsterisk
 
Posts: 92
Joined: Fri Jan 07, 2011 2:02 pm

Re: Problem with getting Caller ID by TDM2400P

Postby cosmic17 » Wed Jun 27, 2012 4:21 am

Thank you, but I think there is something else...
Today I found (see my actions):
1. The line is free
2. Incoming call --> callerid is "Unknown"
3. immediately incoming call from the same or other phone --> I can see callerid
It`s not depend on phone operator.
It`s look like my digium card is on "sleeping mode" when there are no incoming calls...
On Panasonic device there is no such problem.
Maybe there is some wctdm24xxp option or something else that is keep on digium card in active mode?
cosmic17
Newsterisk
 
Posts: 9
Joined: Fri Jun 15, 2012 1:18 am

Re: Problem with getting Caller ID by TDM2400P

Postby sruffell » Wed Jun 27, 2012 12:14 pm

cosmic17, there is no sleeping mode. Is it possible that your Asterisk server is short on memory and after being idle for awhile needs to be paged back into memory? How much memory do you have installed on this machine?

See https://issues.asterisk.org/jira/browse/DAHLIN-241
sruffell
Oldsterisk
 
Posts: 92
Joined: Fri Jan 07, 2011 2:02 pm

Re: Problem with getting Caller ID by TDM2400P

Postby cosmic17 » Wed Jun 27, 2012 10:47 pm

sruffell wrote:How much memory do you have installed on this machine?

There is 3Gb memory.
Code: Select all
top - 09:04:37 up 2 days, 5 min,  3 users,  load average: 0.24, 0.28, 0.18
Tasks: 163 total,   1 running, 162 sleeping,   0 stopped,   0 zombie
Cpu0  :  3.0%us,  3.9%sy,  0.0%ni, 90.2%id,  0.2%wa,  2.6%hi,  0.1%si,  0.0%st
Cpu1  :  0.3%us,  0.2%sy,  0.0%ni, 99.4%id,  0.1%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu2  :  0.2%us,  0.1%sy,  0.0%ni, 99.6%id,  0.1%wa,  0.0%hi,  0.0%si,  0.0%st
Cpu3  :  0.2%us,  0.1%sy,  0.0%ni, 99.6%id,  0.1%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   3628368k total,  3527604k used,   100764k free,   171684k buffers
Swap:  4096564k total,       64k used,  4096500k free,  3024940k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                                                                             
27910 asterisk  16   0 52132  21m 9316 S  4.8  0.6  23:04.04 asterisk       

Thanks for link, I`ll search this material.
cosmic17
Newsterisk
 
Posts: 9
Joined: Fri Jun 15, 2012 1:18 am


Return to AsteriskNOW - Digium Telephony Interface Cards

Who is online

Users browsing this forum: No registered users and 1 guest