I dont have hw:dummy in my selection list, even if i restart, i dont have nothing like dummy. How to fix it tell CentOS, make hw:dummy default for anything?<br><br>As wiki told, i applied this also successfully:<br><h3> <span class="mw-headline"> CentOS, RedHat </span></h3>
<p>Because CentOS backports features in kernel, you will have to edit
alsa-driver-1.0.20/include/adriver.h and comment out line 101 and line
1781, to make it like this:
</p>
<pre>/* other missing types */<br>#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 28)<br>//typedef unsigned int fmode_t;<br>#endif<br></pre>
<p>...
</p>
<pre>#ifndef bool /* just to be sure */<br>//typedef _Bool bool;<br>#endif<br></pre>
<p>Then edit alsa-driver-1.0.20/usb/usbcompat.h adding a "#if 0" on
line 18, commenting out the following code making it look like this:
</p>
<pre>#endif /* < 2.6.24 */<br>#if 0<br>#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)<br>static inline int usb_endpoint_dir_in(const struct usb_endpoint_descriptor *epd)<br></pre>
<p>close the commenting out block adding an "#endif" at line 97, making it look like this:
</p>
<pre>#endif /* < 2.6.21 */<br>#endif //0<br></pre>
<p>Then:
</p>
<pre> yum install kernel-devel # or yum install kernel-xen-devel (if on xen)<br><br> ./configure --with-redhat=yes \<br> --with-cards=dummy,usb-audio,hda-intel,hrtimer,rtctimer \<br> --with-card-options=all<br><br><br> make && make install<br>
</pre>
<p>After the first <i>make && make install</i>, copy mod_skypopen/configs/alsa/dummy.c to alsa-driver-1.0.20/sound/drivers/dummy.c .
</p>
<pre>make && make install #again :)<br></pre><br><br>
<br><br><div class="gmail_quote">On Sat, Sep 18, 2010 at 7:51 PM, Giovanni Maruzzelli <span dir="ltr"><<a href="mailto:gmaruzz@gmail.com">gmaruzz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
What is your problem Shamun?<br>
<br>
You don't know how to read?<br>
<br>
In what you report is written:<br>
<div class="im"><br>
"open of skypopen.conf failed"<br>
<br>
<br>
<br>
</div><div><div></div><div class="h5">On 9/18/10, Shamun toha md <<a href="mailto:shamun.toha@gmail.com">shamun.toha@gmail.com</a>> wrote:<br>
> You are correct, even without alsa driver, if i simply start skype GUI<br>
> instance from ssh -X servermachine, i can see skype get started without<br>
> getting fail or crash. But if i "load mod_skypeopen", why it is getting<br>
> again error like this?<br>
><br>
> *freeswitch@localhost.localdomain> *<br>
> 2010-09-18 19:05:08.243932 [CONSOLE] switch_core.c:1649<br>
> FreeSWITCH Version 1.0.head (*git-3eb35a5 2010-09-15 17-04-54 -0500*)<br>
> Started.<br>
> Max Sessions[1000]<br>
> Session Rate[30]<br>
> SQL [Enabled]<br>
><br>
> *freeswitch@localhost.localdomain> load mod_skypopen*<br>
><br>
> -ERR [module load file routine returned an error]<br>
><br>
> 2010-09-18 19:05:18.973060 [ERR] mod_skypopen.c:1304 rev<br>
> git2svn-syncpoint-master-203-g3eb35a5[(nil)|37 ][ERRORA 1304<br>
> ][none ][-1,-1,-1] open of skypopen.conf failed<br>
> 2010-09-18 19:05:18.973060 [CRIT] switch_loadable_module.c:926 Error Loading<br>
> module /usr/local/freeswitch/mod/mod_skypopen.so<br>
> **Module load routine returned an error**<br>
> freeswitch@localhost.localdomain><br>
><br>
><br>
><br>
><br>
><br>
> On Sat, Sep 18, 2010 at 2:55 PM, Giovanni Maruzzelli<br>
> <<a href="mailto:gmaruzz@celliax.org">gmaruzz@celliax.org</a>>wrote:<br>
><br>
>> You reported:<br>
>><br>
>> >checking for directory with kernel source... ./configure: line 4870: cd:<br>
>> /lib/modules/2.6.18->164.el5/source: No such file or directory<br>
>> >/lib/modules/2.6.18-164.el5/source<br>
>> >checking for directory with kernel build...<br>
>> /lib/modules/2.6.18-164.el5/build<br>
>> >checking for kernel linux/version.h... no<br>
>> >The file /include/linux/version.h does not exist.<br>
>> >Please install the package with full kernel sources for your distribution<br>
>> >or use --with-kernel=dir option to specify another directory with kernel<br>
>> >sources (default is /lib/modules/2.6.18-164.el5/source).<br>
>><br>
>> The error speaks very clear. You botched your install in some way...<br>
>><br>
>> -giovanni<br>
>><br>
>> On Sat, Sep 18, 2010 at 2:46 PM, Shamun toha md <<a href="mailto:shamun.toha@gmail.com">shamun.toha@gmail.com</a>><br>
>> wrote:<br>
>> > This is not working for this, here kernel-devel and source is modified<br>
>> > as<br>
>> > wiki told:<br>
>> ><br>
>> > [root@localhost alsa-driver-1.0.20]# uname -a<br>
>> > Linux localhost.localdomain 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT<br>
>> > 2009 i686 athlon i386 GNU/Linux<br>
>> ><br>
>> > [root@localhost alsa-driver-1.0.20]# yum info kernel-devel<br>
>> > Loaded plugins: fastestmirror<br>
>> > Loading mirror speeds from cached hostfile<br>
>> > * addons: <a href="http://ftp.belnet.be" target="_blank">ftp.belnet.be</a><br>
>> > * base: <a href="http://mirror.ovh.net" target="_blank">mirror.ovh.net</a><br>
>> > * extras: <a href="http://mirror.ovh.net" target="_blank">mirror.ovh.net</a><br>
>> > * updates: <a href="http://mirror.ovh.net" target="_blank">mirror.ovh.net</a><br>
>> > Installed Packages<br>
>> > Name : kernel-devel<br>
>> > Arch : i686<br>
>> > Version : 2.6.18<br>
>> > Release : 194.11.3.el5<br>
>> > Size : 16 M<br>
>> > Repo : installed<br>
>> > Summary : Development package for building kernel modules to match<br>
>> > the<br>
>> > kernel.<br>
>> > URL : <a href="http://www.kernel.org/" target="_blank">http://www.kernel.org/</a><br>
>> > License : GPLv2<br>
>> > Description: This package provides kernel headers and makefiles<br>
>> sufficient<br>
>> > to build modules<br>
>> > : against the kernel package.<br>
>> > [root@localhost alsa-driver-1.0.20]# ./configure<br>
>> > --with-cards=dummy,usb-audio,hda-intel,hrtimer,rtctimer<br>
>> > --with-card-options=all<br>
>> > checking for gcc... gcc<br>
>> > checking for C compiler default output file name... a.out<br>
>> > checking whether the C compiler works... yes<br>
>> > checking whether we are cross compiling... no<br>
>> > checking for suffix of executables...<br>
>> > checking for suffix of object files... o<br>
>> > checking whether we are using the GNU C compiler... yes<br>
>> > checking whether gcc accepts -g... yes<br>
>> > checking for gcc option to accept ISO C89... none needed<br>
>> > checking for ranlib... ranlib<br>
>> > checking for a BSD-compatible install... /usr/bin/install -c<br>
>> > checking how to run the C preprocessor... gcc -E<br>
>> > checking for grep that handles long lines and -e... /bin/grep<br>
>> > checking for egrep... /bin/grep -E<br>
>> > checking for ANSI C header files... yes<br>
>> > checking for an ANSI C-conforming const... yes<br>
>> > checking for inline... inline<br>
>> > checking whether time.h and sys/time.h may both be included... yes<br>
>> > checking whether gcc needs -traditional... no<br>
>> > checking for current directory... /usr/local/src/alsa-driver-1.0.20<br>
>> > checking cross compile...<br>
>> > checking for directory with kernel source... ./configure: line 4870: cd:<br>
>> > /lib/modules/2.6.18-164.el5/source: No such file or directory<br>
>> > /lib/modules/2.6.18-164.el5/source<br>
>> > checking for directory with kernel build...<br>
>> > /lib/modules/2.6.18-164.el5/build<br>
>> > checking for kernel linux/version.h... no<br>
>> > The file /include/linux/version.h does not exist.<br>
>> > Please install the package with full kernel sources for your<br>
>> > distribution<br>
>> > or use --with-kernel=dir option to specify another directory with kernel<br>
>> > sources (default is /lib/modules/2.6.18-164.el5/source).<br>
>> > [root@localhost alsa-driver-1.0.20]#<br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> > Wiki told:<br>
>> > ==========<br>
>> ><br>
>> > Let's start with ALSA driver compilation and installation:<br>
>> ><br>
>> > Get it from:<br>
>> > <a href="ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.20.tar.bz2" target="_blank">ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.20.tar.bz2</a><br>
>> ><br>
>> > CentOS, RedHat<br>
>> ><br>
>> > Because CentOS backports features in kernel, you will have to edit<br>
>> > alsa-driver-1.0.20/include/adriver.h and comment out line 101 and line<br>
>> 1781,<br>
>> > to make it like this:<br>
>> ><br>
>> > /* other missing types */<br>
>> > #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 28)<br>
>> > //typedef unsigned int fmode_t;<br>
>> > #endif<br>
>> ><br>
>> > ...<br>
>> ><br>
>> > #ifndef bool /* just to be sure */<br>
>> > //typedef _Bool bool;<br>
>> > #endif<br>
>> ><br>
>> > Then edit alsa-driver-1.0.20/usb/usbcompat.h adding a "#if 0" on line<br>
>> > 18,<br>
>> > commenting out the following code making it look like this:<br>
>> ><br>
>> > #endif /* < 2.6.24 */<br>
>> > #if 0<br>
>> > #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)<br>
>> > static inline int usb_endpoint_dir_in(const struct<br>
>> usb_endpoint_descriptor<br>
>> > *epd)<br>
>> ><br>
>> > close the commenting out block adding an "#endif" at line 97, making it<br>
>> look<br>
>> > like this:<br>
>> ><br>
>> > #endif /* < 2.6.21 */<br>
>> > #endif //0<br>
>> ><br>
>> > Then:<br>
>> ><br>
>> > yum install kernel-devel # or yum install kernel-xen-devel (if on xen)<br>
>> ><br>
>> > ./configure --with-redhat=yes \<br>
>> > --with-cards=dummy,usb-audio,hda-intel,hrtimer,rtctimer \<br>
>> > --with-card-options=all<br>
>> ><br>
>> ><br>
>> ><br>
>> > make && make install<br>
>> ><br>
>> > After the first make && make install, copy<br>
>> mod_skypopen/configs/alsa/dummy.c<br>
>> > to alsa-driver-1.0.20/sound/drivers/dummy.c .<br>
>> ><br>
>> > make && make install #again :)<br>
>> ><br>
>> ><br>
>> ><br>
>> > On Sat, Sep 18, 2010 at 1:49 PM, Giovanni Maruzzelli <<br>
>> <a href="mailto:gmaruzz@celliax.org">gmaruzz@celliax.org</a>><br>
>> > wrote:<br>
>> >><br>
>> >> Read what error you get.<br>
>> >> Follow the wiki page.<br>
>> >> Install necessary packages and edit alsa sources. All described in wiki<br>
>> >> page.<br>
>> >> -giovanni<br>
>> >><br>
>> >> On 9/18/10, Shamun toha md <<a href="mailto:shamun.toha@gmail.com">shamun.toha@gmail.com</a>> wrote:<br>
>> >> > Alsa driver installation in CentOS 5.4 getting fail:<br>
>> >> ><br>
>> >> > [root@localhost alsa-driver-1.0.20]# ./configure --with-redhat=yes<br>
>> >> > --with-cards=dummy,usb-audio,hda-intel,hrtimer,rtctimer<br>
>> >> > --with-card-options=all<br>
>> >> > checking for gcc... gcc<br>
>> >> > checking for C compiler default output file name... a.out<br>
>> >> > checking whether the C compiler works... yes<br>
>> >> > checking whether we are cross compiling... no<br>
>> >> > checking for suffix of executables...<br>
>> >> > checking for suffix of object files... o<br>
>> >> > checking whether we are using the GNU C compiler... yes<br>
>> >> > checking whether gcc accepts -g... yes<br>
>> >> > checking for gcc option to accept ISO C89... none needed<br>
>> >> > checking for ranlib... ranlib<br>
>> >> > checking for a BSD-compatible install... /usr/bin/install -c<br>
>> >> > checking how to run the C preprocessor... gcc -E<br>
>> >> > checking for grep that handles long lines and -e... /bin/grep<br>
>> >> > checking for egrep... /bin/grep -E<br>
>> >> > checking for ANSI C header files... yes<br>
>> >> > checking for an ANSI C-conforming const... yes<br>
>> >> > checking for inline... inline<br>
>> >> > checking whether time.h and sys/time.h may both be included... yes<br>
>> >> > checking whether gcc needs -traditional... no<br>
>> >> > checking for current directory... /usr/local/src/alsa-driver-1.0.20<br>
>> >> > checking cross compile...<br>
>> >> > checking for directory with kernel source... ./configure: line 4870:<br>
>> cd:<br>
>> >> > /lib/modules/2.6.18-164.el5/source: No such file or directory<br>
>> >> > /lib/modules/2.6.18-164.el5/source<br>
>> >> > checking for directory with kernel build...<br>
>> >> > /lib/modules/2.6.18-164.el5/build<br>
>> >> > checking for kernel linux/version.h... no<br>
>> >> > The file /include/linux/version.h does not exist.<br>
>> >> > Please install the package with full kernel sources for your<br>
>> >> > distribution<br>
>> >> > or use --with-kernel=dir option to specify another directory with<br>
>> kernel<br>
>> >> > sources (default is /lib/modules/2.6.18-164.el5/source).<br>
>> >> > [root@localhost alsa-driver-1.0.20]#<br>
>> >> ><br>
>> >> ><br>
>> >> ><br>
>> >> > [root@localhost alsa-driver-1.0.20]# ./configure --with-redhat=yes<br>
>> >> > --with-cards=dummy,usb-audio,hda-intel,hrtimer,rtctimer<br>
>> >> > --with-card-options=all<br>
>> --with-kernel=/lib/modules/2.6.18-164.el5/source<br>
>> >> > checking for gcc... gcc<br>
>> >> > checking for C compiler default output file name... a.out<br>
>> >> > checking whether the C compiler works... yes<br>
>> >> > checking whether we are cross compiling... no<br>
>> >> > checking for suffix of executables...<br>
>> >> > checking for suffix of object files... o<br>
>> >> > checking whether we are using the GNU C compiler... yes<br>
>> >> > checking whether gcc accepts -g... yes<br>
>> >> > checking for gcc option to accept ISO C89... none needed<br>
>> >> > checking for ranlib... ranlib<br>
>> >> > checking for a BSD-compatible install... /usr/bin/install -c<br>
>> >> > checking how to run the C preprocessor... gcc -E<br>
>> >> > checking for grep that handles long lines and -e... /bin/grep<br>
>> >> > checking for egrep... /bin/grep -E<br>
>> >> > checking for ANSI C header files... yes<br>
>> >> > checking for an ANSI C-conforming const... yes<br>
>> >> > checking for inline... inline<br>
>> >> > checking whether time.h and sys/time.h may both be included... yes<br>
>> >> > checking whether gcc needs -traditional... no<br>
>> >> > checking for current directory... /usr/local/src/alsa-driver-1.0.20<br>
>> >> > checking cross compile...<br>
>> >> > checking for directory with kernel source... ./configure: line 4870:<br>
>> cd:<br>
>> >> > /lib/modules/2.6.18-164.el5/source: No such file or directory<br>
>> >> > /lib/modules/2.6.18-164.el5/source<br>
>> >> > checking for directory with kernel build...<br>
>> >> > checking for kernel linux/version.h... no<br>
>> >> > The file /include/linux/version.h does not exist.<br>
>> >> > Please install the package with full kernel sources for your<br>
>> >> > distribution<br>
>> >> > or use --with-kernel=dir option to specify another directory with<br>
>> kernel<br>
>> >> > sources (default is /lib/modules/2.6.18-164.el5/source).<br>
>> >> ><br>
>> >><br>
>> >> --<br>
>> >> Sent from my mobile device<br>
>> >><br>
>> >> Sincerely,<br>
>> >><br>
>> >> Giovanni Maruzzelli<br>
>> >> Cell : +39-347-2665618<br>
>> >><br>
>> >> _______________________________________________<br>
>> >> FreeSWITCH-users mailing list<br>
>> >> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> >> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> >> UNSUBSCRIBE:<br>
>> <a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> >> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > FreeSWITCH-users mailing list<br>
>> > <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>> ><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> Sincerely,<br>
>><br>
>> Giovanni Maruzzelli<br>
>> Cell : +39-347-2665618<br>
>><br>
>> _______________________________________________<br>
>> FreeSWITCH-users mailing list<br>
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>><br>
><br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">Sent from my mobile device<br>
<br>
Sincerely,<br>
<br>
Giovanni Maruzzelli<br>
Cell : +39-347-2665618<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>