<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Into.the.Void. &#187; VoIP</title>
	<atom:link href="http://www.void.gr/kargig/blog/category/voip/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.void.gr/kargig/blog</link>
	<description>Into The Void</description>
	<lastBuildDate>Sat, 07 Aug 2010 08:06:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SIP Express router, mysql and utf8</title>
		<link>http://www.void.gr/kargig/blog/2008/02/17/sip-express-router-mysql-and-utf8/</link>
		<comments>http://www.void.gr/kargig/blog/2008/02/17/sip-express-router-mysql-and-utf8/#comments</comments>
		<pubDate>Sun, 17 Feb 2008 19:32:11 +0000</pubDate>
		<dc:creator>kargig</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[VoIP]]></category>

		<guid isPermaLink="false">http://www.void.gr/kargig/blog/?p=288</guid>
		<description><![CDATA[Description:
There&#8217;s a small problem when using SIP Express Router (net-misc/ser on Gentoo) with mysql support and your mysql server uses utf8 as a default character set (gentoo&#8217;s latest versions use utf8 by default). 
The problem:
One of ser&#8217;s scripts (ser_mysql.sh) can&#8217;t handle utf8 tables.
# ser_mysql.sh create
MySql password for root:
Domain (realm) for the default user 'admin': foobar
creating [...]]]></description>
			<content:encoded><![CDATA[<p>Description:<br />
There&#8217;s a small problem when using SIP Express Router (net-misc/ser on Gentoo) with mysql support and your mysql server uses utf8 as a default character set (gentoo&#8217;s latest versions use utf8 by default). </p>
<p>The problem:<br />
One of ser&#8217;s scripts (ser_mysql.sh) can&#8217;t handle utf8 tables.<br />
<code># ser_mysql.sh create<br />
MySql password for root:<br />
Domain (realm) for the default user 'admin': foobar<br />
creating database ser ...<br />
ERROR 1071 (42000) at line 100: Specified key was too long; max key length is 1000 bytes<br />
</code></p>
<p>Solution 1 (remove utf8):<br />
Change the character set to latin1.<br />
The specified error can easily be &#8220;fixed&#8221; by editing <strong>/usr/sbin/ser_mysql.sh</strong>. Inside that script you will find a line like this (line 38):<br />
<code>TABLE_TYPE="TYPE=MyISAM"</code></p>
<p>replace it with:</p>
<p><code>TABLE_TYPE="TYPE=MyISAM,DEFAULT CHARACTER SET latin1"</code></p>
<p>The result:<br />
<code># ser_mysql.sh create<br />
MySql password for root:<br />
Domain (realm) for the default user 'admin': foobar<br />
creating database ser ...<br />
</code></p>
<p>Solution 2 (reduce some column sizes):<br />
The following solution makes the script run but I have <strong>not</strong> personally tested if ser STILL works ok after the changes. Feel free to experiment and comment back on this:<br />
<code># sed -i 's|domain varchar(128|domain varchar(100|g' /usr/sbin/ser_mysql.sh<br />
# sed -i 's|contact varchar(255|contact varchar(128|g' /usr/sbin/ser_mysql.sh<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.void.gr/kargig/blog/2008/02/17/sip-express-router-mysql-and-utf8/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>intracom netroute, asterisk and sipdiscount</title>
		<link>http://www.void.gr/kargig/blog/2006/03/09/intracom-netroute-asterisk-and-sipdiscount/</link>
		<comments>http://www.void.gr/kargig/blog/2006/03/09/intracom-netroute-asterisk-and-sipdiscount/#comments</comments>
		<pubDate>Thu, 09 Mar 2006 13:34:47 +0000</pubDate>
		<dc:creator>kargig</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[VoIP]]></category>

		<guid isPermaLink="false">http://www.void.gr/kargig/blog/?p=195</guid>
		<description><![CDATA[I own a netroute2 and I have an asterisk at home to serve me as a pbx. I use it primarily for testing, and I only have a working sipdiscount trunk on it so far. What I wanted to do was plug a normal phone on the netroute and set it up so that I [...]]]></description>
			<content:encoded><![CDATA[<p>I own a <a href="http://www.intracom.gr/en/product_bsl_services/telecom/products/product/terminal_devices/netroute_iad.htm">netroute2</a> and I have an asterisk at home to serve me as a pbx. I use it primarily for testing, and I only have a working sipdiscount trunk on it so far. What I wanted to do was plug a normal phone on the netroute and set it up so that I can call land lines in Greece for free through asterisk, using a sip trunk with sipdiscount.</p>
<li>Asterisk configuration</li>
<p>add to your /etc/asterisk/sip.conf<br />
<code><br />
[sipdiscount]<br />
type=peer<br />
host=sip1.sipdiscount.com<br />
dtmfmode=inband<br />
;allow-g726<br />
canreinvite=no<br />
fromdomain=stun.sipdiscount.com<br />
username=USERNAME<br />
fromuser=USERNAME<br />
secret=PASSWORD<br />
;qualify=yes<br />
[5000]<br />
; netroute<br />
type=friend<br />
regexten=5000<br />
callerid="netroute2" &lt;5000&gt;<br />
host=dynamic                    ; This device needs to register<br />
secret=PASSWORD<br />
allow=ulaw<br />
allow=alaw<br />
</code></p>
<p>add to your /etc/asterisk/extensions.conf<br />
<code><br />
exten => 5000,1,Dial(SIP/5000,30,rm)<br />
exten => _7.,1,Dial(SIP/${EXTEN:1}@sipdiscount,30,rm)<br />
exten => _7.,2,Congestion<br />
exten => _7.,3,Busy<br />
</code></p>
<li>Netroute Configuration</li>
<p>Netroute is more complicated than asterisk. Why ? because there is no documentation at all. So it&#8217;s a trial and error kind of thing. My current working solution IS very very crude and NOT thoroughly tested.</p>
<p>Edit your /etc/call_route.conf and <strong>comment out</strong> the line that says:<br />
 <code>plugin load gr</code></p>
<p>Also, make sure your last lines of this file look like these:<br />
<code># default routes<br />
route_pattern add default/@ gr filt_last rl_rg_sip0<br />
# note: default route is required<br />
route_pattern add default/! default filt_last rl_rg_sip0<br />
</code></p>
<p>Now go to the web interface of netroute and in the voip section add asterisk&#8217;s sip domain/realm and IP settings and the settings you entered in the section [5000] of asterisk&#8217;s sip.conf. You might even want to lower the registration interval, if netroute and asterisk is in the same lan the extra traffic is insignificant. Then go to dialplan configuration and click on &#8220;+Add pattern&#8221;. In the Pattern field add 7X and don&#8217;t tick any of the other boxes. In the Prefix field just add 7.<br />
When finished, do a<br />
<code>/etc/init.d/checkpoint<br />
/etc/init.d/rc-voip restart</code></p>
<p>Now pick up a handset plugged into the first netroute&#8217;s FXS port and dial a string such as: 700302101234567<br />
7 in the beggining is used by asterisk to send the call to sipdiscount trunk and 0030 is used by sipdiscount to call Greece. So in order to call 2101234567 we need to dial 700302101234567 from the netroute.<br />
If you just want to dial Greek land line though sipdiscount change<br />
<code><br />
exten => _7.,1,Dial(SIP/${EXTEN:1}@sipdiscount,30,rm)<br />
</code><br />
with<br />
<code><br />
exten => _7.,1,Dial(SIP/0030${EXTEN:1}@sipdiscount,30,rm)<br />
</code></p>
<p>Then you would only need to call 72101234567 from netroute.</p>
<p>Check asterisk&#8217;s log file for errors. A successful call should look like this:<br />
<code> Executing Dial("SIP/5000-49ab", "SIP/00302101234567@sipdiscount|30|rm") in new stack</code></p>
<p> <img src='http://www.void.gr/kargig/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.void.gr/kargig/blog/2006/03/09/intracom-netroute-asterisk-and-sipdiscount/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>no progress&#8230;</title>
		<link>http://www.void.gr/kargig/blog/2005/12/09/no-progress/</link>
		<comments>http://www.void.gr/kargig/blog/2005/12/09/no-progress/#comments</comments>
		<pubDate>Fri, 09 Dec 2005 10:31:26 +0000</pubDate>
		<dc:creator>kargig</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[VoIP]]></category>

		<guid isPermaLink="false">http://void.gr/kargig/blog/2005/12/09/no-progress/</guid>
		<description><![CDATA[Since gcc 3.4 was marked stable on gentoo, I emerged it and even did an emerge -e world. It took me some time because there were more than 600 packages to rebuild. Anyway, mplayer still denies to work with some videos using -vo xv even after the recompilation with the new gcc.
That&#8217;s the error message:
X11 [...]]]></description>
			<content:encoded><![CDATA[<p>Since gcc 3.4 was marked stable on gentoo, I emerged it and even did an emerge -e world. It took me some time because there were more than 600 packages to rebuild. Anyway, mplayer still denies to work with some videos using -vo xv even after the recompilation with the new gcc.<br />
That&#8217;s the error message:</p>
<blockquote><p>X11 error: BadAlloc (insufficient resources for operation)?,?% 1 0 32%          </p>
<p>MPlayer interrupted by signal 6 in module: vo_check_events
</p></blockquote>
<p>I&#8217;ll keep trying&#8230;</p>
<p>Btw, I read some rumours that Cisco is going to release callmanager 5 under linux. I hope that becomes a reality because the current callmanager 4.1(3) runs only on windows 2000 and there are times that the whole system freezes for no good reason, or times when IE crashes. The whole configuration of the callmanager is done through a web browser&#8230;in order to add a single device you need 10 clicky-clickies&#8230;I hope this changes too. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.void.gr/kargig/blog/2005/12/09/no-progress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ser/openser and Cisco ata 188</title>
		<link>http://www.void.gr/kargig/blog/2005/11/17/seropenser-and-cisco-ata-188/</link>
		<comments>http://www.void.gr/kargig/blog/2005/11/17/seropenser-and-cisco-ata-188/#comments</comments>
		<pubDate>Thu, 17 Nov 2005 08:17:41 +0000</pubDate>
		<dc:creator>kargig</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[VoIP]]></category>

		<guid isPermaLink="false">http://void.gr/kargig/blog/?p=162</guid>
		<description><![CDATA[I&#8217;ve recently installed a ser (SIP express router) in one of my machines (well, in fact it&#8217;s more like openser) mostly for self tutoring. The config file was quite a pain to tune. Many many options, many many modules which all look quite usefull, and you can get easily distracted from what you should be [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently installed a <a href="http://www.iptel.org/ser/">ser</a> (SIP express router) in one of my machines (well, in fact it&#8217;s more like <a href="http://openser.org/">openser</a>) mostly for self tutoring. The config file was quite a pain to tune. Many many options, many many modules which all look quite usefull, and you can get easily distracted from what you should be doing. Luckilly there are some HOWTO&#8217;s (but not complete) around the net.<br />
What I find about ser/openser VERY stupid and annoying, is that while it&#8217;s tools are mostly written in bash they have the default password that comes with the installation <strong>hardcoded</strong> inside. It would be much easier if the installation procedure asked you for a username/password instead of the defaults &#8220;ser/heslo&#8221;. Anyway&#8230;you can change them later quite easily&#8230;but it&#8217;s still annoying.<br />
A tool you might need is <a href="http://sipsak.org/">sipsak</a>. It&#8217;s like a wrapper of some common commands a SIP administrator might frequently need.</p>
<p>Installing Cisco ata 188 and making it work for ser/openser was trully easy. You have to download the latest sip image (ata_03_02_01_sip_050616_a.zip) for the ata adapter from cisco (you need a password for Cisco&#8217;s site) and upload it to your phone (instructions are inside the zip file&#8217;s readme file). Inside the zip file that contains the image and some readme&#8217;s there are a few other executables that can be used for debugging it. What&#8217;s interesting for us linux users? Cisco provides binaries for almost all those tools inside the zip! In fact I upgraded my ata from linux <img src='http://www.void.gr/kargig/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Then go to http://ip.of.ata.given.by.dhcp/dev and you get a very nice menu with quite a lot of options, and some monitors (ethernet, RTP stats) that did not exist in previous versions. Just fill in your username/password, display name and sip proxy server..and you are good to go. The device registers itself without any problems and I was able to make calls to ata 188 from/to Linphone, Kphone and Xten-Lite(both windows and Linux).</p>
<p>Here&#8217;s my testing ata 188:</p>
<p><a href="http://void.gr/kargig/blog/wp-content/pb171073.jpg" rel="lightbox" title="My ATA 188"><img src="http://void.gr/kargig/blog/wp-content/pb171073.jpg" alt='cisco ata 188' width='200' height='150'/></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.void.gr/kargig/blog/2005/11/17/seropenser-and-cisco-ata-188/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
