<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>mihaelamj.com</title>
	
	<link>http://mihaelamj.com</link>
	<description>On technology and gadgets</description>
	<pubDate>Tue, 12 May 2009 10:10:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/Mihaelamjcom" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>SAM Contacts: A Powerful Windows Contact Manager Released</title>
		<link>http://feedproxy.google.com/~r/Mihaelamjcom/~3/bj5B4oGMRYw/</link>
		<comments>http://mihaelamj.com/?p=30#comments</comments>
		<pubDate>Tue, 12 May 2009 09:49:35 +0000</pubDate>
		<dc:creator>mihaelamj</dc:creator>
		
		<category><![CDATA[Delphi]]></category>

		<category><![CDATA[MicroISV]]></category>

		<category><![CDATA[SAM Contacts]]></category>

		<category><![CDATA[SAMContacts]]></category>

		<guid isPermaLink="false">http://mihaelamj.com/?p=30</guid>
		<description><![CDATA[First Relese
I have just released my first MicroISV application SAM Contacts.
It’s a simple and easy to use contact manager application with some unique features like tag clouds and Google maps.

]]></description>
			<content:encoded><![CDATA[<h2>First Relese</h2>
<p>I have just released my first <a href="http://en.wikipedia.org/wiki/Micro_ISV">MicroISV</a> application <a href="http://www.samcontacts.com">SAM Contacts</a>.</p>
<p>It’s a simple and easy to use contact manager application with some unique features like tag clouds and Google maps.</p>
<p><a href="http://www.samcontacts.com"><img class="aligncenter size-full wp-image-36" title="SAMContacts Main Screen" src="http://mihaelamj.com/wp-content/uploads/2009/05/app_mary_blue.png" alt="SAMContacts Main Screen" width="455" height="359" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://mihaelamj.com/?feed=rss2&amp;p=30</wfw:commentRss>
		<feedburner:origLink>http://mihaelamj.com/?p=30</feedburner:origLink></item>
		<item>
		<title>Connecting Asterisk to Skype</title>
		<link>http://feedproxy.google.com/~r/Mihaelamjcom/~3/DzFX1moTAzA/</link>
		<comments>http://mihaelamj.com/?p=12#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 [...]]]></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>
]]></content:encoded>
			<wfw:commentRss>http://mihaelamj.com/?feed=rss2&amp;p=12</wfw:commentRss>
		<feedburner:origLink>http://mihaelamj.com/?p=12</feedburner:origLink></item>
		<item>
		<title>Turning your home into a home-theatre</title>
		<link>http://feedproxy.google.com/~r/Mihaelamjcom/~3/4W5F7RLJwME/</link>
		<comments>http://mihaelamj.com/?p=4#comments</comments>
		<pubDate>Tue, 05 Feb 2008 14:52:16 +0000</pubDate>
		<dc:creator>mihaelamj</dc:creator>
		
		<category><![CDATA[home theatre]]></category>

		<category><![CDATA[HDCP]]></category>

		<category><![CDATA[HDMI]]></category>

		<category><![CDATA[HTPC]]></category>

		<category><![CDATA[Media Centre]]></category>

		<category><![CDATA[PVR]]></category>

		<guid isPermaLink="false">http://mihaelamj.com/home-theatre/turning-your-home-into-a-home-theatre/</guid>
		<description><![CDATA[
So you gathered a lot of movies and music on your hard drives and want to &#8220;consume&#8221; them from something more convenient than monitor screen and    desktop speakers, (or God forbid, laptop ones). Your new plasma/LCD  TV and 5.1/7.1 sound system are just waiting for all that digital content to flow [...]]]></description>
			<content:encoded><![CDATA[<p><a title="My very own Home Theatre corner" href="http://mihaelamj.com/wp-content/uploads/2008/02/myhtpc1.jpg"><img src="http://mihaelamj.com/wp-content/uploads/2008/02/myhtpc1.jpg" alt="My very own Home Theatre corner" /></a></p>
<p>So you gathered a lot of movies and music on your hard drives and want to &#8220;consume&#8221; them from something more convenient than monitor screen and    desktop speakers, (or God forbid, laptop ones). Your new plasma/LCD  TV and 5.1/7.1 sound system are just waiting for all that digital content to flow  their way. Burning CDs and DVDs to watch the movies and listen to the music is just such a tedious task. And what about podcasts, YouTube, recording live TV, playing games, or just plain surfing the web on your new screen, wouldn&#8217;t that be nice?</p>
<p>Well there are some consumer electronic devices  that do  some of the mentioned, but I haven&#8217;t heard of a  single device that is capable of all that. So I built one. From a PC, of course.</p>
<h4>What are the main tasks this system is supposed to perform:</h4>
<ul>
<li>Have all music in one place - iTunes</li>
<li>Listen to the music - iTunes</li>
<li>Share music library among computers in the house - iTunes</li>
<li>Watch podcasts on TV - iTunes.</li>
<li>Carry music around - iPod and iTunes</li>
<li>Watch the movies :
<ul>
<li> rent movies</li>
<li>copy them onto HDD - DVD Decrypter</li>
<li>watch whenever I want to - PowerDVD and K-Lite Codec Pack</li>
<li>delete from HDD</li>
</ul>
</li>
<li>Record live TV - Beyond TV</li>
<li>Surf the web - Firefox</li>
<li>Manage photos on TV - card reader and any photo application</li>
<li>Trasfer movies onto iPod - Videora</li>
<li>Play games on TV - this is a PC, so no problem</li>
<li>e-mail - Outlook, Thunderbird&#8230;</li>
<li>watch presentations, touch up a document while lying on the sofa - MS Office, OpenOffice</li>
<li>serve all of the above to other PCs in the house - just get additional UPS and keep the system running</li>
</ul>
<h3>Software infrastructure</h3>
<p><img src="http://mihaelamj.com/wp-content/uploads/2008/02/software.jpg" alt="My very own HTPC main software components" /></p>
<p>I instantly dismissed &#8220;Windows Media Centre&#8221; PC when I realized that:</p>
<blockquote><p>Media centre uses a new file format called DVR-MS. DVR-MS creates an MPEG-2 file that includes metadata about the recorded program to be stored. ((source http://www.microsoft.com/windowsxp/mediacenter/evaluation/faq.mspx))</p></blockquote>
<p>Do we really need another proprietary format?</p>
<p><a title="MythTV" href="http://www.mythtv.org/">MythTV</a> is great but it runs on Linux, and iTunes (my choice of audio library software) doesn&#8217;t, so that is out..</p>
<p>I finally decided upon plain <strong>Windows XP</strong> with some additional <strong>software</strong>, as follows:</p>
<ul>
<li> <a title="iTunes" href="http://www.apple.com/itunes/">iTunes</a> for music and podcasts (I own multiple iPods so that was a quick decision).</li>
<li><a href="http://www.cyberlink.com/">PowerDVD</a> (with additional codecs for DivX and such)  for watching movies.</li>
<li><a href="http://www.snapstream.com/products/beyondtv/">Beyond TV</a> for recording live TV. This was necessary because the software that came with Hauppage TV card was buggy and used up too many resources. Beyond TV is great, runs in background, and has sleek interface with good &#8220;from a couch&#8221; visibility.</li>
<li><a href="http://www.dvddecrypter.org.uk/">Dvd Decrypter</a> for transferring DVD movies to hard drive to watch at my convenience.</li>
<li><a href="http://www.videora.com/">Videora</a> for converting movies to iPod H.264 format. It has a nice feature that anything copied to a designated folder gets converted to ipod format and inserted into iTunes library automatically.</li>
<li><a href="http://www.codecguide.com/download_kl.htm">K-Lite Codec Pack</a>, a set of filters needed for encoding and decoding (playing) audio and video formats.</li>
</ul>
<h3>Hardware infrastructure</h3>
<p>We need three basic parts : audio, video and TV.</p>
<p><img src="http://mihaelamj.com/wp-content/uploads/2008/02/all.jpg" alt="My very own HTPC hardware components" /></p>
<h4>Video part</h4>
<p>Unless playing games is your top priority, video card does not have to be a top-notch. I have <a href="http://www.nvidia.com/object/geforce_8600.html">GeForce 8600</a>, NVIDIA&#8217;s mid-range card, enough for home theater requirements and occasional CivIV session. Since my LCD TV (Sony KLV-S40) has only VGA input, I needed DVI to VGA adapter, as shown in the figure above.</p>
<p>TV also has a HDMI ((High-Definition Multimedia Interface transmits uncompressed video and audio streams to designated interface)) .  This one, unfortunately, as it is the case with almost all new HDMI interfaces,  comes coupled with HDCP technology:</p>
<blockquote><p>High-bandwidth Digital Content Protection (HDCP) is a form of digital copy protection developed by Intel Corporation to protect digital audio and video content as it travels across DisplayPort, Digital Visual Interface (DVI), High-Definition Multimedia Interface (HDMI), Gigabit Video Interface (GVIF), or Unified Display Interface (UDI) connections. The specification is proprietary, and implementing HDCP requires a license.<br />
Pre-2005 HDMI and DVI formats already displayed HD resolutions that HDCP provides but without any digital protection. As HDCP is being introduced as mainstream, plasma, LCD TVs, monitors and projectors with HDMI and DVI displays (all models pre 2005) will not be able to display HDCP material. ((source: http://en.wikipedia.org/wiki/HDCP))</p></blockquote>
<p>Digital content protection in your own home, as integral part of devices you paid good money for, that seems like &#8220;Big Brother&#8221; to me, and I will try to avoid buying any more such devices. I just don&#8217;t like paying for something I didn&#8217;t want in the first place&#8230;</p>
<h4>Audio part</h4>
<p>For audio card I choose <a href="http://www.m-audio.com/products/en_us/Revolution51-main.html">M-Audio Revolution 5.1</a>. It provides channel-accurate surround reproduction and high-definition audio up to 192kHz at 24-bit resolution. I use card&#8217;s digital output making it work in Direct mode, where no other settings may be adjusted.<br />
<img src="http://mihaelamj.com/wp-content/uploads/2008/02/maudio.jpg" alt="M-Audio digital output" /></p>
<p>That&#8217;s not a problem, since the card is then connected, via S/PDIF, to Panasonic SAXR30 digital receiver, which does all the sound processing for it, whether it be DTS, Dolby Digital, Dolbly PrologicII, or whatever.</p>
<p><img src="http://mihaelamj.com/wp-content/uploads/2008/02/myhtpc_audio.jpg" alt="My Home Theatre audio part" /><br />
So setting different sound profiles or adjusting volume is done via receiver.</p>
<h4>TV part</h4>
<p>I receive only analogue TV so this part was easy: <a href="http://www.hauppauge.com/pages/products/data_pvr350.html">Hauppage WinTV-PVR-350</a> TV recording card with built-in both hardware MPEG decoder and encoder for watching and recording TV, respectively.</p>
<h4>Connectivity</h4>
<p>I have wired and wireless Ethernet all through the house, so plugging this Home Theatre PC to the switch made all the content available.</p>
<h4>Peripherals</h4>
<p>Ergonomics and ease of use is what drove this &#8220;project&#8221;. If my husband and kids had to choose between eighteen remote controls, and their respective dialects, to achieve a simple task&#8230;well&#8230;enough said. I wanted ONE device to rule them all, and ended up with three:</p>
<p><img src="http://mihaelamj.com/wp-content/uploads/2008/02/peripherals.jpg" alt="Home Theatre peripherals" /></p>
<p><a href="http://www.logitech.com/index.cfm/remotes/universal_remotes/devices/374&amp;cl=gb,en">Logitech Harmony 895</a>,  advanced remote control that incorporates both IR (infra red) and RF (radio frequency) to take full control of all devices, even when they are out of sight. It replaced all of my remote controls by either learning their IR codes or downloading specifications from the internet. Nice thing is that it can combine several operations to accomplish a single action, like when I press the action &#8220;Watch movie&#8221; it changes TV&#8217;s source from TV to PC, sets receiver&#8217;s source to PC and changes settings to Dolby II surround , all with one click.</p>
<p><a href="http://www.logitech.com/index.cfm/keyboards/keyboard/devices/192&amp;cl=us,en">Logitech diNovo Edge</a> bluetooth rechargeable keyboard with integrated laptop-like mouse pad. Comes in handy for surfing the net or searching through music library.</p>
<p><a href="http://www.logitech.com/index.cfm/mice_pointers/mice/devices/130&amp;cl=us,en">Logitech MX Revolution</a> Cordless Laser Mouse is the most used amongst them, to be exact 80% of  the time .</p>
<p>Thus, is my task accomplished? I think so. I have a device that serves and plays digital content,  records live TV, does  podcasts, is a gaming console and does everything else that a full blown PC does, unlike all those crippled  proprietary Media Center devices.</p>
<p>I rest my case.</p>
]]></content:encoded>
			<wfw:commentRss>http://mihaelamj.com/?feed=rss2&amp;p=4</wfw:commentRss>
		<feedburner:origLink>http://mihaelamj.com/?p=4</feedburner:origLink></item>
	</channel>
</rss>
