[Asterisk-Users] Asterisk + NetJet (ISDN4Linux)

Adam Goryachev mailinglists at websitemanagers.com.au
Tue Sep 7 07:21:39 MST 2004


Well, it has been a long time since I used my NetJet S cards with
asterisk (moved to the quad PRI card) but I am trying to get this
working again for home use.

Basically, what I am using is this:
Linux 2.6.8.1:
config lines:
# ISDN subsystem
CONFIG_ISDN=y
# Old ISDN4Linux
CONFIG_ISDN_I4L=y
# CONFIG_ISDN_PPP is not set
CONFIG_ISDN_AUDIO=y
# CONFIG_ISDN_TTY_FAX is not set
CONFIG_ISDN_DRV_HISAX=y
CONFIG_HISAX_EURO=y
CONFIG_HISAX_MAX_CARDS=2
CONFIG_HISAX_NETJET=y

Anything not shown is "not set"

Then I have asterisk modem.conf configured as:
[interfaces]
context=remote
driver=i4l
dialtype=tone
mode=immediate
echocancel=yes
usecallerid=yes
features=dtmf,noquelch
group=1         ; group=1,2,3,9-12
msn=83390897
incomingmsn=83390897
callerid=asreceived
device => /dev/ttyI0
device => /dev/ttyI1

Then I start asterisk:
 [chan_modem.so] => (Generic Voice Modem Driver)
  == Parsing '/etc/asterisk/modem.conf': Found
  == Loading modem driver chan_modem_i4l.so => (ISDN4Linux Emulated
Modem Driver)
    -- Configured modem /dev/ttyI0 with driver i4l (Linux ISDN)
    -- Configured modem /dev/ttyI1 with driver i4l (Linux ISDN)
  == Registered channel type 'Modem' (Generic Voice Modem Channel
Driver)

Then I have my extensions.conf:
[remote]
exten => s,1,Answer
exten => s,2,DigitTimeout,5
exten => s,3,ResponseTimeout,10
exten => s,4,SetMusicOnHold,default
exten => s,5,NoOp
exten => s,6,Background,local/Thanks_for_calling
exten => i,1,Background,invalid
exten => i,2,Goto,s|6
exten => t,1,Background,invalid
exten => t,2,Goto,s|6

Then I call into asterisk from a remote phone (mobile phone):
*CLI>   == Starting Modem[i4l]/ttyI0 at remote,83390897,1 failed so
falling back to exten 's'
    -- Executing Answer("Modem[i4l]/ttyI0", "") in new stack
Sep  8 00:09:17 DEBUG[1103997872]: chan_modem_i4l.c:555 i4l_answer:
Detecting DTMF inband with sw DSP on /dev/ttyI0
    -- Executing DigitTimeout("Modem[i4l]/ttyI0", "5") in new stack
    -- Set Digit Timeout to 5
    -- Executing ResponseTimeout("Modem[i4l]/ttyI0", "10") in new stack
    -- Set Response Timeout to 10
    -- Executing SetMusicOnHold("Modem[i4l]/ttyI0", "default") in new
stack
    -- Executing NoOp("Modem[i4l]/ttyI0", "") in new stack
    -- Executing BackGround("Modem[i4l]/ttyI0",
"local/Thanks_for_calling") in new stack
    -- Playing 'local/Thanks_for_calling' (language 'en')

This is the actual problem, I don't hear any audio on the phone,
nothing, just totally dead.
Eventually I get this timeout:

    -- Timeout on Modem[i4l]/ttyI0
  == CDR updated on Modem[i4l]/ttyI0
    -- Executing BackGround("Modem[i4l]/ttyI0", "invalid") in new stack
    -- Playing 'invalid' (language 'en')
    -- Executing Goto("Modem[i4l]/ttyI0", "s|6") in new stack
    -- Goto (remote,s,6)
    -- Executing BackGround("Modem[i4l]/ttyI0",
"local/Thanks_for_calling") in new stack
    -- Playing 'local/Thanks_for_calling' (language 'en')

I still haven't heard ANY audio at all, so I hangup and get this:

Sep  8 00:09:50 DEBUG[1103997872]: chan_modem_i4l.c:413 i4l_read: Value
of escape is ^ (3)...
    -- Hungup 'Modem[i4l]/ttyI0'

So, I recall needing a ISDN Audio patch for linux 2.4.x, but AFAICT,
this patch is not needed for anything newer than 2.4.20, which I assume
2.6.8 is newer. Anybody got any suggestions/thoughts/etc ??

I don't really mind if the audio is bad, or whatever, I just need to set
it up for testing purposes etc...

Thanks,
Adam





More information about the asterisk-users mailing list