<?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>mihaelamj.com &#187; Asterisk</title>
	<atom:link href="http://mihaelamj.com/category/asterisk/feed/" rel="self" type="application/rss+xml" />
	<link>http://mihaelamj.com</link>
	<description>A blog of a she-preneur</description>
	<lastBuildDate>Sun, 05 Feb 2012 23:03:22 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Choosing the Asterisk GUI, or not</title>
		<link>http://mihaelamj.com/asterisk/adding-asterisk-transparently/</link>
		<comments>http://mihaelamj.com/asterisk/adding-asterisk-transparently/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 11:23:43 +0000</pubDate>
		<dc:creator>mihaelamj</dc:creator>
				<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[3 Things]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Asterisk Gui]]></category>
		<category><![CDATA[Choices]]></category>
		<category><![CDATA[Commercial Solutions]]></category>
		<category><![CDATA[Counterparts]]></category>
		<category><![CDATA[Croatia]]></category>
		<category><![CDATA[Dashboard]]></category>
		<category><![CDATA[Dependencies]]></category>
		<category><![CDATA[Distributions]]></category>
		<category><![CDATA[Distro]]></category>
		<category><![CDATA[Dll Hell]]></category>
		<category><![CDATA[Front Ends]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[Functionality]]></category>
		<category><![CDATA[Gui]]></category>
		<category><![CDATA[Guis]]></category>
		<category><![CDATA[Hell]]></category>
		<category><![CDATA[Informed Choice]]></category>
		<category><![CDATA[Installation Document]]></category>
		<category><![CDATA[Integration]]></category>
		<category><![CDATA[Integrations]]></category>
		<category><![CDATA[Integrators]]></category>
		<category><![CDATA[Maintenance Issues]]></category>
		<category><![CDATA[Myriad]]></category>
		<category><![CDATA[Payed]]></category>
		<category><![CDATA[Ra]]></category>
		<category><![CDATA[Random Strings]]></category>
		<category><![CDATA[Rb]]></category>
		<category><![CDATA[Tens]]></category>
		<category><![CDATA[Time And Money]]></category>
		<category><![CDATA[Trunks]]></category>
		<category><![CDATA[tweet]]></category>
		<category><![CDATA[Version Numbers]]></category>
		<category><![CDATA[Voip]]></category>

		<guid isPermaLink="false">http://mihaelamj.com/?p=51</guid>
		<description><![CDATA[There are eight reasons why I don't use any of the Asterisk GUI distros. They are : choosing, upgrading, extending, installation, compatibility, support, experience and the security. 


No related posts.]]></description>
			<content:encoded><![CDATA[<h2>Choosing</h2>
<p><a href="http://mihaelamj.com/wp-content/uploads/2010/02/arrow_bi_72.png"><img class="alignleft size-full wp-image-86" title="arrow_bi_72" src="http://mihaelamj.com/wp-content/uploads/2010/02/arrow_bi_72.png" alt="" width="72" height="72" /></a>One of the first GUIs for Asterisk was Asterisk @Home which eventually became <a title="Trixbox" href="http://www.trixbox.org/">Trixbox </a>. Now there are tens of them. On the voip-info page I&#8217;ve managed to count about<a title="Asterisk GUI" href="http://www.voip-info.org/wiki/view/Asterisk+GUI"> more than 40.</a> Some are completely free, some commercial of which some  also have free counterparts.  Many offer payed support, training and certification.</p>
<p><span style="background-color: #ccffcc;">So how do you choose between 40+ choices? </span></p>
<p>It&#8217;s easy you don&#8217;t. One should never have more than 3 things to choose from.</p>
<p><strong>Sow how do you choose, really?</strong></p>
<p>Well I guess it all comes down to which of the GUI distributions or front-ends you came in contact first. Because you have the most time invested in that one.  Or you trusted someone&#8217;s recommendation. You cannot possibly make an informed choice, on your own, by trying and testing 46 distors.</p>
<hr style="border: 1px solid #cccccc; height: 1px; width: 468px; color: #ffffff;" size="1" noshade="noshade" />
<h2>Upgrading</h2>
<p><a href="http://mihaelamj.com/wp-content/uploads/2010/02/php_server_72.png"><img class="alignleft size-full wp-image-87" title="Upgrading the Asterisk GUI" src="http://mihaelamj.com/wp-content/uploads/2010/02/php_server_72.png" alt="Upgrading the Asterisk GUI" width="72" height="72" /></a>There&#8217;s another issue, <span style="background-color: #ffffff;">the upgrade</span>. What happens when you want the <span style="background-color: #ccffcc;">latest Asterisk version</span> on your distro? If you have a commercial one the vendor will eventually do it for you, but that might cost you both time and money. If not, than you&#8217;re at the mercy of the community maintaining the distro.</p>
<p>Maybe you&#8217;re involved,.</p>
<p>Maybe <strong>you should be</strong>, it&#8217;s your business.</p>
<hr style="border: 1px solid #cccccc; height: 1px; width: 467px; color: #ffffff;" size="1" noshade="noshade" />
<h2>Extending</h2>
<p><a href="http://mihaelamj.com/wp-content/uploads/2010/02/connection_string_72.png"><img class="alignleft size-full wp-image-90" title="Extending the Asterisk GUI" src="http://mihaelamj.com/wp-content/uploads/2010/02/connection_string_72.png" alt="Extending the Asterisk GUI" width="72" height="72" /></a>What about <strong>extendability</strong>? Your clients want some <span style="background-color: #ccffcc;">functionality</span> that&#8217;s not in your GUI of choice? You will definitely have to do it yourself.   How many files have to be changed, additional &#8220;things&#8221; installed, changes to the database. It&#8217;s pretty easy while you&#8217;re doing it <span style="background-color: #ff99cc;">the first time</span>, and fun too, but how do you repeat the process?   Add that same &#8220;module&#8221; to some other installation?  Document everything? Yeah that&#8217;s the fun part. And do the same 37 things all over again.</p>
<p>No wait I&#8217;ll <strong>make a script</strong>. And then, one day, the script  stops working. They changed the distro, or whatever. So now you have script <span style="background-color: #ccffcc;">maintenance</span> issues. Two clients with version <strong>0.9.8.4.6.1.3.ra</strong> and one with version  <strong>0.9.8.7.4.8.6.rb</strong> and who knows how many others with random strings of characters in version numbers. Is it really worth it? I&#8217;ll just say that we<strong> don&#8217;t offer</strong> that functionality any more.</p>
<hr style="border: 1px solid #cccccc; height: 1px; width: 468px; color: #ffffff;" size="1" noshade="noshade" />
<h2>Installation</h2>
<p><a href="http://mihaelamj.com/wp-content/uploads/2010/02/wizard_72.png"><img class="alignleft size-full wp-image-91" title="Installing The Asterisk GUI" src="http://mihaelamj.com/wp-content/uploads/2010/02/wizard_72.png" alt="Installing The Asterisk GUI" width="72" height="72" /></a>What about the<strong> initial installation</strong> ?</p>
<p><span style="background-color: #ccffcc;">Easy, intuitive</span>? Easy is not a bad word. Easy should be a <span style="background-color: #ff99cc;">prerogative</span>. Doesn&#8217;t mean that you&#8217;re smart if you&#8217;re doing something a rookie is unable to do. It only means that you have <span style="background-color: #ccffcc;">time to waist</span>. Asterisk is easy to install. Why? Because it&#8217;s predictable and because someone (Digium) keeps the order of things.</p>
<hr style="border: 1px solid #cccccc; height: 1px; width: 468px; color: #ffffff;" size="1" noshade="noshade" />
<h2>Compatibility</h2>
<p><a href="http://mihaelamj.com/wp-content/uploads/2010/02/pci_expansion_card_72.png"><img class="alignleft size-full wp-image-92" title="Extending the Asterisk GUI's functionality" src="http://mihaelamj.com/wp-content/uploads/2010/02/pci_expansion_card_72.png" alt="Extending the Asterisk GUI's functionality" width="72" height="72" /></a>And what happens when you want to <span style="background-color: #ccffcc;">add some exotic interface</span> to your PBX.</p>
<p>Well if it&#8217;s plain Asterisk no problem. Once I needed to change the misdn channel&#8217;s source files, but that was just one file. I saved the diff and that was a <strong>no-brainer to repeat</strong>. Later Digium updated the files so that was not necessary to do any more.</p>
<p>But with a big GUI distro, that made<span style="background-color: #ff99cc;"> a mess</span> of Astrisk&#8217;s cont files, that becomes an order of magnitude <strong>more complicated</strong>.</p>
<p>Windows infamous <a title="The DLL hell" href="http://en.wikipedia.org/wiki/DLL_hell">DLL Hell</a> is nothing when compared to all of the above.</p>
<hr style="border: 1px solid #cccccc; height: 1px; width: 468px; color: #ffffff;" size="1" noshade="noshade" />
<h2>Support</h2>
<p><a href="http://mihaelamj.com/wp-content/uploads/2010/02/competitors_72.png"><img class="alignleft size-full wp-image-93" title="Support for Asterisk GUI" src="http://mihaelamj.com/wp-content/uploads/2010/02/competitors_72.png" alt="Support for Asterisk GUI" width="72" height="72" /></a>And what if you&#8217;re <span style="background-color: #ccffcc;">doing five other thing</span>s? At the moment I&#8217;m doing at least 7. Besides the Asterisk maintenance and integration, there&#8217;s coding, web design, SEO, what not, accounting, business stuff&#8230; Do I really need to &#8220;learn&#8221; another paradigm? Of a questionable benefit and quality. It&#8217;s not like I&#8217;m trying to comprehend the string theory. It&#8217;s a mishmash of 20 -30 code stacks <span style="background-color: #ff99cc;">glued together</span> in an unnatural liaison. And all the effort goes into making sure that the parts do not not fall out of the stack. So that brings us to the support. You need some way of keeping up with things.</p>
<p>The commercial GUIs offer payed support, training and certification. I would only pay for Digium&#8217;s excellent boot camp and <a title="dCAp on voip-info" href="http://www.voip-info.org/wiki/view/Asterisk+Professionals">dCAP</a> (I plan to, in the future).</p>
<p>So what do I suggest? API. There is an API, the manager.</p>
<hr style="border: 1px solid #cccccc; height: 1px; width: 468px; color: #ffffff;" size="1" noshade="noshade" />
<h2>The Experience</h2>
<p><a href="http://mihaelamj.com/wp-content/uploads/2010/02/mp3_player_72.png"><img class="alignleft size-full wp-image-94" title="Asterisk GUI Experience" src="http://mihaelamj.com/wp-content/uploads/2010/02/mp3_player_72.png" alt="Asterisk GUI Experience" width="72" height="72" /></a>Many may disagree with me, but all those GUIs are <span style="background-color: #ccffcc;">uuuugly</span>. That may be due to not being from the same code base. I know that many people from the Asterisk community think that to be a non-issue, but just look at Apple. What do you think <strong>sold the first one million  ipods?</strong>. It was the beautiful user experience. Beautiful as in looks and beautiful as in <span style="background-color: #ff99cc;"><span style="color: #000000;">simplicity</span></span>.</p>
<h2>Spying on me</h2>
<p><a href="http://mihaelamj.com/wp-content/uploads/2010/02/legion_72.png"><img class="size-full wp-image-157  alignleft" title="Asterisk GUI Phone Home" src="http://mihaelamj.com/wp-content/uploads/2010/02/legion_72.png" alt="Asterisk GUI Phone Home" width="72" height="72" /></a></p>
<p>It seems that some of GUI implementations have a<span style="background-color: #ff99cc;"> &#8220;phone home&#8221;</span> mechanism.</p>
<p>This is true for TrixBox and FreePBX. You can check out this <a title="Spying on me" href="http://www.trixbox.org/forums/trixbox-forums/open-discussion/trixbox-phones-home">post</a> from TrixBox forums or <a title="SlashDot post on TrixBox Phone Home" href="http://yro.slashdot.org/article.pl?sid=07/12/16/222243">this one</a> from SlashDot. What if you&#8217;re doing a PBX for a government agency. In that case you (the PBX integrator) are committing a felony!</p>
<hr style="border: 1px solid #cccccc; height: 1px; width: 468px; color: #ffffff;" size="1" noshade="noshade" />My way of doing things is adding value to Asterisk transparently. We&#8217;re about to start a beta of our BI reporting solution for Asterisk &#8211; <a title="SAM Reports - BI Reporting for Asterisk" href="http://samreports.com/">SAM Reports</a> on February the 22nd. We&#8217;ll take it from there&#8230;</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://mihaelamj.com/asterisk/adding-asterisk-transparently/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Connecting Asterisk to Skype</title>
		<link>http://mihaelamj.com/asterisk/connecting-asterisk-to-skype/</link>
		<comments>http://mihaelamj.com/asterisk/connecting-asterisk-to-skype/#comments</comments>
		<pubDate>Mon, 11 Feb 2008 12:37:29 +0000</pubDate>
		<dc:creator>mihaelamj</dc:creator>
				<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[skype]]></category>
		<category><![CDATA[Skype2SIP]]></category>
		<category><![CDATA[Uplink]]></category>

		<guid isPermaLink="false">http://mihaelamj.com/asterisk/connecting-asterisk-to-skype/</guid>
		<description><![CDATA[
I&#8217;ve been using Asterisk for years and never really wanted to use Skype, but since many of my friends do,  I decided to have a go. It was quite unthinkable to use Skype separately from Asterisk, I mean I have all of my communication unified through Asterisk box, and now this thing called Skype [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p><a title="Asterisk and Skype" rel="attachment wp-att-22" href="http://mihaelamj.com/asterisk/connecting-asterisk-to-skype/attachment/asterisk-and-skype-2/"><img src="http://mihaelamj.com/wp-content/uploads/2008/02/asterisk2skype.jpg" alt="Asterisk and Skype" /></a></p>
<p>I&#8217;ve been using Asterisk for years and never really wanted to use Skype, but since many of my friends do,  I decided to have a go. It was quite unthinkable to use Skype separately from Asterisk, I mean I have all of my communication unified through Asterisk box, and now this thing called Skype  had to be exempted from the rest.  No way. So I was looking for a way to connect them. Skype uses proprietary protocol for communication, and the company DOES NOT ALLOW reverse engineering. Therefore, there was no &#8220;clean&#8221; way of making a Skype channel for Asterisk, like it was done with Cisco&#8217;s Skinny protocol. Well, how do we connect then?</p>
<p>There are two possible approaches: hardware and software one. Hardware approach would require some &#8220;Skype to phone&#8221; adapter &#8220;thingy&#8221; that connects to Windows PC via USB, and has FXO and FXS, through which it then connects to Asterisk via Sipura 3000, or what have you. I excluded the &#8220;enterprise level multi-channel skype gateways&#8221; because they are too expensive. I mentioned Windows PC because I had one up and running 24/7, as described in the previous post.</p>
<h3>Available software</h3>
<p>I decided upon software approach, since I did have available Windows PC, and didn&#8217;t want additional &#8220;Skype thingy&#8221; and addional Sipura. Here are my choices:</p>
<ul>
<li><a title="ChanSkype" href="http://www.chanskype.com/">ChanSkype</a>, Asterisk channel driver for Skype. It sounds great but has one major flaw: it requires X server and I want my Asterisk box to run clean without any additional burdening services.</li>
<li><a href="http://www.rsdevs.com/psgw.shtml">PSGx</a>, Personal Skype to H.323/SIP gateway. I have been using it for a while, and it turned out to be buggy and unreliable.</li>
<li><a href="http://www.nch.com.au/skypetosip/index.html">Uplink</a> Skype to SIP adapter is what I am using right now.</li>
</ul>
<h3>Windows installation</h3>
<p>You can download Uplink Skype to SIP <a href="http://www.nch.com.au/skypetosip/uplinksetup.exe">here</a>.</p>
<p>When you run the setup program you get a dialog like this:</p>
<p><img src="http://mihaelamj.com/wp-content/uploads/2008/02/uplink_installing_driver.jpg" alt="Uplink driver" /></p>
<p>Then you just let Windows install the unsigned drivers. These audio drivers are the heart of the program. The program sets up these drivers to work as Skype&#8217;s headset, and then translates the sound coming from them into SIP packets:</p>
<p><img src="http://mihaelamj.com/wp-content/uploads/2008/02/skype_audio_settings.jpg" alt="Skype audio settings" /></p>
<p>As shown in the figure  (Skype audio settings), the sound coming from you, through the microphone, is getting into SIP packets via Uplink&#8217;s sound driver, and vice versa for the sound of the speaker. There are similar hacks with the actual  microphone and speakers, that is hardware ones, to find out more check out <a href="http://www.grynx.com/projects/build-your-own-chat-cord/">Grynx</a>&#8217;s blog.</p>
<h4>Uplink settings</h4>
<h5>Account settings:</h5>
<p><img src="http://mihaelamj.com/wp-content/uploads/2008/02/uplink_settings_account.jpg" alt="Uplink account settings" /></p>
<ul>
<li>SIP number and password : your Skype number/nickname and password  that are the same as in sip.conf.</li>
</ul>
<ul>
<li>Server: Asterisk IP address.</li>
</ul>
<h5>Network settings:</h5>
<ul>
<li>Listening local port: default for these settings is not the same as Asterisk&#8217;s default SIP and RTP settings, so pay attention.</li>
<li>Public IP address of your Asterisk box..</li>
<li>External SIP and external RTP also differ from Asterisk&#8217;s default settings.</li>
</ul>
<p><img src="http://mihaelamj.com/wp-content/uploads/2008/02/uplink_settings_network.jpg" alt="Uplink network settings" /></p>
<h3>Asterisk Skype2SIP configuration</h3>
<p>here&#8217;s my configuration:</p>
<h4>sip.conf</h4>
<p><code><strong>[tokenskype]</strong><br />
<strong>type=</strong>friend<br />
<strong>host=</strong>dynamic<br />
<strong>nat=</strong>yes<br />
<strong>username=</strong>tokenskype<br />
<strong>secret=</strong>tokenskype<br />
<strong>canreinvite=</strong>no<br />
<strong>insecure=</strong>very<br />
<strong>dtmfmode=</strong>inband<br />
<strong>disallow=</strong>all<br />
<strong>allow=</strong>alaw<br />
<strong>context=</strong>incoming_skype<br />
<strong>callgroup=</strong>2<br />
<strong>pickupgroup=</strong>2<br />
<strong>canreinvite=</strong>yes<br />
<strong>qualify=</strong>yes</code></p>
<h4>extensions.conf</h4>
<p><code><strong>exten =&gt;</strong> 711,1,SetCallerID(${MY_ID})<br />
<strong> exten =&gt;</strong> 711,n,Dial(SIP/echo123@tokenskype,40,rwW)<br />
<strong> exten =&gt;</strong> 711,n,Hangup()</code></p>
<p>Here you see extension for Skype&#8217;s echo test. Buddies should be added the same way.</p>
<h3>Putting it all to work</h3>
<p>After everything is installed and upon starting Skype2SIP you should see something like this:<br />
<img src="http://mihaelamj.com/wp-content/uploads/2008/02/uplink_registered.jpg" alt="Uplink registered" /></p>
<p>And if you do &#8220;<code>sip show peers</code>&#8221; in Asterisk&#8217;s prompt:</p>
<p><img src="http://mihaelamj.com/wp-content/uploads/2008/02/sipshowpeers.jpg" alt="Skype peer registered" /></p>
<p>Calling test echo extension:</p>
<p><img src="http://mihaelamj.com/wp-content/uploads/2008/02/asterisk_dialing.jpg" alt="Dialing Skype echo123" /></p>
<p>and Uplink&#8217;s screen shows (talking for 52 sec,  then hanging up, from 9:41 to 10:33):</p>
<p><img src="http://mihaelamj.com/wp-content/uploads/2008/02/uplink_talking.jpg" alt="Uplink talking" /></p>
<p>Now just add a few buddies, give them extension numbers, and you&#8217;re set to  talk&#8230;</p>
<p>Just a few final words:</p>
<ul>
<li>I made a context for incoming Skype calls &#8220;incoming_skype&#8221;, as you see in sip.conf excerpt . There  you can customize it to dial a specific phone, softphone, send e-mail or whatever&#8230;</li>
<li>Skype video calls can not be routed through Asterisk, but Asterisk is capable of conducting video calls, which is an entirely new topic&#8230;</li>
</ul>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://mihaelamj.com/asterisk/connecting-asterisk-to-skype/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

