DAHDI Pickup Problem

Hi,

I have an OpenVox A400E connected to two analogue UK BT phone lines. 9 times out of 10 they work no problem and asterisk has no issues with it. On some occasions asterisk does not answer the phone, and it rings and rings. It seems to get a ‘CID timed out waiting for ring. Exiting simple switch’ message on the fail log, but the number does get captured on the line before.

Here is a sample failed answer log.

[Apr 19 10:12:43] VERBOSE[25997] logger.c:   == Starting post polarity CID detection on channel 1
[Apr 19 10:12:43] DEBUG[25997] dsp.c: dsp busy pattern set to 0,0
[Apr 19 10:12:43] VERBOSE[27094] logger.c:     -- Starting simple switch on 'DAHDI/1-1'
[Apr 19 10:12:44] NOTICE[27094] chan_dahdi.c: CallerID number: xxxxxxxxxxx, name: (null), flags=4
[Apr 19 10:12:46] WARNING[27094] chan_dahdi.c: CID timed out waiting for ring. Exiting simple switch
[Apr 19 10:12:46] VERBOSE[27094] logger.c:     -- Hungup 'DAHDI/1-1'
[Apr 19 10:12:53] VERBOSE[25997] logger.c:   == Starting post polarity CID detection on channel 1
[Apr 19 10:12:53] DEBUG[25997] dsp.c: dsp busy pattern set to 0,0
[Apr 19 10:12:53] VERBOSE[27095] logger.c:     -- Starting simple switch on 'DAHDI/1-1'
[Apr 19 10:13:05] WARNING[27095] chan_dahdi.c: CID timed out waiting for ring. Exiting simple switch
[Apr 19 10:13:05] VERBOSE[27095] logger.c:     -- Hungup 'DAHDI/1-1' 

A restart of asterisk rectifies the problem and the call log then looks like this.

[Apr 19 10:15:57] VERBOSE[27105] logger.c:   == Starting post polarity CID detection on channel 1
[Apr 19 10:15:57] DEBUG[27105] dsp.c: dsp busy pattern set to 0,0
[Apr 19 10:15:57] VERBOSE[27132] logger.c:     -- Starting simple switch on 'DAHDI/1-1'
[Apr 19 10:15:58] NOTICE[27132] chan_dahdi.c: CallerID number: xxxxxxxxxxx, name: (null), flags=4
[Apr 19 10:15:59] VERBOSE[27132] logger.c:     -- Executing [s@from-pstn:1] Set("DAHDI/1-1", "__FROM_DID=s") in new stack
[Apr 19 10:15:59] VERBOSE[27132] logger.c:     -- Executing [s@from-pstn:2] Gosub("DAHDI/1-1", "app-blacklist-check|s|1") in new stack
[Apr 19 10:15:59] VERBOSE[27132] logger.c:     -- Executing [s@app-blacklist-check:1] LookupBlacklist("DAHDI/1-1", "") in new stack

I am using Asterisk 1.4.25.1, and DAHDI 2.2.1

Anyone have any idea what the issue could be. Thanks.