<?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>Icheb&#039;s blog &#187; VOIP stuff</title>
	<atom:link href="http://www.icheb.info/category/voip-stuff/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.icheb.info</link>
	<description></description>
	<lastBuildDate>Sun, 23 Jan 2011 21:56:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.2</generator>
		<item>
		<title>Asterisk week 1: How do you set up Asterisk 1.4 with web interface, from source?</title>
		<link>http://www.icheb.info/2007/05/asterisk-week-1-how-do-you-set-up-asterisk-14-with-web-interface-from-source/</link>
		<comments>http://www.icheb.info/2007/05/asterisk-week-1-how-do-you-set-up-asterisk-14-with-web-interface-from-source/#comments</comments>
		<pubDate>Sun, 06 May 2007 13:12:07 +0000</pubDate>
		<dc:creator>Icheb</dc:creator>
				<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[VOIP stuff]]></category>

		<guid isPermaLink="false">http://www.icheb.info/2007/05/06/asterisk-week-1-how-do-you-set-up-asterisk-14-with-web-interface-from-source/</guid>
		<description><![CDATA[After some delays caused by issues with the &#8216;bandwidth provider&#8217; where I host all the traffic sucking content, here it finally is. The first trial run of me with Asterisk 1.4. How to install Asterisk 1.4 on Debian Etch with VMWare Why do I want to do this? Well, I have experience with Asterisk 1.0&#8230; <a class="continue_reading" href="http://www.icheb.info/2007/05/asterisk-week-1-how-do-you-set-up-asterisk-14-with-web-interface-from-source/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>After some delays caused by issues with the &#8216;bandwidth provider&#8217; where I host all the traffic sucking content, here it finally is.<br />
The first trial run of me with Asterisk 1.4.</p>
<hr />
<strong>How to install Asterisk 1.4 on Debian Etch with VMWare</strong></p>
<p><em>Why do I want to do this?</em><br />
Well, I have experience with Asterisk 1.0 and 1.2, but never had the patience to get 1.4 to work.</p>
<p><em>Okay, what are ya gonna do?</em><br />
So what I want to do is create a base system with Etch, install the dependencies from apt, and install Asterisk (together with the web interface) from source.<br />
<span id="more-52"></span></p>
<p>Well, first of all, you will need something to install it on.<br />
For these kind of cases, I abuse VMWare.</p>
<p>So after first creating a new virtual machine in VMWare Server Console, I logged into ssh to the host server.<br />
Note that I&#8217;m using bridged networking to make sure I could use the normal ways for using networking (with minimal delay&#8217;s).<br />
I had to download the netinstall iso image for Etch, so I went to my iso dir (/usr/src/installers) where all installer iso&#8217;s reside.</p>
<p>Then I mounted the Etch netinstall image in the cd drive of the virtual machine, and booted it.</p>
<p>Due to the fact I hate working with the VMWare Server Console, I used the &#8216;expert&#8217; installation, which will allow me to continue using ssh in a later stage.<br />
Also note that I didn&#8217;t select the new GUI, but use text only.</p>
<p>The following screenshots were captured during the installation:</p>
<p><a href='http://www.icheb.nl/icheb_info_blog/FLV/Asterisk/ast14install/1_di1.jpg' target='_new'><img src="http://www.icheb.nl/icheb_info_blog/FLV/Asterisk/ast14install/1_di1.jpg" height='240' width='320' alt="Debian Installer main menu after boot" /></a><br />
<a href='http://www.icheb.nl/icheb_info_blog/FLV/Asterisk/ast14install/1_di2.jpg' target='_new'><img src="http://www.icheb.nl/icheb_info_blog/FLV/Asterisk/ast14install/1_di2.jpg" height='240' width='320' alt="Continued to cd detection, which was completed without any problems" /></a><br />
<a href='http://www.icheb.nl/icheb_info_blog/FLV/Asterisk/ast14install/1_di3.jpg' target='_new'><img src="http://www.icheb.nl/icheb_info_blog/FLV/Asterisk/ast14install/1_di3.jpg" height='240' width='320' alt="Installer components selected to use with this install" /></a></p>
<p>Right, after that, it was time to configure the network.<br />
As this is a server in a datacenter, DHCP is not possible, so I went ahead and configured it manually.</p>
<p>A few minutes later, I could finally switch to ssh installation mode.<br />
<a href='http://www.icheb.nl/icheb_info_blog/FLV/Asterisk/ast14install/1_di4.jpg' target='_new'><img src="http://www.icheb.nl/icheb_info_blog/FLV/Asterisk/ast14install/1_di4.jpg" height='240' width='320' alt="Entering the password for remote installation" /></a><br />
<a href='http://www.icheb.nl/icheb_info_blog/FLV/Asterisk/ast14install/1_di5.jpg' target='_new'><img src="http://www.icheb.nl/icheb_info_blog/FLV/Asterisk/ast14install/1_di4.jpg" height='240' width='320' alt="Remote installation confirmation window" /></a></p>
<p>After logging in to the remote installation ssh interface, and selecting the &#8216;go to menu&#8217; option, I was able to select a mirror which would be the installation source.</p>
<p>After this I could continue to the detect disks. And partition disks.<br />
These aren&#8217;t really interesting now, as we want to install just one program and play with it a bit.<br />
For your convenience, I added the rest of the installation sequence.</p>
<p>Right, and now to the experiment, the of this has been added as &#8216;video&#8217; here;<br />
<a href="http://www.icheb.nl/icheb_info_blog/FLV/Asterisk/ast14install/ast14install.html">http://www.icheb.nl/icheb_info_blog/FLV/Asterisk/ast14install/ast14install.html</a></p>
<p>Or just click here to allow javascript to fix it for ya (I don&#8217;t know if this will work):<br />
<a href='http://www.icheb.info/blogajax/ast14install.html?height=445&amp;width=815' title='Asterisk 1.4 install' class='thickbox'>Click here to open movie in thickbox kind of window</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.icheb.info/2007/05/asterisk-week-1-how-do-you-set-up-asterisk-14-with-web-interface-from-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Asterisk and RxFax, trouble or not?</title>
		<link>http://www.icheb.info/2006/08/asterisk-and-rxfax-trouble-or-not/</link>
		<comments>http://www.icheb.info/2006/08/asterisk-and-rxfax-trouble-or-not/#comments</comments>
		<pubDate>Mon, 07 Aug 2006 22:29:35 +0000</pubDate>
		<dc:creator>Icheb</dc:creator>
				<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[Programming stuff]]></category>

		<guid isPermaLink="false">http://www.icheb.info/2006/08/08/asterisk-and-rxfax-trouble-or-not/</guid>
		<description><![CDATA[Some time ago, I posted at the Asterisk-users mailinglist. I had a problem, with RxFax. It wasn&#8217;t working at all anymore. However it had worked before. In this posting, I&#8217;ll describe the problem and a possible fix. However I can&#8217;t call this a fix, as it&#8217;s a feature. Not a bug. First of all, my&#8230; <a class="continue_reading" href="http://www.icheb.info/2006/08/asterisk-and-rxfax-trouble-or-not/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Some time ago, I posted at the Asterisk-users mailinglist. I had a problem, with RxFax. It wasn&#8217;t working at all anymore. However it had worked before. In this posting, I&#8217;ll describe the problem and a possible fix. However I can&#8217;t call this a fix, as it&#8217;s a feature. Not a bug.<br />
<span id="more-33"></span> First of all, my original e-mail to the mailinglist:</p>
<p><em>Hi,</em></p>
<p><em>For some time now, I&#8217;ve been fighting with RxFax and Asterisk.<br />
I had it working for some time, however, for some reason it just stopped  working, I guess someone updated Asterisk or something, don&#8217;t know exactly.</em></p>
<p><em>At the moment I keep getting errors while entering the RxFax stage of a  call.<br />
But due to the fact RxFax does not contain any code to directly interact  with an RTP stream, it uses SpanDSP, I guess the problem is somewhere in  SpanDSP.</em></p>
<p><em>From my logs, I get:<br />
&#8211; Goto (macro-faxreceive,s,7)<br />
&#8211; Executing RxFAX(&#8220;SIP/-ff83&#8243;,  &#8220;/var/spool/asterisk/fax/fax/asterisk-8558-1149842081.2.tif&#8221;) in new stack<br />
Jun  9 10:34:56 WARNING[8558]: chan_sip.c:1829 sip_write: Asked to  transmit frame type 64, while native formats is 4 (read/write = 64/4)<br />
Jun  9 10:34:56 WARNING[8558]: chan_sip.c:1829 sip_write: Asked to  transmit frame type 64, while native formats is 4 (read/write = 64/4)<br />
Jun  9 10:34:56 WARNING[8558]: chan_sip.c:1829 sip_write: Asked to  transmit frame type 64, while native formats is 4 (read/write = 64/4)</em></p>
<p><em>The basic call setup works perfectly, but whenever I try to enter a fax  stage, I get this error.<br />
According to the SIP call initialisation, there are no problems with  formats, and the agreed upon format is 4 (aka ulaw).<br />
At the moment I get these errors, there aren&#8217;t any SIP transmissions, so  were in mid-session&#8230;</em></p>
<p><em>I guess the problem is somewhere in SpanDSP or a transcoding error  between slin and ulaw in chan_sip.</em></p>
<p><em>I&#8217;ve confirmed this problem on 2 servers so far.<br />
The first server is our fax receiver (production), where this problem  started. But it also appeared when I tried to directly connect a fax  transmission from a PSTN line with an Sipura 3000 as FXO (forwarding the  audio stream over our NAT to our local Asterisk server, with the ulaw  codec).<br />
Both servers are Debian Sarge servers.</em></p>
<p><em>Confirmed this problem in:<br />
Asterisk 1.0.7 (default .deb packages, being with SpanDSP 0.0.2pre10-3)<br />
Asterisk 1.0.11 (after reading  <a class="moz-txt-link-freetext" href="http://lists.digium.com/pipermail/asterisk-users/2006-May/151843.html">http://lists.digium.com/pipermail/asterisk-users/2006-May/151843.html</a>,  SpanDSP 0.0.2pre26)<br />
Asterisk 1.2.8 (from source, with SpanDSP 0.0.2pre26)<br />
Asterisk 1.2.7.1 (from source, with SpanDSP 0.0.2pre25)</em></p>
<p><em>Does anyone know of a way to get it working again?</em></p>
<p><em>It has worked before, so I know it&#8217;s perfectly possible with Debian Sarge.<br />
Furthermore I&#8217;ve set this up on Red Hat Enterprise servers without this  problem (with Asterisk 1.0.9). So I don&#8217;t believe this is an error  caused by myself. </em></p>
<p>Well, some time later, I posted the message again, on the -dev mailinglist. At that time the maintainer of the SpanDSP lib (<a href="http://www.soft-switch.org/" target="_blank">Steve Underwood</a>) responded to me, it was a user problem. No futher details.</p>
<p>So time after that, <a href="http://www.gaam-engineering.ch/index_home.php" target="_blank">Lukas Gaam</a> contacted me, he had the exact same problem. And due to him, a solution has been found now.</p>
<p>Basically, the problem can be best described like:</p>
<p><em>When SpanDSP is called for RxFax() after audio has been transmitted to  the calling party, SpanDSP fails. If RxFax is activated before other  audio is transmitted by Asterisk over the channel, it works fine.<br />
So it seems, SpanDSP is having problems when it&#8217;s not the first thing  that produces audio.<br />
If a extension is build up like:<br />
exten =&gt; s,1,Answer()<br />
exten =&gt; s,2,Ringing()<br />
exten =&gt; s,3,Wait(x)<br />
exten =&gt; s,4,Macro(faxreceive&#8230;)<br />
It fails.</em></p>
<p><em>If however Ringing() is removed, Asterisk will not produce any audio  before starting the RxFax, and it works perfectly. </em></p>
<p>After Lukas discovered this, we tested it with different audio source, like Playback(), which seemed to cause the same issue.</p>
<p>So the fix would be to have perfect silence before calling the RxFax command / macro.</p>
<p>My current home dialplan has been changed to look like:</p>
<p><em>exten =&gt; 1,1,Answer<br />
exten =&gt; 1,n,NVFaxDetect(5)<br />
exten =&gt; 1,n,Ringing<br />
exten =&gt; 1,n,Wait,5</em></p>
<p>Which makes sure faxes are redirected to the fax extension, however it&#8217;s a pain in the ass, the fax detect takes so long, as some callers start talking before getting the Ringing event.</p>
<p>Perhaps someone can use this to fix problems <img src='http://www.icheb.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>Lukas, thanks for providing the final solution <img src='http://www.icheb.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.icheb.info/2006/08/asterisk-and-rxfax-trouble-or-not/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

