[Asterisk-Users] Incoming call on LineJack's LINE/FXO is not answered by *

Michael asterisk at wm.mybw.net
Fri Dec 26 07:05:12 MST 2003


Hello All...

I have searched in the archive and also followed Zara's instruction on getting 
incoming calls to work with Asterisk...but I still can't get Asterisk to answer 
incoming call on Linejack's LINE port.

I attached a phone set to the PHONE port, and telco line to the LINE port on 
the Linejack(ISA) card.

I have downloaded, compiled and installed the newest driver for Linkjack from 
Openh323.org; the driver version/file is "ixj-3.1.0-src.tar.gz".  Here is 
the "cat /proc/ixj" output before Asterisk is started:

----------------[START A]
$Id: ixj.c,v 1.103 2003/10/23 00:29:48 dereksmithies Exp $
$Id: ixj.h,v 1.18 2003/09/18 09:52:15 dereksmithies Exp $
$Id: ixjuser.h,v 1.14 2003/08/31 22:26:43 dereksmithies Exp $
$Id: ixj_data.h,v 1.18 2003/09/18 09:52:15 dereksmithies Exp $
Driver version 3.1.0
sizeof IXJ struct 24036 bytes
sizeof DAA struct 642 bytes
Using old telephony API
Debugging flags: 


Card Num 0
DSP Base Address 0x0300
XILINX Base Address 0x0318/0x00
DSP Type 8021
DSP Version 01.15
Serial Number 331a004c
Card Type = Internet Linejack Country = US (1)
Readers 0
Writers 0
Capabilities 15
DSP Processor load 212
Play Codec : undefined
Record Codec : undefined
AEC none
Rec volume 0x200
Play volume 0x180
DTMF prescale 0x10
Hook:  on hook
POTS Correct 1
PSTN line plugged in 1
POTS to PSTN 1
DAA PSTN On Hook
DAA VDD OK = 0
DAA CR0 2 3 4.5 = 0xff 0x04 0x00 0x02 0x02 
DAA XR0 = 0x10
Port pstn
SLIC state PLD_SLIC_STATE_STANDBY
Base Frame 07.f0
CID Base Frame  0
Frames Read 150
Frames Written 149
Pots send ring pattern:  [1000]    3000  [1000]    3000 
rcvd ring     [0]       0     [0]       0     [0]       0     [0]       0     
[0]       0     [0]       0     [0]       0     [0]       0 
cadence 0       0     [0]       0     [0]       0     [0]       0     [0]       
0     [0]       0     [0]       0     [0]       0     [0] 
cadence 1       0     [0]       0     [0]       0     [0]       0     [0]       
0     [0]       0     [0]       0     [0]       0     [0] 
cadence 2       0     [0]       0     [0]       0     [0]       0     [0]       
0     [0]       0     [0]       0     [0]       0     [0] 
cadence 3       0     [0]       0     [0]       0     [0]       0     [0]       
0     [0]       0     [0]       0     [0]       0     [0] 
Mixer vals: 00 00 04 04 80 80 80 80 80 80 80 80 00 80 80 00  -- 00 0c 00 00 01 
01 00 00 00 01 00 00 00 00 00 00 
Wink durations. 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
-----------------------[END A]


Here is lsmod output:

Module                  Size  Used by
ixj                   111328   0 
phonedev                2784   1  [ixj]
3c59x                  26016   2 


I then compiled and installed Asterisk and its sample configs, and I 
modified "phone.conf" to as:

[interfaces]
;mode=immediate
;mode=dialtone
mode=fxo
format=slinear
context=default
device => /dev/phone0

Asterisk started fine with the settings (command: asterisk -dvvvvc)...and when 
I make a call, from a seperate phone line, to Linejack's LINE, it just keeps on 
ringing, and Asterisk doesn't responde to the incoming call.  I also tried 
setting "context" to 'local' and 'demo', which I found out later that default 
included 'demo' context, and they didn't help either.  I also tried with about 
20 rings; no answer, and I hung up.  I can see the  Linejack's status 
as "ringing" --- seen from "cat /proc/ixj" :

---------------[output START B]
Card Type = Internet Linejack Country = US (1)
Readers 1
Writers 1
Capabilities 15
DSP Processor load 146
Play Codec : undefined
Record Codec : undefined
AEC med
Rec volume 0x100
Play volume 0x100
DTMF prescale 0x10
Hook:  on hook
POTS Correct 1
PSTN line plugged in 1
POTS to PSTN 1
DAA PSTN Ringing
Ringing state = 0
DAA VDD OK = 1
DAA CR0 2 3 4.5 = 0xff 0x04 0x00 0x02 0x02 
DAA XR0 = 0x04
Port pstn
SLIC state PLD_SLIC_STATE_STANDBY
Base Frame 07.f0
CID Base Frame  0
Frames Read 0
Frames Written 0
Pots send ring pattern:  [1000]    3000  [1000]    3000 
rcvd ring  [2220]    3750  [2220]    3750  [2220]     110     [0]       0     
[0]       0     [0]       0     [0]       0     [0]       0 
cadence 0       0     [0]       0     [0]       0     [0]       0     [0]       
0     [0]       0     [0]       0     [0]       0     [0] 
cadence 1       0     [0]       0     [0]       0     [0]       0     [0]       
0     [0]       0     [0]       0     [0]       0     [0] 
cadence 2       0     [0]       0     [0]       0     [0]       0     [0]       
0     [0]       0     [0]       0     [0]       0     [0] 
cadence 3       0     [0]       0     [0]       0     [0]       0     [0]       
0     [0]       0     [0]       0     [0]       0     [0] 
Mixer vals: 00 00 04 04 80 80 80 80 80 80 80 80 00 80 80 00  -- 00 0c 00 00 01 
01 00 00 00 01 00 00 00 00 00 00 
Wink durations. 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
-----------------------[output END B]

Is the ring cadence values from "rcvd ring" shown above normal?  I am not sure 
if it's the cadence from the line that is causing Asterisk not be signaled that 
there is an incoming call.... (thinking about going into the source code to 
check how this is done....)

If I change the settings in "phone.conf" to "mode=immediate" 
or "mode=dialtone", I can hear the demo-congrat voice from the Asterisk system 
and navigate the demo menu without a problem.

So...I am stuck on this problem for the moment.... Anyone has any insight or 
suggestion on this?? Did I miss a configuration somewhere? Or misconfigured 
something? Help me please! :)

By the way, I am using RedHat 7.2 with kernel 2.4.19.


Thanks!

Michael W.

p.s. module ls output:
root> ls -l/lib/modules/2.4.19/kernel/drivers/telephony/
total 172
-rwxr-xr-x    1 root     root       159956 Dec 26 13:33 ixj.o
-rwxr-xr-x    1 root     root         4864 Dec 26 13:33 phonedev.o

p.s. with debug and verbose on, and with mode=immediate,  the console outputs 
what Asterisk is doing....however, with mode=fxo,  the console prompt just sits 
there...nothing is outputed...




-------------------------------------------------





More information about the asterisk-users mailing list