<?xml version="1.0" encoding="ISO-8859-1"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#" xml:lang="en-US">
	<title>Blog Robert Verspuy</title>
	<link rel="alternate" type="text/html" href="http://www.exa-omicron.nl/blog/rverspuy/index.php" />
	<modified>2012-02-05T17:58:02Z</modified>
	<author>
		<name>Robert Verspuy</name>
	</author>
	<copyright>Copyright 2012, Robert Verspuy</copyright>
	<generator url="http://www.sourceforge.net/projects/sphpblog" version="0.5.1">SPHPBLOG</generator>
	<entry>
		<title>Looking for and found a new employee</title>
		<link rel="alternate" type="text/html" href="http://www.exa-omicron.nl/blog/rverspuy/index.php?entry=entry090730-105320" />
		<content type="text/html" mode="escaped"><![CDATA[I&#039;ve been very, very busy the last months.<br />And now it&#039;s time to see if we can arrange some extra force.<br /><br />Exa-Omicron is looking for a new employee.<br />A PHP programmer with knowlegde and/or interests in Linux, Open Source and VoIP.<br /><br />See <a href="http://www.exa-omicron.nl/vacatures" target="_blank" >http://www.exa-omicron.nl/vacatures</a><br /><br />In the mean time we found a new php developer.<br />More info will come soon.]]></content>
		<id>http://www.exa-omicron.nl/blog/rverspuy/index.php?entry=entry090730-105320</id>
		<issued>2009-07-30T00:00:00Z</issued>
		<modified>2009-07-30T00:00:00Z</modified>
	</entry>
	<entry>
		<title>CentOS Installation on remote machine</title>
		<link rel="alternate" type="text/html" href="http://www.exa-omicron.nl/blog/rverspuy/index.php?entry=entry070914-113248" />
		<content type="text/html" mode="escaped"><![CDATA[In the datacentre I have a Fedora 7 machine with IPMI capabilities. But I have to replace it with CentOS 5.<br /><br />Hmm. I don&#039;t really want to burn CentOS to a DVD, drive (aprox. 1 hour) to the data centre to reboot the server, place the CentOS installation DVD, run the installation, and drive back to the office. Because all other administration can be done remote through ssh.<br /><br />So after some searching on the internet, I found a way to do a remote installation.<br />Thnx for the guys which placed their info online!<br /><a href="http://halisway.blogspot.com/2006/05/installing-centos-linux-on-remote.html" target="_blank" >Hampus</a> and <a href="http://www.karan.org/blog/index.php/2005/06/15/upgrading_to_centos4_over_a_remote_vnc_c" target="_blank" >Karanbir Singh</a><br /><br /><b>So how to start?</b><br />The server has two network cards. One attached directly to a switch connected to internet (eth1) and one attached to a seperate switch, which connects all servers in the rack on a private ip-range (eth0)<br /><br />On the private ip-range I already have dhcp running (not for the servers, they have static ip-addressen, but to make life a bit easier. When I&#039;m with my notebook in the datacentre, I can just plug in, and access all my server through the private lan and also use internet through one gateway with NAT).<br />I just added a few extra commands to make booting through the network possible.<br />My current config:<br /><br /><blockquote><b>/etc/dhcpd.conf</b><pre><br />server-identifier server01.private.bb.exa-omicron.nl;<br />default-lease-time 43200;<br />max-lease-time 86400;<br />option domain-name &quot;exa-omicron.nl&quot;;<br />option domain-name-servers 10.99.1.1;<br /><br />ddns-update-style none;<br /><br />use-host-decl-names on;<br /><br />allow booting;<br />allow bootp;<br /><br />subnet 10.99.1.0 netmask 255.255.255.0 {<br />        authorative;<br /><br />        range   10.99.1.201 10.99.1.230;<br />        option routers  10.99.1.1;<br /><br />        next-server server01.private.exa-omicron.nl;<br />        filename &quot;/pxelinux.0&quot;;<br />}<br /></pre></blockquote><br /><br />Most important here is the next-server and the filename tag.<br />It points to the tftp server, and the file to download and boot.<br /><br /><b>TFTP server</b><br />A tftp server wasn&#039;t installed on this server yet, so I installed it through (it&#039;s fedora core)<br /><code>yum install tftp-server</code><br /><br />This will give you an /tftpboot directory, if not, create it.<br /><br />Don&#039;t forget to also enable the tftp server in the /etc/xinet.d/tftp file through changing the &#039;disable = yes&#039; to &#039;disable = no&#039;<br />And restart the xinet.d daemon through &#039;service xinetd restart&#039;<br /><br /><b>pxelinux</b><br />So now the file, which will be downloaded to boot by the server which must install CentOS. pxelinux is maintained by <a href="http://syslinux.zytor.com/pxe.php" target="_blank" >H. Peter Anvin</a>. You have to download syslinux to a temporary directory, unpack it, and copy the pxelinux file to the /tftpboot directory<br /><blockquote><pre><br />wget <a href="http://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-3.51.tar.bz2" target="_blank" >http://www.kernel.org/pub/linux/utils/b ... 51.tar.bz2</a><br />tar xvjf syslinux-3.51.tar.bz2<br />cp syslinux-3.51/pxelinux.0 /tftpboot/<br /></pre></blockquote><br /><br /><b>And now linux kernel to start the CentOS installation</b><br />From the CentOS mirror file server you can download special vmlinuz and initrd.img files, which can be used for starting the CentOS installation.<br /><blockquote><pre><br />cd /tftpboot<br />mkdir CentOS<br />cd CentOS<br />mkdir 5.0<br />cd 5.0<br />wget <a href="ftp://ftp.surfnet.nl/pub/os/Linux/distr/CentOS/5.0/os/x86_64/images/pxeboot/vmlinuz" target="_blank" >ftp://ftp.surfnet.nl/pub/os/Linux/distr/CentOS/5.0/os/x86_64/images/pxeboot/vmlinuz</a><br />wget <a href="ftp://ftp.surfnet.nl/pub/os/Linux/distr/CentOS/5.0/os/x86_64/images/pxeboot/initrd.img" target="_blank" >ftp://ftp.surfnet.nl/pub/os/Linux/distr/CentOS/5.0/os/x86_64/images/pxeboot/initrd.img</a><br /></pre></blockquote><br /><br /><b>And configuring the pxelinux to start the CentOS installation kernel</b><br /><br />After pxelinux is loaded on the booting server, it will try to retrieve a config file from the tftpserver which holds the next steps to take. It will try different files, based on (for instance) the mac-address, IP addres, or a part of the IP address. This way you could setup different kernels to load for different computers or ip ranges. I don&#039;t use that here, so I just place one default config file as /tftpboot/pxelinux.cfg/default with the following content:<br /><br /><blockquote><b>/tftpboot/pxelinux.cfg/default</b><pre><br />default centos50<br />timeout 5<br />prompt 1<br />serial 0 9600<br /><br />label centos50<br />   kernel CentOS/5.0/vmlinuz<br />   append initrd=CentOS/5.0/initrd.img headless lang=en_US keymap=us \<br />      vnc vncpassword=MyPass ip=dhcp ksdevice=eth0 \<br />      method=http://ftp.surfnet.nl/pub/os/Linux/distr/CentOS/5.0/os/x86_64/<br /></pre></blockquote><br /><br />The extra parameters behind the append are needed by anaconda, to pass phase 1 of the installation without any questions. Then the installation starts an X-server to start phase 2 (the graphical part). This X-server also support vnc :)<br />So with the configuration above, the X-server will be started with VNC, waiting for you to connect to it&#039;s ip-address with the mentioned password. From that stage, you will see the graphical installation on your local computer (where the VNC viewer is running).<br /><br /><b>Do the magic</b><br />So we&#039;ve got everything in place now. Time to do the magic!<br />with IPMI, I can reboot the server and force it into the BIOS.<br />I ran these commands on the dhcp server, and used the ip address of the server, which must be reinstalled.<br /><blockquote><pre><br />ipmitool -I lanplus -H 10.99.1.45 -A Admin -P IMPIPasswd chassis bootdev bios<br />ipmitool -I lanplus -H 10.99.1.45 -A Admin -P IMPIPasswd chassis power reset<br /></pre></blockquote><br /><br />With IPMI I also have the possibility of Serial-Over-Lan. This gives me the opportunity to change settings inside the BIOS through the IPMI card located in the server and listening on the first networkcard.<br /><blockquote><pre><br />ipmitool -I lanplus -H 10.99.1.45 -A Admin -P IMPIPasswd sol activate<br /></pre><blockquote><br /><br />So after I changes the bootorder in the BIOS, saved the settings and rebooted the machine, I could see in logfile of the dhcp server, that the machine gets a dynamic ip-addres.<br />After that the configfile and kernel files are downloaded from the tftp server. Then it takes a moment to start the phase 1 of the installation, places a second dhcp request (this time by the OS, not by the BIOS/LAN card). Then it checks if it can reach the installation files from the method given in the pxelinux.cfg/default config file. The X-server with vns is started. Then you can connect with a vnc viewer to the dynamic ip-address.<br /><br />This way I could successfully install CentOS, just like I was in the datacentre with a monitor hooked up on the server itself.<br /><br />Don&#039;t forget to change the BIOS settings after the installation back so it will not try to reboot through the networkcard every time :)<br /><br />]]></content>
		<id>http://www.exa-omicron.nl/blog/rverspuy/index.php?entry=entry070914-113248</id>
		<issued>2007-09-14T00:00:00Z</issued>
		<modified>2007-09-14T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Updating to Asterisk 1.2.22 (including zaptel, libpri, red-fone zaptel patch and Openh323, but without bristuff)</title>
		<link rel="alternate" type="text/html" href="http://www.exa-omicron.nl/blog/rverspuy/index.php?entry=entry070723-125950" />
		<content type="text/html" mode="escaped"><![CDATA[The VOIP server is running for almost a year, without any big problems. Latest Asterisk version was from december 2006.<br />So time for a update to the latest versions, of all used software.<br /><br />In the mean time, we also have a red-phone fonebridge 2, so we don&#039;t need the ztdummy anymore. Let&#039;s do a full compile and install ourselves including OpenH323 and the Red-Fone Zaptel Patch, but without the bristuff...<br /><br /><br /><br /><b>Download</b><br /><code><br />wget &quot;ftp://ftp.digium.com/pub/asterisk/asterisk-1.2.22.tar.gz&quot;<br />wget &quot;ftp://ftp.digium.com/pub/asterisk/asterisk-addons-1.2.7.tar.gz&quot;<br />wget &quot;ftp://ftp.digium.com/pub/libpri/libpri-1.2.5.tar.gz&quot;<br />wget &quot;ftp://ftp.digium.com/pub/zaptel/zaptel-1.2.19.tar.gz&quot;<br />wget &quot;http://support.red-fone.com/downloads/zaptel/zaptel_patch.diff&quot;<br />wget &quot;http://ftp.digium.com/pub/asterisk/releases/asterisk-sounds-1.2.1.tar.gz&quot;<br />wget &quot;http://downloads.sourceforge.net/openh323/pwlib-v1_10_3-src-tar.gz&quot;<br />wget &quot;http://downloads.sourceforge.net/openh323/openh323-v1_18_0-src-tar.gz&quot;<br /><code><br /><br /><b>Why not...</b><br />Why not the current latest openh323 v1.19.0.1?<br />Because this gave me the following error:<br /><code><br />h323ep.cxx: In member function ‘PNatMethod* H323EndPoint::GetPreferedNatMethod(const PIPSocket::Address&amp; )’:<br />h323ep.cxx:3211: error: ‘class PNatStrategy’ has no member named ‘GetNATList’<br />h323ep.cxx:3215: error: ‘class PNatMethod’ has no member named ‘GetNatMethodName’<br /></code><br />And according to <a href="http://hup.hu/node/39062" target="_blank" >http://hup.hu/node/39062</a>, I should use OpenH323 v1.18.0<br /><br /><b>PWLib</b><br /><code><br />tar xvzf pwlib-v1_10_3-src-tar.gz<br />ln -s pwlib_v1_10_3/ pwlib<br />cd pwlib<br />./configure<br />make clean opt<br />cd ..<br /></code><br /><br /><b>OpenH323</b><br /><code><br />tar xvzf openh323-v1_18_0-src-tar.gz<br />ln -s openh323_v1_18_0/ openh323<br />cd openh323<br />./configure<br />make clean opt<br />cd ..<br /></code><br /><br /><b>Before we go on...</b><br />We have to stop zaptel and asterisk<br /><code><br />service asterisk stop<br />service zaptel stop<br /></code><br /><br /><b>Zaptel</b><br /><code><br />tar xvzf zaptel-1.2.19.tar.gz<br />ln -s zaptel-1.2.19 zaptel<br />cd zaptel<br />patch -p0 &lt; ../zaptel_patch.diff<br /></code><br />Also make the following changes for the red-fone fonebridge2 to work:<br /><blockquote><code><br />--- ztcfg.c       2007-07-24 03:31:05.000000000 +0200<br />+++ ztcfg-fixed.c     2007-07-24 03:31:24.000000000 +0200<br />@@ -1281,16 +1281,6 @@<br />                                                        current_state.channo = cc[x].chan | ZT_GET_PARAMS_RETURN_MASTER;<br />                                                        if (ioctl(fd, ZT_GET_PARAMS, &amp;current_state))<br />                                                                needupdate = 1;<br />-                                                       else if (current_state.chanpos == 16 &amp;&amp;<br />-                                                               (cc[x].sigtype &amp; ZT_SIG_CLEAR) &amp;&amp;<br />-                                                               !(lc[current_state.spanno - 1].lineconfig &amp;<br />-                                                               (ZT_CONFIG_D4|ZT_CONFIG_ESF|ZT_CONFIG_B8ZS|ZT_CONFIG_CCS))) {<br />-                                                                       fprintf(stderr,<br />-                                                                               &quot;CAS signalling on span %u conflicts with %s on channel %u.\n&quot;,<br />-                                                                               current_state.spanno,<br />-                                                                               sigtype_to_str(cc[x].sigtype), x);<br />-                                                                       exit(1);<br />-                                                       }<br />                                                }<br /><br />                                                if (!needupdate) {<br /></code></blockquote><br /><code><br />make clean<br />make install<br /></code><br />And you will probably get an warning about the file /etc/modprobe.d/zaptel, which is copied to /etc/modprobe.d/zaptel.bak.Copy this file back, because some settings from this file are needed. (Only so this, of you only have a red-fone fonebridge2, and no other zaptel hardware<br /><code><br />cp /etc/modprobe.d/zaptel.bak /etc/modprobe.d/zaptel<br /></code><br /><br /><b>LibPRI</b><br /><code><br />tar xvzf libpri-1.2.5.tar.gz<br />ln -s libpri-1.2.5 libpri<br />cd libpri<br />make clean<br />make install<br /></code><br /><br /><b>Asterisk</b><br /><code><br />tar xvzf asterisk-1.2.22.tar.gz<br />ln -s asterisk-1.2.22<br />cd asterisk/channels/h323<br /></code><br /><br />Fix the Makefile:<br /><blockquote><code>--- Makefile    2007-03-06 16:17:16.000000000 +0100<br />+++ Makefile-fixed      2007-07-23 14:50:10.000000000 +0200<br />@@ -21,8 +21,7 @@<br /> OPENH323DIR=$(HOME)/openh323<br /> endif<br /><br />-clean:<br />-       rm -f *.so *.o .depend<br />+include $(OPENH323DIR)/openh323u.mak<br /><br /> $(SOURCES)::   $(SOURCES:.cxx=.cpp)<br />        ln -f $&lt; $@<br />@@ -31,7 +30,6 @@<br />        touch $(SOURCES)<br /><br /> libchanh323.a: $(OBJS)<br />-       include $(OPENH323DIR)/openh323u.mak<br />        ar crv $@ $(OBJS)<br /><br /> Makefile.ast:  FORCE</code></blockquote><br /><br /><code><br />export OPENH323DIR=/my/software/openh323<br />make opt<br />cd ../..<br />make clean<br />make install<br />cd ..<br /></code><br />During the make install, I got 2 warning messages. I&#039;l discuss them later.<br /><br /><b>Asterisk Sounds</b><br />This one is not necessary to run Asterisk, but contains a lot of very funny but also handy voice prompts from Allison Smith from Digium.<br /><code><br />tar xvzf asterisk-sounds-1.2.1.tar.gz<br />cd asterisk-sounds-1.2.1<br />make install<br />cd ..<br /></code><br /><br /><b>Warning about incorrect version mpg123</b><br />During the make install of asterisk I got the following warning:<br /><code><br />*************************************************************<br />*** You have the WRONG version of mpg123... you need .59r ***<br />*** Use &#039;make mpg123&#039; to get the right verison            ***<br />*************************************************************<br /></code><br />I think this is a incorrect message because I have an already newer version:<br /><code><br /># mpg123 --help<br />High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3<br />version 0.65; written and copyright by Michael Hipp and others<br />free software (LGPL/GPL) without any warranty but with best wishes<br /></code><br /><br /><b>Old module version</b><br />At the end of the make install of asterisk, I got a list of modules, which were not installed by the just installed version. You can recall this list with the command:<br /><code><br />cd asterisk<br />make oldmodcheck<br />cd ..<br /></code><br />I got this list:<br /><blockquote><code><br /> WARNING WARNING WARNING<br /><br /> Your Asterisk modules directory, located at<br /> /usr/lib/asterisk/modules<br /> contains modules that were not installed by this<br /> version of Asterisk. Please ensure that these<br /> modules are compatible with this version before<br /> attempting to run Asterisk.<br /><br />    app_callingpres.so<br />    app_devstate.so<br />    app_pickup.so<br />    app_segfault.so<br />    codec_g729a.so<br />    res_esel.so<br />    res_watchdog.so<br /><br /> WARNING WARNING WARNING<br /></code></blockquote><br />The codec_g729a.so is correct. This is a seperate module, see some comments below.<br />The other files are probably from an older version and deprecated (at least in my situation...)<br />So I will remove them from my module dir.<br />I&#039;ll move them to a safe location, so I can copy them back,<br />when it appears, I do need some of the files<br /><code><br />mkdir backup_old_modules<br />mv /usr/lib/asterisk/modules/app_callingpres.so backup_old_modules/<br />  ... repeat for all modules ...<br />mv /usr/lib/asterisk/modules/res_watchdog.so backup_old_modules/<br /></code><br /><br /><b>Also need an update of the g729a codec from Digium?</b><br />Download the appropriate file for your hardware. I&#039;m using a<br />intel Pentium D, 3GHz, x86_64 linux, so I used:<br /><code><br />wget <a href="http://ftp.digium.com/pub/asterisk/g729/asterisk-1.2/64-bit/codec_g729a_v32_opteron.tar.gz" target="_blank" >http://ftp.digium.com/pub/asterisk/g729 ... ron.tar.gz</a><br />tar xvzf codec_g729a_v32_opteron.tar.gz<br />cd codec_g729a_v32_opteron<br />cp codec_g729a.so /usr/lib/asterisk/modules/codec_g729a.so<br />cd ..<br /></code><br /><br /><b>Almost there...</b><br />We can&#039;t start Asterisk yet...<br />The libh323 file is not yet installed at the correct (x86_64) location. <i>So only run this step, If you have a x86_64 system too</i>:<br /><code><br />cd openh323<br /></code><br />Fix the Makefile:<br /><blockquote><code><br />--- Makefile    2007-07-23 13:40:27.000000000 +0200<br />+++ Makefile-fixed      2007-07-24 01:43:01.000000000 +0200<br />@@ -307,9 +307,9 @@<br /> endif<br /> endif<br /><br />-PREFIX=/usr/local/<br />+PREFIX=/usr/<br /> exec_prefix = ${PREFIX}<br />-LIBDIR=${exec_prefix}/lib<br />+LIBDIR=${exec_prefix}/lib64<br /><br /> ifndef PREFIX<br /> PREFIX=/usr/local<br /></code></blockquote><br /><code><br />make install<br />cd ..<br /></code><br />And offcourse, also fix this issue in pwlib<br /><code><br />cd pwlib<br /></code><br />Fix the Makefile<br /><blockquote><code><br />--- Makefile    2007-07-23 12:56:46.000000000 +0200<br />+++ Makefile-fixed      2007-07-24 01:45:38.000000000 +0200<br />@@ -207,9 +207,9 @@<br /> #<br /> #<br /><br />-PREFIX=/usr/local<br />+PREFIX=/usr/<br /> exec_prefix = ${PREFIX}<br />-LIBDIR=${exec_prefix}/lib<br />+LIBDIR=${exec_prefix}/lib64<br /> export PWLIBDIR=/root/software/20070723/pwlib<br /><br /> INSTALL=/usr/bin/install -c<br /></code></blockquote><br /><code><br />make install<br />cd ..<br /></code><br /><br /><b>The final step</b><br />It&#039;s very un-linuxish, but I had to reboot the server.<br />The Zaptel driver (specially with the ztd-eth is not stable when unloading, and loading. (Server hangs..)<br />So to be safe, reboot..<br />And power-cycle your red-phone fonebridge2 also, I had some problems. And don&#039;t forget to run the fonulator, after the fonebridge2 power-cycle :)<br /><br />And now everything is running again (at least on my server :)<br />]]></content>
		<id>http://www.exa-omicron.nl/blog/rverspuy/index.php?entry=entry070723-125950</id>
		<issued>2007-07-23T00:00:00Z</issued>
		<modified>2007-07-23T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Openh323 Channel in Asterisk on  x86_64 FC5</title>
		<link rel="alternate" type="text/html" href="http://www.exa-omicron.nl/blog/rverspuy/index.php?entry=entry060908-151000" />
		<content type="text/html" mode="escaped"><![CDATA[Ok. Next phase.. Trying to get the openh323 channel in asterisk working.<br />So, My installation base is a x86_64 Fedora Core 5 Server.<br />Just compiled and installed bristuff 0.3.0-PRE-1s with asterisk 1.2.10.<br /><br />In the bristuff/asterisk/channel/h323 dir is some source for the h323 channel driver.<br /><br /><br /><br />First I need to remove some packages from my system.<br /><code><br />rpm -e ekiga<br />rpm -e opal<br />rpm -e pwlib<br /></code><br />And need to install some other package<br /><code><br />yum install expat-devel flex bison<br /></code><br />Now I&#039;m ready to compile the openh323 packages myself..<br />I need the pwlib and openh323 packages from <a href="http://sourceforge.net/project/showfiles.php?group_id=80674" target="_blank" >http://sourceforge.net/project/showfile ... p_id=80674</a><br /><br />but the channel readme file states it is tested with a pretty old version.<br /><br />So, ok. let&#039;s try these old versions...<br /><br />First downloading pwlib 1.9.0 and openh323 v.17.0, then<br /><code><br />tar xvzf pwlib-v1_9_0-src-tar.gz<br />tar xvzf openh323-v1_17_1-src-tar.gz<br />ln -s pwlib_v1_9_0/ pwlib<br />ln -s openh323_v1_17_1/ openh323<br /></code><br /><br />First Compile the pwlib<br /><code><br />cd pwlib<br />./configure<br />make clean opt<br /></code><br />Oops.. :o Compile error..<br /><code><br />.../pwlib/include/ptlib/timer.h:363: error: ISO C++ forbids declaration of ‘PTimerList’ with no type<br /></code><br />According to <a href="http://www.openh323.org/pipermail/openh323/Week-of-Mon-20050801/074440.html" target="_blank" >http://www.openh323.org/pipermail/openh ... 74440.html</a> the cause is propably the g++ compiler. Fedora Core 5 uses v4.1.1, but the channel readme file suggest to use v3.2.2.<br /><br />Hmm. Ok, let&#039;s try a newer version of pwlib and openh323, for example pwlib v1.9.1 and openh323 v1.17.3 as suggested in the openh323 mailing list.<br /><br />First remove the packages we just downloaded and unpacked.<br /><code><br />rm -rf pwlib*<br />rm -rf openh323*<br /></code><br />And download the newer versions and unpack them.<br /><code><br />tar xvzf pwlib-v1_9_1-src-tar.gz<br />tar xvzf openh323-v1_17_3-src-tar.gz<br />ln -s pwlib_v1_9_1/ pwlib<br />ln -s openh323_v1_17_3/ openh323<br /></code><br />And try another compile<br /><code><br />cd pwlib<br />./configure<br />make clean opt<br /></code><br />Oops... :o Another compile error<br /><code><br />sound_oss.cxx: In member function ‘virtual BOOL PSoundChannelOSS::Read(void*, PINDEX)’:<br />sound_oss.cxx:766: error: cast from ‘void*’ to ‘unsigned int’ loses precision<br /></code><br />Looks like, I&#039;m not the only one with the same issue. See <a href="http://lists.digium.com/pipermail/asterisk-users/2006-January/135228.html" target="_blank" >http://lists.digium.com/pipermail/aster ... 35228.html</a><br />But unfortunatly nobody helped this person until now, so it won&#039;t get me any further..<br /><br />So (again) let&#039;s try a bit newer version..<br /><br />pwlib v1.9.2, and I&#039;ll download the corresponding openh323, when pwlib compiles correctly :)<br /><br />Delete the old versions, and download the newer one, then unpack and compile<br /><code><br />tar xvzf pwlib-v1_9_2-src-tar.gz<br />ln -s pwlib_v1_9_2/ pwlib<br />./configure<br />make clean opt<br /></code><br />Wauw.. Looks like it compiles succesfully!<br /><br />Ok.. let&#039;s try the openh323 package now..<br /><br />openh323 v.1.7.3 is release on the same day as the pwlib that I just compiled. So I&#039;ll try this one. After the download, unpack and compile<br /><code><br />tar xvzf openh323-v1_17_3-src-tar.gz<br />ln -s openh323_v1_17_3/ openh323<br />./configure<br />make clean opt<br /></code><br />:( Another compile error...<br /><code><br />openh323/include/ixjlid.h:842: error: extra qualification ‘OpalIxJDevice::’ on member ‘GetException’<br /></code><br />According to <a href="http://www.redhat.com/archives/fedora-cvs-commits/2005-December/msg00851.html" target="_blank" >http://www.redhat.com/archives/fedora-c ... 00851.html</a><br />Only a small change to the line, should to the trick to make it work with g++ 4.1. So let&#039;s give it a try.<br />Edit the include/ixjlid.h file, and go to row nr. 842. Then remove the OpalIxjDevice:: from the row.<br />And recompile.<br /><code><br />make clean opt<br /></code><br />YES! Finally, a full compile of the pwlib and openh323..<br /><br />Now it&#039;s time to compile the openh323 channel driver...<br />Don&#039;t forget to set the openh323 source location with an export command<br /><code><br />cd /my/software/bristuff-0.3.0-PRE-1s/asterisk/channels/h323<br />export OPENH323DIR=/my/software/openh323<br />make opt<br /></code><br />Now we only need to reinstall asterisk<br /><code><br />cd ../..<br />make install<br /></code><br />First stop the current running asterisk<br /><code><br />service asterisk stop<br /></code><br />Now Start asterisk in console mode, to see if everythins is running ok.<br /><code><br />asterisk -c<br /></code><br />But it&#039;s not running ok, yet..<br />Asterisk fails with the error:<br /><code><br />loader.c:325 __load_resource: libh323_linux_x86_64_r.so.1.17.3: cannot open shared object file: No such file or directory<br />WARNING[30575]: loader.c:554 load_modules: Loading module chan_h323.so failed!<br /></code><br />Seems that the libh323 file can&#039;t be found.<br />This is not mentioned in the h323 channel driver readme.txt.<br />But still I try to do an installation of the openh323 package. because in the openh323/lib path a libh323_linux_x86_64_r.so.1.17.3 exists.<br />so, back to the openh323 dir, and first edit the Makefile...<br /><br />And edit on line 310 to PREFIX=/usr/<br />And edit line312 into LIBDIR=${exec_prefix}/lib64<br /><br />The last change is only for x86_64 systems!<br /><br />And now, install the library<br /><code><br />make install<br /></code><br /><br />When running asterisk -c again, I see that the libpt_linux_x86_64_r.so.1.9.2 is now missing.<br /><br />So let&#039;s to the same with the pwlib<br /><br />In the Makefile,<br />edit line 210 to PREFIX=/usr<br />edit line 212 to LIBDIR=${exec_prefix}/lib64<br /><br />and install the library<br /><code><br />make install<br /></code><br /><br />When running asterisk -c now, it finaly starts without an error! :)<br /><br />It&#039;s still telling me that is misses a h323.conf, so that&#039;s the last thing to fix.<br />Type &#039;stop now&#039; to leave the this asterisk console<br /><br />In the h323 channel driver directory there&#039;s a h323.conf.sample file.<br /><br /><code><br />cp h323.conf.sample /etc/asterisk/h323.conf<br /></code><br /><br />Now edit the /etc/asterisk/h323.conf and change line 6 into a valid IP address of your server.<br /><br />Then asterisk can be started again..<br /><code><br />service asterisk start<br /></code><br /><br />and, finaly a running asterisk with h323 support...<br /><br /><br /><br />]]></content>
		<id>http://www.exa-omicron.nl/blog/rverspuy/index.php?entry=entry060908-151000</id>
		<issued>2006-09-08T00:00:00Z</issued>
		<modified>2006-09-08T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Installing and compiling asterisk with bristuff on x86_64 FC5 server</title>
		<link rel="alternate" type="text/html" href="http://www.exa-omicron.nl/blog/rverspuy/index.php?entry=entry060908-000000" />
		<content type="text/html" mode="escaped"><![CDATA[I just installed a Fedora Core 5 Server with a minimum of packages.<br />This Pentium D x86_64 server will be a VOIP Router, equiped with Asterisk.<br /><br /><br /><br />To compile asterisk I use the bristuff package from <a href="http://www.junghanns.net/en/download.html" target="_blank" >http://www.junghanns.net/en/download.html</a><br />(Currently v0.3.0-PRE-1s with asterisk v1.2.10)<br /><br />Before the bristuff could be compiled fully, I had to take te following steps:<br /><code><br />yum install kernel-devel gcc gcc-c++ openssl-devel<br />cd /usr/src<br />ln -s kernels/2.6.17-1.2174_FC5-x86_64 linux-2.6<br /></code><br />After running the ./download.sh, I had to change the libgsmat/Makefile:<br /><br />Inserted on line 33 from <br />INSTALL_BASE=/usr<br /><br />And I removed the / in front of $(INSTALL_BASE) on line 64<br /><br />Now everything can be compiled without errors, so time to start ./compile.sh<br /><br />Then after all the libraries, kernel modules and asterisk is compiled successfully:<br /><code><br />cd asterisk<br />make samples<br />cp contrib/init.d/rc.redhat.asterisk /etc/init.d/asterisk<br />chkconfig asterisk on<br />service asterisk start<br /></code><br />And asterisk is up and running!<br />(which cna be checked by starting asterisk -r, which gives you a asterisk remote console..<br /><br /><br /><br />]]></content>
		<id>http://www.exa-omicron.nl/blog/rverspuy/index.php?entry=entry060908-000000</id>
		<issued>2006-09-07T00:00:00Z</issued>
		<modified>2006-09-07T00:00:00Z</modified>
	</entry>
</feed>

