Hi all, I configured Asterisk as shown in http://www.voip-info.org/wiki-Asterisk+ISDN4Linux The box running Asterisk under SuSE 9.0 Pro has a "Eicon Diva Server BRI 2M" ISDN card attached and it seems to be recognized by the system. I added the following lines to: * modem.conf driver=i4l ... group=1 msn=+34xxxxxxxxx device => /dev/ttyI0 device => /dev/ttyI1 --- * extensions.conf TRUNK=Modem/g1 ... exten => mmielke,1,Dial(${TRUNK}:0yyyyyyyy) ;yyyyyyyy is cell-phone number... ... --- With all this, I get the following error messages when starting Asterisk: --- ... == Parsing '/etc/asterisk/modules.conf': Found [chan_modem.so] => (Generic Voice Modem Driver) == Parsing '/etc/asterisk/modem.conf': Found == Loading modem driver chan_modem_i4l.so => (ISDN4Linux Emulated Modem Driver) Mar 29 16:36:33 WARNING[16384]: chan_modem_i4l.c:151 i4l_init: Unable to set MSN to +34yyyyyyyyy Mar 29 16:36:33 WARNING[16384]: chan_modem.c:396 modem_setup: Modem Initialization Failed on '/dev/ttyI0', driver i4l. Mar 29 16:36:33 WARNING[16384]: chan_modem.c:736 mkif: Unable to configure modem '/dev/ttyI0' Mar 29 16:36:33 ERROR[16384]: chan_modem.c:930 load_module: Unable to register channel '/dev/ttyI0' == Unregistered channel type 'Modem' Mar 29 16:36:33 WARNING[16384]: loader.c:312 ast_load_resource: chan_modem.so: load_module failed, returning -1 == Unregistered channel type 'Modem' Mar 29 16:36:33 WARNING[16384]: loader.c:358 load_modules: Loading module chan_modem.so failed! --- Then, because ISDN devices are "seen" as /dev/ipppN, I modified modems.conf to have these two lines instead: --- device => /dev/ippp0 device => /dev/ippp1 --- But when I launch Asterisk, it never goes beyond this point: --- [chan_modem.so] => (Generic Voice Modem Driver) == Parsing '/etc/asterisk/modem.conf': Found == Loading modem driver chan_modem_i4l.so => (ISDN4Linux Emulated Modem Driver) --- This is a CPU-grinder, as it reaches a 99.9% usage and the only way to stop this is hitting ctrl-c... On the messages file I see: --- Mar 29 16:35:22 pbx kernel: ippp, open, slot: 2, minor: 0, state: 0000 Mar 29 16:35:22 pbx kernel: ippp_ccp: allocated reset data structure c5480000 Mar 29 16:35:50 pbx kernel: ippp_ccp: freeing reset data structure c5480000 --- Am I overseeing anything obvious? Every hint on this issue will be much appreciated. TIA and regards, Martin
Martin List-Petersen
2004-Mar-29 08:23 UTC
[Asterisk-Users] Asterisk + ISDN4linux connectivity
On Mon, 2004-03-29 at 15:44, Martin Mielke wrote:> Hi all, > > I configured Asterisk as shown in > http://www.voip-info.org/wiki-Asterisk+ISDN4Linux > > The box running Asterisk under SuSE 9.0 Pro has a "Eicon Diva Server BRI > 2M" ISDN card attached and it seems to be recognized by the system. > > I added the following lines to: > > * modem.conf > driver=i4l > ... > group=1 > msn=+34xxxxxxxxx > device => /dev/ttyI0 > device => /dev/ttyI1MSN is definatly wrong. Normally you should only specify your local subscriber no., so in Denmark this would be: Full no: +45 12345678 Subscriber no: 12345678 Germany: Full no: +49 69 123456 Subscriber no: 123456 +34 should definatly not be part of it. Another thing is, that the Eicon card is a active CAPI supported card, if i'm not wrong. Shouldn't you use chan_capi instead of chan_modem_i4l ? That would give you a lot better results. /Martin
Hello again, I guess I solved part of my problems... Now I can call an internal extension which matches a cell-phone using the ISDN-card... but Asterisk refuses to call: --- -- Executing Dial("SIP/mmielke-b282", "Modem/g1:yyyyyyyy") in new stack -- Called g1:yyyyyyyy Mar 29 19:20:34 WARNING[655376]: chan_modem_i4l.c:355 i4l_read: Device '/dev/ttyI1' lacking dialtone -- Hungup 'Modem[i4l]/ttyI1' == No one is available to answer at this time --- which is false. I mean: my cell-phone is available and the ISDN-card should be "listening" to a dialtone, as I checked it with an ISDN-(hard)phone... ...aaaarch!... I need more tea! ;) As always, ideas/suggestions/hints are much appreciated. Regards, Martin Martin Mielke wrote:> Hi all, > > I configured Asterisk as shown in > http://www.voip-info.org/wiki-Asterisk+ISDN4Linux > > The box running Asterisk under SuSE 9.0 Pro has a "Eicon Diva Server > BRI 2M" ISDN card attached and it seems to be recognized by the system. > > I added the following lines to: > > * modem.conf > driver=i4l > ... > group=1 > msn=+34xxxxxxxxx > device => /dev/ttyI0 > device => /dev/ttyI1 > > --- > > > * extensions.conf > TRUNK=Modem/g1 > ... > exten => mmielke,1,Dial(${TRUNK}:0yyyyyyyy) ;yyyyyyyy is cell-phone > number... > ... > > --- > > With all this, I get the following error messages when starting Asterisk: > --- > ... > == Parsing '/etc/asterisk/modules.conf': Found > [chan_modem.so] => (Generic Voice Modem Driver) > == Parsing '/etc/asterisk/modem.conf': Found > == Loading modem driver chan_modem_i4l.so => (ISDN4Linux Emulated > Modem Driver) > Mar 29 16:36:33 WARNING[16384]: chan_modem_i4l.c:151 i4l_init: Unable > to set MSN to +34yyyyyyyyy > Mar 29 16:36:33 WARNING[16384]: chan_modem.c:396 modem_setup: Modem > Initialization Failed on '/dev/ttyI0', driver i4l. > Mar 29 16:36:33 WARNING[16384]: chan_modem.c:736 mkif: Unable to > configure modem '/dev/ttyI0' > Mar 29 16:36:33 ERROR[16384]: chan_modem.c:930 load_module: Unable to > register channel '/dev/ttyI0' > == Unregistered channel type 'Modem' > Mar 29 16:36:33 WARNING[16384]: loader.c:312 ast_load_resource: > chan_modem.so: load_module failed, returning -1 > == Unregistered channel type 'Modem' > Mar 29 16:36:33 WARNING[16384]: loader.c:358 load_modules: Loading > module chan_modem.so failed! > --- > > > Then, because ISDN devices are "seen" as /dev/ipppN, I modified > modems.conf to have these two lines instead: > --- > device => /dev/ippp0 > device => /dev/ippp1 > --- > > But when I launch Asterisk, it never goes beyond this point: > --- > [chan_modem.so] => (Generic Voice Modem Driver) > == Parsing '/etc/asterisk/modem.conf': Found > == Loading modem driver chan_modem_i4l.so => (ISDN4Linux Emulated > Modem Driver) > --- > > This is a CPU-grinder, as it reaches a 99.9% usage and the only way to > stop this is hitting ctrl-c... > > On the messages file I see: > --- > Mar 29 16:35:22 pbx kernel: ippp, open, slot: 2, minor: 0, state: 0000 > Mar 29 16:35:22 pbx kernel: ippp_ccp: allocated reset data structure > c5480000 > Mar 29 16:35:50 pbx kernel: ippp_ccp: freeing reset data structure > c5480000 > --- > > Am I overseeing anything obvious? > > Every hint on this issue will be much appreciated. > > > TIA and regards, > Martin > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Steven Critchfield
2004-Mar-29 11:12 UTC
[Asterisk-Users] Asterisk + ISDN4linux connectivity
On Mon, 2004-03-29 at 11:26, Martin Mielke wrote:> Hello again, > > I guess I solved part of my problems... > Now I can call an internal extension which matches a cell-phone using > the ISDN-card... but Asterisk refuses to call: > > --- > -- Executing Dial("SIP/mmielke-b282", "Modem/g1:yyyyyyyy") in new stack > -- Called g1:yyyyyyyyYou should have a "/" instead of a ":" in the dial. btw, __TRIM__ the unnecessary parts. -- Steven Critchfield <critch@basesys.com>