keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about IX100

IX100 and chan_misdn problem

15 years 6 months ago #1872 by josephc
Hi

I have an IX100 with 8GB Cf card & B200M Bri card.

My problem is that when I reboot the box asterisk doe not load mISDN , in the CLI module load chan_misd produces the following error ERROR[3607]: chan_misdn.c:4979 load_module: Unable to initialize mISDN.

lsmod shows the mISDN modules are loaded.

Now if i do stop asterisk, mISDN stop and again mISDN stop then mISDN start and start asterisk again the misdn now works in asterisk.

Any ideas about how to get mISDN to work without going through the above.

Thanks for any sugestions

Joe
15 years 6 months ago #1874 by james.zhu
hello:
please add the misdn in rc.local if you want to boot uo the misdn when system boots. you have to add the misdn.so in modules in /etc/asterisk.
regards!
James.zhu

15 years 6 months ago #1895 by josephc
Hi James

Still working on the same problem

got this from the logs

voyage:~# misdnportinfo

Found no card. Please be sure to load card drivers.

mISDN_close: fid(3) isize(131072) inbuf(0x804c060) irp(0x804c060) iend(0x804c060)
voyage:~# remountrw
voyage:~# mISDN start
-- Loading mISDN modules --
>> /sbin/modprobe --ignore-install capi
>> /sbin/modprobe --ignore-install mISDN_core debug=0
>> /sbin/modprobe --ignore-install mISDN_l1 debug=0
>> /sbin/modprobe --ignore-install mISDN_l2 debug=0
>> /sbin/modprobe --ignore-install l3udss1 debug=0
>> /sbin/modprobe --ignore-install mISDN_capi
>> /sbin/modprobe --ignore-install hfcmulti type=0x4 protocol=0x2,0x2 layermask=0xf,0xf poll=128 debug=0 timer=0
>> /sbin/modprobe --ignore-install mISDN_dsp debug=0 options=0
voyage:~# misdnportinfo

Found no card. Please be sure to load card drivers.

mISDN_close: fid(3) isize(131072) inbuf(0x804c060) irp(0x804c060) iend(0x804c060)
voyage:~# mISDN start
-- Loading mISDN modules --
>> /sbin/modprobe --ignore-install capi
>> /sbin/modprobe --ignore-install mISDN_core debug=0
>> /sbin/modprobe --ignore-install mISDN_l1 debug=0
>> /sbin/modprobe --ignore-install mISDN_l2 debug=0
>> /sbin/modprobe --ignore-install l3udss1 debug=0
>> /sbin/modprobe --ignore-install mISDN_capi
>> /sbin/modprobe --ignore-install hfcmulti type=0x4 protocol=0x2,0x2 layermask=0xf,0xf poll=128 debug=0 timer=0
>> /sbin/modprobe --ignore-install mISDN_dsp debug=0 options=0
voyage:~# misdnportinfo

Found no card. Please be sure to load card drivers.

mISDN_close: fid(3) isize(131072) inbuf(0x804c060) irp(0x804c060) iend(0x804c060)
voyage:~# mISDN stop
-- Unloading mISDN modules --
>> /sbin/modprobe -r --ignore-remove mISDN_dsp mISDN_capi l3udss1 mISDN_l2 mISDN_l1 hfcmulti
>> /sbin/modprobe -r --ignore-remove mISDN_core
voyage:~# mISDN stop
-- Unloading mISDN modules --
voyage:~# mISDN start
-- Loading mISDN modules --
>> /sbin/modprobe --ignore-install capi
>> /sbin/modprobe --ignore-install mISDN_core debug=0
>> /sbin/modprobe --ignore-install mISDN_l1 debug=0
>> /sbin/modprobe --ignore-install mISDN_l2 debug=0
>> /sbin/modprobe --ignore-install l3udss1 debug=0
>> /sbin/modprobe --ignore-install mISDN_capi
>> /sbin/modprobe --ignore-install hfcmulti type=0x4 protocol=0x2,0x2 layermask=0xf,0xf poll=128 debug=0 timer=0
>> /sbin/modprobe --ignore-install mISDN_dsp debug=0 options=0
voyage:~# misdnportinfo

Port 1: TE-mode BRI S/T interface line (for phone lines)
-> Protocol: DSS1 (Euro ISDN)
-> childcnt: 2
Port 2: TE-mode BRI S/T interface line (for phone lines)
-> Protocol: DSS1 (Euro ISDN)
-> childcnt: 2

mISDN_close: fid(3) isize(131072) inbuf(0x804c060) irp(0x804c060) iend(0x804c060)

Any ideas

Joseph
15 years 6 months ago #1896 by josephc
Hi James the following makes no sense

voyage:~# reboot
WARNING: could not determine runlevel - doing soft reboot
(it's better to use shutdown instead of reboot from the command line)
voyage:~# Connection to 86.41.37.17 closed by remote host.
Connection to 86.41.37.17 closed.
default@main:~> ssh This email address is being protected from spambots. You need JavaScript enabled to view it.
[email protected]'s password:
voyage:~# misdnportinfo

Found no card. Please be sure to load card drivers.

mISDN_close: fid(3) isize(131072) inbuf(0x804c060) irp(0x804c060) iend(0x804c060)
voyage:~# mISDN start
-- Loading mISDN modules --
>> /sbin/modprobe --ignore-install capi
WARNING: /etc/modprobe.conf line 1: ignoring bad line starting with 'wctdm'
>> /sbin/modprobe --ignore-install mISDN_core debug=0
WARNING: /etc/modprobe.conf line 1: ignoring bad line starting with 'wctdm'
>> /sbin/modprobe --ignore-install mISDN_l1 debug=0
WARNING: /etc/modprobe.conf line 1: ignoring bad line starting with 'wctdm'
>> /sbin/modprobe --ignore-install mISDN_l2 debug=0
WARNING: /etc/modprobe.conf line 1: ignoring bad line starting with 'wctdm'
>> /sbin/modprobe --ignore-install l3udss1 debug=0
WARNING: /etc/modprobe.conf line 1: ignoring bad line starting with 'wctdm'
>> /sbin/modprobe --ignore-install mISDN_capi
WARNING: /etc/modprobe.conf line 1: ignoring bad line starting with 'wctdm'
>> /sbin/modprobe --ignore-install hfcmulti type=0x4 protocol=0x2,0x2 layermask=0xf,0xf poll=128 debug=0 timer=0
WARNING: /etc/modprobe.conf line 1: ignoring bad line starting with 'wctdm'
>> /sbin/modprobe --ignore-install mISDN_dsp debug=0 options=0
WARNING: /etc/modprobe.conf line 1: ignoring bad line starting with 'wctdm'
voyage:~# misdnportinfo

Found no card. Please be sure to load card drivers.

mISDN_close: fid(3) isize(131072) inbuf(0x804c060) irp(0x804c060) iend(0x804c060)
voyage:~# remountrw
voyage:~# misdnportinfo

Found no card. Please be sure to load card drivers.

mISDN_close: fid(3) isize(131072) inbuf(0x804c060) irp(0x804c060) iend(0x804c060)
voyage:~# mISDN start
-- Loading mISDN modules --
>> /sbin/modprobe --ignore-install capi
>> /sbin/modprobe --ignore-install mISDN_core debug=0
>> /sbin/modprobe --ignore-install mISDN_l1 debug=0
>> /sbin/modprobe --ignore-install mISDN_l2 debug=0
>> /sbin/modprobe --ignore-install l3udss1 debug=0
>> /sbin/modprobe --ignore-install mISDN_capi
>> /sbin/modprobe --ignore-install hfcmulti type=0x4 protocol=0x2,0x2 layermask=0xf,0xf poll=128 debug=0 timer=0
>> /sbin/modprobe --ignore-install mISDN_dsp debug=0 options=0
voyage:~# misdnportinfo

Found no card. Please be sure to load card drivers.

mISDN_close: fid(3) isize(131072) inbuf(0x804c060) irp(0x804c060) iend(0x804c060)
voyage:~# mISDN start
-- Loading mISDN modules --
>> /sbin/modprobe --ignore-install capi
>> /sbin/modprobe --ignore-install mISDN_core debug=0
>> /sbin/modprobe --ignore-install mISDN_l1 debug=0
>> /sbin/modprobe --ignore-install mISDN_l2 debug=0
>> /sbin/modprobe --ignore-install l3udss1 debug=0
>> /sbin/modprobe --ignore-install mISDN_capi
>> /sbin/modprobe --ignore-install hfcmulti type=0x4 protocol=0x2,0x2 layermask=0xf,0xf poll=128 debug=0 timer=0
>> /sbin/modprobe --ignore-install mISDN_dsp debug=0 options=0
voyage:~# misdnportinfo

Found no card. Please be sure to load card drivers.

mISDN_close: fid(3) isize(131072) inbuf(0x804c060) irp(0x804c060) iend(0x804c060)
voyage:~# mISDN stop
-- Unloading mISDN modules --
>> /sbin/modprobe -r --ignore-remove mISDN_dsp mISDN_capi l3udss1 mISDN_l2 mISDN_l1 hfcmulti
>> /sbin/modprobe -r --ignore-remove mISDN_core
voyage:~# mISDN start
-- Loading mISDN modules --
>> /sbin/modprobe --ignore-install capi
>> /sbin/modprobe --ignore-install mISDN_core debug=0
>> /sbin/modprobe --ignore-install mISDN_l1 debug=0
>> /sbin/modprobe --ignore-install mISDN_l2 debug=0
>> /sbin/modprobe --ignore-install l3udss1 debug=0
>> /sbin/modprobe --ignore-install mISDN_capi
>> /sbin/modprobe --ignore-install hfcmulti type=0x4 protocol=0x2,0x2 layermask=0xf,0xf poll=128 debug=0 timer=0
>> /sbin/modprobe --ignore-install mISDN_dsp debug=0 options=0
voyage:~# mISDN start
-- Loading mISDN modules --
>> /sbin/modprobe --ignore-install capi
>> /sbin/modprobe --ignore-install mISDN_core debug=0
>> /sbin/modprobe --ignore-install mISDN_l1 debug=0
>> /sbin/modprobe --ignore-install mISDN_l2 debug=0
>> /sbin/modprobe --ignore-install l3udss1 debug=0
>> /sbin/modprobe --ignore-install mISDN_capi
>> /sbin/modprobe --ignore-install hfcmulti type=0x4 protocol=0x2,0x2 layermask=0xf,0xf poll=128 debug=0 timer=0
>> /sbin/modprobe --ignore-install mISDN_dsp debug=0 options=0
voyage:~# misdnportinfo

Port 1: TE-mode BRI S/T interface line (for phone lines)
-> Protocol: DSS1 (Euro ISDN)
-> childcnt: 2
Port 2: TE-mode BRI S/T interface line (for phone lines)
-> Protocol: DSS1 (Euro ISDN)
-> childcnt: 2

mISDN_close: fid(3) isize(131072) inbuf(0x804c060) irp(0x804c060) iend(0x804c060)
voyage:~#

voyage:~# asterisk
voyage:~# asterisk -r
Asterisk 1.4.22, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <This email address is being protected from spambots. You need JavaScript enabled to view it.>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.4.22 currently running on voyage (pid = 5103)
voyage*CLI> help
! Execute a shell command
abort halt Cancel a running halt
ael debug contexts Enable AEL contexts debug (does nothing)
ael debug macros Enable AEL macros debug (does nothing)
ael debug read Enable AEL read debug (does nothing)
ael debug tokens Enable AEL tokens debug (does nothing)
ael nodebug Disable AEL debug messages
ael reload Reload AEL configuration
agent logoff Sets an agent offline
agent show Show status of agents
agent show online Show all online agents
agi debug Enable AGI debugging
agi debug off Disable AGI debugging
agi dumphtml Dumps a list of agi commands in html format
agi show List AGI commands or specific help
cdr status Display the CDR status
console active Sets/displays active console
console answer Answer an incoming console call
console autoanswer Sets/displays autoanswer
console boost Sets/displays mic boost in dB
console dial Dial an extension on the console
console flash Flash a call on the console
console hangup Hangup a call on the console
console mute Disable mic input
console send text Send text to the remote device
console transfer Transfer a call to a different extension
console unmute Enable mic input
core clear profile Clear profiling info
core set debug channel Enable/disable debugging on a channel
core set debug Set level of debug chattiness
core set debug off Turns off debug chattiness
core set global Set global dialplan variable
core set verbose Set level of verboseness
core show applications Shows registered dialplan applications
core show application Describe a specific dialplan application
core show audio codecs Displays a list of audio codecs
core show channels Display information on channels
core show channel Display information on a specific channel
core show channeltypes List available channel types
core show channeltype Give more details on that channel type
core show codecs Displays a list of codecs
core show codec Shows a specific codec
core show config mappings Display config mappings (file names to config engines)
core show file formats Displays file formats
core show file version List versions of files used to build Asterisk
core show functions Shows registered dialplan functions
core show function Describe a specific dialplan function
core show globals Show global dialplan variables
core show hints Show dialplan hints
core show image codecs Displays a list of image codecs
core show image formats Displays image formats
core show license Show the license(s) for this copy of Asterisk
core show profile Display profiling info
core show switches Show alternative switches
core show threads Show running threads
core show translation Display translation matrix
core show uptime Show uptime information
core show version Display version info
core show video codecs Displays a list of video codecs
core show warranty Show the warranty (if any) for this copy of Asterisk
dahdi destroy channel Destroy a channel
dahdi restart Fully restart DAHDI channels
dahdi show cadences List cadences
dahdi show channels Show active DAHDI channels
dahdi show channel Show information on a channel
dahdi show status Show all DAHDI cards status
database del Removes database key/value
database deltree Removes database keytree/values
database get Gets database value
database put Adds/updates database value
database show Shows database contents
database showkey Shows database contents
dialplan add extension Add new extension into context
dialplan add ignorepat Add new ignore pattern
dialplan add include Include context in other context
dialplan reload Reload extensions and *only* extensions
dialplan remove extension Remove a specified extension
dialplan remove ignorepat Remove ignore pattern from context
dialplan remove include Remove a specified include from context
dialplan save Save dialplan
dialplan show Show dialplan
dnsmgr refresh Performs an immediate refresh
dnsmgr reload Reloads the DNS manager configuration
dnsmgr status Display the DNS manager status
dundi debug Enable DUNDi debugging
dundi flush Flush DUNDi cache
dundi lookup Lookup a number in DUNDi
dundi no debug Disable DUNDi debugging
dundi no store history Disable DUNDi historic records
dundi precache Precache a number in DUNDi
dundi query Query a DUNDi EID
dundi show entityid Display Global Entity ID
dundi show mappings Show DUNDi mappings
dundi show peers Show defined DUNDi peers
dundi show peer Show info on a specific DUNDi peer
dundi show precache Show DUNDi precache
dundi show requests Show DUNDi requests
dundi show trans Show active DUNDi transactions
dundi store history Enable DUNDi historic records
feature show Lists configured features
file convert Convert audio file
group show channels Display active channels with group(s)
help Display help list, or specific help on a command
http show status Display HTTP server status
iax2 provision Provision an IAX device
iax2 prune realtime Prune a cached realtime lookup
iax2 reload Reload IAX configuration
iax2 set debug Enable IAX debugging
iax2 set debug jb Enable IAX jitterbuffer debugging
iax2 set debug jb off Disable IAX jitterbuffer debugging
iax2 set debug off Disable IAX debugging
iax2 set debug trunk Enable IAX trunk debugging
iax2 set debug trunk off Disable IAX trunk debugging
iax2 show cache Display IAX cached dialplan
iax2 show channels List active IAX channels
iax2 show firmware List available IAX firmwares
iax2 show netstats List active IAX channel netstats
iax2 show peers List defined IAX peers
iax2 show peer Show details on specific IAX peer
iax2 show provisioning Display iax provisioning
iax2 show registry Display IAX registration status
iax2 show stats Display IAX statistics
iax2 show threads Display IAX helper thread info
iax2 show users List defined IAX users
iax2 test losspct Set IAX2 incoming frame loss percentage
indication add Add the given indication to the country
indication remove Remove the given indication from the country
indication show Display a list of all countries/indications
keys init Initialize RSA key passcodes
keys show Displays RSA key information
local show channels List status of local channels
logger mute Toggle logging output to a console
logger reload Reopens the log files
logger rotate Rotates and reopens the log files
logger show channels List configured log channels
manager show command Show a manager interface command
manager show commands List manager interface commands
manager show connected List connected manager interface users
manager show eventq List manager interface queued events
manager show users List configured manager users
manager show user Display information on a specific manager user
meetme Execute a command on a conference or conferee
mgcp audit endpoint Audit specified MGCP endpoint
mgcp reload Reload MGCP configuration
mgcp set debug Enable MGCP debugging
mgcp set debug off Disable MGCP debugging
mgcp show endpoints List defined MGCP endpoints
misdn port block Blocks the given port
misdn port down Tries to deactivate the L1 on the given port
misdn port unblock Unblocks the given port
misdn port up Tries to establish L1 on the given port
misdn reload Reloads internal mISDN config, read from cfg-file
misdn restart pid Restarts the given pid
misdn restart port Restarts the given port
misdn send calldeflect Sends CallDeflection to mISDN Channel
misdn send digit Sends DTMF Digit to mISDN Channel
misdn send display Sends Text to mISDN Channel
misdn send restart Sends a restart for every bchannel on the given port
misdn set crypt debug Sets CryptDebuglevel of chan_misdn, at the moment, level={1,2}
misdn set debug Sets Debuglevel of chan_misdn
misdn set tics
misdn show channels Shows internal mISDN chan_list
misdn show channel Shows internal mISDN chan_list
misdn show config Shows internal mISDN config, read from cfg-file
misdn show ports stats Shows chan_misdns call statistics per port
misdn show port Shows detailed information for given port
misdn show stacks Shows internal mISDN stack_list
misdn toggle echocancel Toggles EchoCancel on mISDN Channel
mixmonitor Execute a MixMonitor command.
module load Load a module by name
module reload Reload configuration
module show List modules and info
module show like List modules and info
module unload Unload a module by name
moh reload Music On Hold
moh show classes List MOH classes
moh show files List MOH file-based classes
no debug channel
originate Originate a call
pri debug span Enables PRI debugging on a span
pri intense debug span Enables REALLY INTENSE PRI debugging
pri no debug span Disables PRI debugging on a span
pri set debug file Sends PRI debug output to the specified file
pri show debug Displays current PRI debug settings
pri show spans Displays PRI Information
pri show span Displays PRI Information
pri show version Displays version of libpri
pri unset debug file Ends PRI debug output to file
queue add member Add a channel to a specified queue
queue remove member Removes a channel from a specified queue
queue show Show status of a specified queue
realtime load Used to print out RealTime variables.
realtime update Used to update RealTime variables.
restart gracefully Restart Asterisk gracefully
restart now Restart Asterisk immediately
restart when convenient Restart Asterisk at empty call volume
rtcp debug ip Enable RTCP debugging on IP
rtcp debug Enable RTCP debugging
rtcp debug off Disable RTCP debugging
rtcp stats Enable RTCP stats
rtcp stats off Disable RTCP stats
rtp debug ip Enable RTP debugging on IP
rtp debug Enable RTP debugging
rtp debug off Disable RTP debugging
say load set/show the say mode
show parkedcalls Lists parked calls
show queues
sip history Enable SIP history
sip history off Disable SIP history
sip notify Send a notify packet to a SIP peer
sip prune realtime Prune cached Realtime object(s)
sip prune realtime peer Prune cached Realtime peer(s)
sip prune realtime user Prune cached Realtime user(s)
sip reload Reload SIP configuration
sip set debug Enable SIP debugging
sip set debug ip Enable SIP debugging on IP
sip set debug off Disable SIP debugging
sip set debug peer Enable SIP debugging on Peername
sip show channels List active SIP channels
sip show channel Show detailed SIP channel info
sip show domains List our local SIP domains.
sip show history Show SIP dialog history
sip show inuse List all inuse/limits
sip show objects List all SIP object allocations
sip show peers List defined SIP peers
sip show peer Show details on specific SIP peer
sip show registry List SIP registration status
sip show settings Show SIP global settings
sip show subscriptions List active SIP subscriptions
sip show users List defined SIP users
sip show user Show details on specific SIP user
skinny reset Reset Skinny device(s)
skinny set debug Enable Skinny debugging
skinny set debug off Disable Skinny debugging
skinny show devices List defined Skinny devices
skinny show lines List defined Skinny lines per device
sla show stations Show SLA Stations
sla show trunks Show SLA Trunks
soft hangup Request a hangup on a given channel
stop gracefully Gracefully shut down Asterisk
stop now Shut down Asterisk immediately
stop when convenient Shut down Asterisk at empty call volume
stun debug Enable STUN debugging
stun debug off Disable STUN debugging
transcoder show Display DAHDI transcoder utilization.
udptl debug Enable UDPTL debugging
udptl debug ip Enable UDPTL debugging on IP
udptl debug off Disable UDPTL debugging
voicemail show users List defined voicemail boxes
voicemail show zones List zone message formats
voyage*CLI>

any ideas

Joseph
15 years 6 months ago #1899 by james.zhu
hello:
i will check the problem. i think it is related with system booting or kernel. some system delay is not reasonable for hardware probe. anyway, i will check it.
regards!
James.zhu

15 years 6 months ago #1902 by james.zhu
hello, all of users:
since the ix100 hardware is not strong, so what we have to do is, before start the misdn, wait for 10 second, the start mISDN.
if you have a problem that b200m and b400mcan not boot during system booting, please try check few things:
1) update-rc.d mISDN defaults 25 30
2) edit the /etc/modprobe.d/mISDN, change to
==================================
install hfcmulti /usr/sbin/mISDN start; not misdn-init
remove hfcmulti /usr/sbin/mISDN stop ; not misdn-init
==================================
3) edit the mISDN file under /etc/init.d
================
function run_start_commands
{
local i=0
sleep 10 ; add 10 to wait the system is ready
echo "-- Loading mISDN modules --"
while [ ! -z "${START_COMMANDS[${i}]}" ]; do
echo ">> ${START_COMMANDS[${i}]}"
eval "${START_COMMANDS[${i}]}"
let "i = ${i} + 1"
done
}
================
4) make sure the mISDN boots first, then asterisk ...
if the card is working, dmesg will show the 1 device is registered.
============================
ISDN L1 driver version 1.20
ISDN L2 driver version 1.32
mISDN: DSS1 Rev. 1.47
mISDN Capi 2.0 driver file version 1.21
mISDN: HFC-multi driver Rev. 1.68
HFC-multi: card manufacturer: 'Cologne Chip AG' card name: 'HFC-2S OpenVox Card' clock: double
HFC-2S#1: defined at IOBASE 0x1800 IRQ 11 HZ 1000 leds-type 2
HFC_multi: resetting HFC with chip ID=0xc revision=1
hfcpci_probe: DIPs(0x1) jumpers(0x0)
1 devices registered
mISDN_dsp: Audio DSP Rev. 1.29 (debug=0x0) EchoCancellor MG2 dtmfthreshold(100)
===========================
regards!
james.zhu

Time to create page: 0.044 seconds
Powered by Kunena Forum