Bug#399970: Asterisk and chan_misdn
Lee Garrett escribió: Victor Seva wrote: Hi all, [snip] I have now a version [0] of misdn-[kernel | user] with I can finally build chan_misdn [1] only adding the proper build-depends ( libisdnnet-dev ). misdn-user builds static libraries as Simon point me to do. I noticed that your asterisk_1.4.21.2~dfsg-2~bpo40+1_i386.deb in your backports section doesn't have chan_misdn.so shipped. So I recompiled that with the suggested build-depends. It compiles all right, chan_misdn is there, but is not loadable. Asterisk's error log says: AFAIK asterisk_1.4.21.2~dfsg-2~bpo40+1_i386.deb has chan_misdn.so shipped [0]. [studebaker]$ debc asterisk_1.4.21.2~dfsg-2~bpo40+1_i386.changes | grep chan_misdn -rw-r--r-- root/root422976 2008-07-30 00:28:06 ./usr/lib/asterisk/ modules/chan_misdn.so -rw-r--r-- root/root622520 2008-07-30 00:28:06 ./usr/lib/debug/usr/ lib/asterisk/modules/chan_misdn.so [studebaker]$ pwd /home/linuxmaniac/linuxmaniac.torreviejawireless.org/debian/asterisk +misdn_backports [0] http://linuxmaniac.torreviejawireless.org/debian/asterisk+misdn_backports/ [Aug 3 20:29:57] WARNING[9076] loader.c: Error loading module 'chan_misdn.so': libisdnnet.so: cannot open shared object file: No such file or directory I can load chan_misdn.so with no such error: openser:~# LC_ALL=C dpkg -l asterisk Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half- installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name VersionDescription +++-==-==- ii asterisk 1.4.21.2~dfsg-2~bpo40+1Open Source Private Branch Exchange (PBX) openser:~# LC_ALL=C dpkg -l *isdn* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half- installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name VersionDescription +++-==-==- ii libisdnnet-dev 1.1.8-1~bpo40+1ISDN networking library ii libmisdn-dev 1.1.8-1~bpo40+1mISDN interface library ii linux-headers-misdn1.1.8-1~bpo40+1Header files for the mISDN drivers ii misdn-config 1.1.8-1~bpo40+1init-script to auto-configure and load the mISDN kernel drivers un misdn-kernel-sourcenone (no description available) un misdn-modules none (no description available) ii misdn-modules-2.6.18-6-686 1.1.8-1~bpo40+1mISDN modules for Linux (kernel 2.6.18-6-686) ii misdn-source 1.1.8-1~bpo40+1Source code for the mISDN modules openser:~# dpkg -L libisdnnet-dev /. /usr /usr/share /usr/share/doc /usr/share/doc/libisdnnet-dev /usr/share/doc/libisdnnet-dev/changelog.Debian.gz /usr/share/doc/libisdnnet-dev/copyright /usr/lib /usr/lib/libisdnnet.a /usr/include /usr/include/mISDNuser /usr/include/mISDNuser/net_l3.h /usr/include/mISDNuser/fsm.h /usr/include/mISDNuser/net_l2.h openser:~# asterisk -r Asterisk 1.4.21.2~dfsg-2~bpo40+1, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer [EMAIL PROTECTED] 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. = This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk = Connected to Asterisk 1.4.21.2~dfsg-2~bpo40+1 currently running on openser (pid = 13486) openser*CLI core show channeltypes TypeDescription Devicestate Indications Transfer -- --- --- --- SIP Session Initiation Protocol (SIP)yes yes yes mISDN Channel driver for mISDN Support (Bri/Pr no yes no DS Application for sending device state mes yes no no MGCPMedia Gateway Control Protocol (MGCP)yes yes no Agent Call Agent Proxy Channel yes yes no Phone Standard Linux Telephony API Driver no yes no Console OSS Console Channel Driver
Bug#399970: Asterisk and chan_misdn
Victor Seva wrote: Lee Garrett escribió: Victor Seva wrote: Hi all, [snip] I have now a version [0] of misdn-[kernel | user] with I can finally build chan_misdn [1] only adding the proper build-depends ( libisdnnet-dev ). misdn-user builds static libraries as Simon point me to do. I noticed that your asterisk_1.4.21.2~dfsg-2~bpo40+1_i386.deb in your backports section doesn't have chan_misdn.so shipped. So I recompiled that with the suggested build-depends. It compiles all right, chan_misdn is there, but is not loadable. Asterisk's error log says: AFAIK asterisk_1.4.21.2~dfsg-2~bpo40+1_i386.deb has chan_misdn.so shipped [0]. [studebaker]$ debc asterisk_1.4.21.2~dfsg-2~bpo40+1_i386.changes | grep chan_misdn -rw-r--r-- root/root422976 2008-07-30 00:28:06 ./usr/lib/asterisk/modules/chan_misdn.so -rw-r--r-- root/root622520 2008-07-30 00:28:06 ./usr/lib/debug/usr/lib/asterisk/modules/chan_misdn.so [studebaker]$ pwd /home/linuxmaniac/linuxmaniac.torreviejawireless.org/debian/asterisk+misdn_backports Silly me. I looked into http://linuxmaniac.torreviejawireless.org/debian/asterisk_backports/, which of course does not have chan_misdn. [0] http://linuxmaniac.torreviejawireless.org/debian/asterisk+misdn_backports/ [Aug 3 20:29:57] WARNING[9076] loader.c: Error loading module 'chan_misdn.so': libisdnnet.so: cannot open shared object file: No such file or directory I can load chan_misdn.so with no such error: [snip] I pulled the packages from http://linuxmaniac.torreviejawireless.org/debian/asterisk+misdn_backports/ and they work great. I checked by routing a call from SIP to misdn. So what's the plan for those packages? Having chan_misdn in Lenny would be nice, although misdn V2 is being merged into linus tree right now. Or would it be wiser to get the misdn V2 / chan_lcr combo in Lenny? Anyways, whatever the decision is, it would be better than _no_ ISDN support for Asterisk. Thanks for the hard work. It's been a pleasure! Regards, Lee -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#399970: Asterisk and chan_misdn
Lee Garrett wrote: [snip] I pulled the packages from http://linuxmaniac.torreviejawireless.org/debian/asterisk+misdn_backports/ and they work great. I checked by routing a call from SIP to misdn. So what's the plan for those packages? Having chan_misdn in Lenny would be nice, although misdn V2 is being merged into linus tree right now. Or would it be wiser to get the misdn V2 / chan_lcr combo in Lenny? Anyways, whatever the decision is, it would be better than _no_ ISDN support for Asterisk. Thanks for the hard work. It's been a pleasure! Lenny is frozen. AFAIK there will be no support for ISDN on it. I think we should have a working version of misdn on experimental and create a howto doc to get chan_misdn built. But this is Simon call. He is the misdn maintainer. The misdn V2 / chan_lcr combo needs a lot of work to get mature. Thanks PGP.sig Description: This is a digitally signed message part
Bug#399970: Asterisk and chan_misdn
Lee Garrett wrote: Thanks for the work. AFAICS all packages are buildable via dpkg- buildpackage. But: I installed misdn-source and tried to build a modules_image and it blew up. See below: [EMAIL PROTECTED]:~/My_Stuff/kernel-sources/aramaki-2.6.25$ make-kpkg -- rootcmd fakeroot modules_image --added-modules misdn [snip] /usr/bin/make -C /home/randall/My_Stuff/kernel-sources/ aramaki-2.6.25 \ M=/usr/src/modules/misdn \ \ KERNELRELEASE=2.6.25.14-tarpit+imq-aramaki \ CONFIG_MISDN_DRV=m CONFIG_MISDN_AVM_FRITZ=m CONFIG_MISDN_HFCPCI=m CONFIG_MISDN_HFCUSB=m CONFIG_MISDN_SPEEDFAX=m CONFIG_MISDN_W6692=m CONFIG_MISDN_HFCMULTI=m CONFIG_MISDN_NETJET=m CONFIG_MISDN_DSP=m CONFIG_MISDN_HFCMINI=m CONFIG_MISDN_XHFC=m EXTRA_CFLAGS=-I/usr/src/ modules/misdn/include \ modules make[3]: Entering directory `/home/randall/My_Stuff/kernel-sources/ aramaki-2.6.25' /usr/src/modules/misdn/avm_fritz.c: In function ‘init_card’: /usr/src/modules/misdn/avm_fritz.c:879: error: ‘SA_SHIRQ’ undeclared (first use in this function) /usr/src/modules/misdn/avm_fritz.c:879: error: (Each undeclared identifier is reported only once /usr/src/modules/misdn/avm_fritz.c:879: error: for each function it appears in.) /usr/src/modules/misdn/avm_fritz.c:889: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type /usr/src/modules/misdn/avm_fritz.c:895: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type make[4]: *** [/usr/src/modules/misdn/avm_fritz.o] Error 1 make[4]: *** Waiting for unfinished jobs /usr/src/modules/misdn/hfc_multi.c: In function ‘hfcmulti_leds’: /usr/src/modules/misdn/hfc_multi.c:1201: warning: ISO C90 forbids mixed declarations and code /usr/src/modules/misdn/hfc_multi.c:2800:6: warning: #warning this is dangerous, the skb should never used to transfer a pointer please use a message /usr/src/modules/misdn/hfc_multi.c: In function ‘init_card’: /usr/src/modules/misdn/hfc_multi.c:3302: error: ‘SA_SHIRQ’ undeclared (first use in this function) /usr/src/modules/misdn/hfc_multi.c:3302: error: (Each undeclared identifier is reported only once /usr/src/modules/misdn/hfc_multi.c:3302: error: for each function it appears in.) /usr/src/modules/misdn/hfc_multi.c:3302: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type /usr/src/modules/misdn/hfc_multi.c: In function ‘release_ports_hw’: /usr/src/modules/misdn/hfc_multi.c:3640: warning: ISO C90 forbids mixed declarations and code make[4]: *** [/usr/src/modules/misdn/hfc_multi.o] Error 1 make[3]: *** [_module_/usr/src/modules/misdn] Error 2 It seems that 1.1.8 needs a fix for kernels 2.6.18. Patch attached, please test it. fix_gt_2.6.18 Description: Binary data PGP.sig Description: This is a digitally signed message part
Bug#399970: Asterisk and chan_misdn
Victor Seva wrote: Hi all, [snip] I have now a version [0] of misdn-[kernel | user] with I can finally build chan_misdn [1] only adding the proper build-depends ( libisdnnet-dev ). misdn-user builds static libraries as Simon point me to do. I noticed that your asterisk_1.4.21.2~dfsg-2~bpo40+1_i386.deb in your backports section doesn't have chan_misdn.so shipped. So I recompiled that with the suggested build-depends. It compiles all right, chan_misdn is there, but is not loadable. Asterisk's error log says: [Aug 3 20:29:57] WARNING[9076] loader.c: Error loading module 'chan_misdn.so': libisdnnet.so: cannot open shared object file: No such file or directory Thanks for the work in getting asterisk with chan_misdn done! Kind regards, Lee -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#399970: Asterisk and chan_misdn
Victor Seva wrote: Hi all, [snip] I have now a version [0] of misdn-[kernel | user] with I can finally build chan_misdn [1] only adding the proper build-depends ( libisdnnet-dev ). misdn-user builds static libraries as Simon point me to do. I would like to note that I'm open to testing patches on this matter and reporting back a fail or success to this bug. Please, test and report misdn-* and chan_misdn bugs or success. I maintain _my_ misdn-[user | kernel] packaging on pkg-voip svn [2]. [0] http://linuxmaniac.torreviejawireless.org/debian/misdn-kernel/1.1.8/ http://linuxmaniac.torreviejawireless.org/debian/misdn-user/1.1.8/ [1] http://linuxmaniac.torreviejawireless.org/debian/asterisk+misdn_backports/ [2] svn://svn.debian.org/svn/pkg-voip/misdn-kernel svn://svn.debian.org/svn/pkg-voip/misdn-user PD: Simon, can you take a look over those changes and comment them? Maybe a working 1.1.8 version on experimental will be nice. Thanks for the work. AFAICS all packages are buildable via dpkg-buildpackage. But: I installed misdn-source and tried to build a modules_image and it blew up. See below: [EMAIL PROTECTED]:~/My_Stuff/kernel-sources/aramaki-2.6.25$ make-kpkg --rootcmd fakeroot modules_image --added-modules misdn exec debian/rules DEBIAN_REVISION=2008.08.02 KPKG_SELECTED_MODULES=misdn ROOT_CMD=fakeroot modules_image for module in /usr/src/modules/misdn ; do \ if test -d $module; then\ (cd $module; \ if ./debian/rules KVERS=2.6.25.14-tarpit+imq-aramaki KSRC=/home/randall/My_Stuff/kernel-sources/aramaki-2.6.25 \ KMAINT=Unknown Kernel Package Maintainer KEMAIL=[EMAIL PROTECTED] \ KPKG_DEST_DIR=/home/randall/My_Stuff/kernel-sources/aramaki-2.6.25/.. \ KPKG_MAINTAINER=Unknown Kernel Package Maintainer\ KPKG_EXTRAV_ARG=\ ARCH=i386 \ KDREV=2008.08.02 kdist_image; then\ echo Module $module processed fine;\ else \ echo Module $module failed.; \ if [ Xfakeroot != X ]; then \ echo Perhaps $module does not understand --rootcmd?; \ echo If you see messages that indicate that it is not; \ echo in fact being built as root, please file a bug ; \ echo against $module.; \ fi; \ echo Hit return to Continue; \ read ans;\ fi; \ );\ else \ echo Module $module does not exist; \ echo Hit return to Continue?; \ fi; \ done make[1]: Entering directory `/usr/src/modules/misdn' /usr/bin/make -w -f debian/rules KERNELRELEASE=2.6.25.14-tarpit+imq-aramaki binary-modules make[2]: Entering directory `/usr/src/modules/misdn' dh_testdir /usr/bin/make -C /home/randall/My_Stuff/kernel-sources/aramaki-2.6.25 \ M=/usr/src/modules/misdn \ \ KERNELRELEASE=2.6.25.14-tarpit+imq-aramaki \ CONFIG_MISDN_DRV=m CONFIG_MISDN_AVM_FRITZ=m CONFIG_MISDN_HFCPCI=m CONFIG_MISDN_HFCUSB=m CONFIG_MISDN_SPEEDFAX=m CONFIG_MISDN_W6692=m CONFIG_MISDN_HFCMULTI=m CONFIG_MISDN_NETJET=m CONFIG_MISDN_DSP=m CONFIG_MISDN_HFCMINI=m CONFIG_MISDN_XHFC=m EXTRA_CFLAGS=-I/usr/src/modules/misdn/include \ modules make[3]: Entering directory `/home/randall/My_Stuff/kernel-sources/aramaki-2.6.25' /usr/src/modules/misdn/avm_fritz.c: In function ‘init_card’: /usr/src/modules/misdn/avm_fritz.c:879: error: ‘SA_SHIRQ’ undeclared (first use in this function) /usr/src/modules/misdn/avm_fritz.c:879: error: (Each undeclared identifier is reported only once /usr/src/modules/misdn/avm_fritz.c:879: error: for each function it appears in.) /usr/src/modules/misdn/avm_fritz.c:889: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type /usr/src/modules/misdn/avm_fritz.c:895: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type make[4]: *** [/usr/src/modules/misdn/avm_fritz.o] Error 1 make[4]: *** Waiting for unfinished jobs /usr/src/modules/misdn/hfc_multi.c: In function ‘hfcmulti_leds’: /usr/src/modules/misdn/hfc_multi.c:1201: warning: ISO C90 forbids mixed declarations and code
Bug#399970: Asterisk and chan_misdn
Hi all, Lee Garrett wrote: from reading the previous mails on bug #399970 it's not quite clear to me what is stopping Asterisk from shipping chan_misdn. There is a lot of talk about the misdn kernel patches, I think this should go to bug #431724. Could someone sum up the gist of the problem? Before I dig in and spend a few hours of trying around, is it possible to build chan_misdn yet (providing the right build- depends)? The last time I tried, chan_misdn didn't build. I have now a version [0] of misdn-[kernel | user] with I can finally build chan_misdn [1] only adding the proper build-depends ( libisdnnet- dev ). misdn-user builds static libraries as Simon point me to do. I would like to note that I'm open to testing patches on this matter and reporting back a fail or success to this bug. Please, test and report misdn-* and chan_misdn bugs or success. I maintain _my_ misdn-[user | kernel] packaging on pkg-voip svn [2]. [0] http://linuxmaniac.torreviejawireless.org/debian/misdn-kernel/1.1.8/ http://linuxmaniac.torreviejawireless.org/debian/misdn-user/ 1.1.8/ [1] http://linuxmaniac.torreviejawireless.org/debian/asterisk+misdn_backports/ [2] svn://svn.debian.org/svn/pkg-voip/misdn-kernel svn:// svn.debian.org/svn/pkg-voip/misdn-user PD: Simon, can you take a look over those changes and comment them? Maybe a working 1.1.8 version on experimental will be nice. PGP.sig Description: This is a digitally signed message part
Bug#399970: Asterisk and chan_misdn
Victor Seva wrote: PD: Simon, can you take a look over those changes and comment them? Maybe a working 1.1.8 version on experimental will be nice. Considering that a) a version of mISDN was merged to upstream Linux, b) we are on a freeze expecting a new release, I'd say that the best strategy right now seems to be to... just wait. Regards, Faidon -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#399970: Asterisk and chan_misdn
Faidon Liambotis wrote: Victor Seva wrote: PD: Simon, can you take a look over those changes and comment them? Maybe a working 1.1.8 version on experimental will be nice. Considering that a) a version of mISDN was merged to upstream Linux, b) we are on a freeze expecting a new release, I'd say that the best strategy right now seems to be to... just wait. But mISDN (V 1.2) that was merged to upstream is not compatible with chan_misdn and it wont be [0] in a near future. And some users may want to continue using chan_misdn, and a working version on experimental would be helpful. [0] http://listserv.isdn4linux.de/pipermail/isdn4linux/2008-July/003533.html PGP.sig Description: This is a digitally signed message part
Bug#399970: Asterisk and chan_misdn
Hello Victor, Simon et al., from reading the previous mails on bug #399970 it's not quite clear to me what is stopping Asterisk from shipping chan_misdn. There is a lot of talk about the misdn kernel patches, I think this should go to bug #431724. Could someone sum up the gist of the problem? Before I dig in and spend a few hours of trying around, is it possible to build chan_misdn yet (providing the right build-depends)? The last time I tried, chan_misdn didn't build. I would like to note that I'm open to testing patches on this matter and reporting back a fail or success to this bug. Kind regards, Lee Garrett -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]