tag:blogger.com,1999:blog-75400102234649534382009-06-11T08:03:50.640-05:00Konstantin Läufer's BlogKonstantin Läufer's blog on stuff, possibly including technology, music, travel, sports, and other areas of interest to meKonstantinhttp://www.blogger.com/profile/07858403962357318797noreply@blogger.comBlogger17125tag:blogger.com,1999:blog-7540010223464953438.post-49614099825448883072009-01-26T14:50:00.012-06:002009-04-28T23:53:03.873-05:00Whole Foods: Mixed ExperienceI vaguely recall having been to Whole Foods once many years ago. Today I went back only to stock up on organic quinua for a decent $3/lbs in bulk, better than Trader Joe's $4 for a box with less than one lbs, if it's even in stock.<div><br /></div><div>But I also noticed various items that were significantly (up to 50%) more than the exact same items at TJ.<br /><ul><li>Driscoll organic raspberries, WF $5.99, TJ $3.99</li><li>Laughing Cow Babybel cheese, WF $4.99, TJ $3.29<br /></li></ul>WTF? I'm not planning to go back until I run out of quinua...</div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7540010223464953438-4961409982544888307?l=laufer.cs.luc.edu'/></div>Konstantinhttp://www.blogger.com/profile/07858403962357318797noreply@blogger.com0tag:blogger.com,1999:blog-7540010223464953438.post-13847896790045146772009-01-16T18:46:00.011-06:002009-04-07T12:24:30.415-05:00Excellent Linksys/Sipura SPA-3102 Experience<div style="float: right; margin-left: 10px; margin-bottom: 10px;"><a href="http://www.flickr.com/photos/klaufer/3167781610/" title="photo sharing"><img src="http://farm2.static.flickr.com/1174/3167781610_4a65689721_m.jpg" alt="" style="border: 2px solid rgb(0, 0, 0);" /></a><br /><span style="margin-top: 0px;font-size:0;" ><a href="http://www.flickr.com/photos/klaufer/3167781610/">Networking Corner</a><br />Originally uploaded by <a href="http://www.flickr.com/people/klaufer/">laufer</a></span></div>As a result of my migration from a noisy, overheating mid-tower server to a near-silent Mac mini Core Duo with a DAT Optic 4-bay FireWire enclosure, I could no longer use the <a href="http://www.voip-info.org/tiki-index.php?page=X100P+clone">Digium X100P clone</a> FXO internal PCI card. Therefore, I needed an external device with an FXO port to which to connect the incoming phone line from the building lobby (please see <a href="http://laufer.cs.luc.edu/2008/09/dude-youre-getting-voip-moving-past.html">this earlier article</a> for more context).<br /><br />I was also hoping to replace or at least complement the <a href="http://www.digium.com/en/products/analog/s101i.php">Digium S101i IAXy</a> analog telephone adapter (ATA), which is not reliable enough for everyday residential use because it frequently goes into an inconsistent state and gives a busy signal instead of a dial tone.<br /><br />Fortunately, the <a href="http://www.cisco.com/en/US/products/ps10027/">Linksys/Sipura SPA-3102</a> is exactly what I needed. It is a SIP-based ATA with both an FXS port, which provides a dial tone to my existing apartment phones, and an FXO port, which receives calls from the building lobby. Surprisingly, at about $75, it is cheaper than the IAXy. As long as you don't need support for the IAX protocol, you're probably much better off with this rock-solid device. It also has a web interface and supports numerous features that I am actually using, such as distinctive ring.<br /><br />I connected mine to my existing Asterisk server following some of <a href="http://delicious.com/klaufer/asterisk+hardware">these instructions</a> and the device's manual. I configured the following dial plan for the PSTN line to transfer incoming calls immediately to the given extension:<br /><br /><span style="font-family:courier new;">S0<:sipura-fxo-incoming></span><br /><br />In Asterisk, I can then receive calls on this extension like so,<br /><br /><span style="font-family:courier new;">[sipura-fxo]</span><br /><span style="font-family:courier new;"> exten => sipura-fxo-incoming,1,Goto(intercom,s,1)</span><br /><br />using the context I specified in the ATA's SIP registration shown here. (The authentication settings in the ATA configuration has to be consistent with Asterisk's SIP configuration.)<br /><br /><span style="font-family:courier new;">[sipura-fxo]</span><br /><span style="font-family:courier new;"> context=sipura-fxo</span><br /><span style="font-family:courier new;"> type=friend</span><br /><span style="font-family:courier new;"> host=dynamic</span><br /><span style="font-family:courier new;"> username=sipura-fxo</span><br /><span style="font-family:courier new;"> secret=******</span><br /><span style="font-family:courier new;">disallow=all</span><br /><span style="font-family:courier new;"> allow=ulaw</span><br /><span style="font-family:courier new;"> canreinvite=no</span><br /><span style="font-family:courier new;"> qualify=yes</span><br /><span style="font-family:courier new;"> insecure=port,invite</span><br /><span style="font-family:courier new;"> nat=no</span><br /><br /><span style="font-family:courier new;">[sipura-fxs]</span><br /><span style="font-family:courier new;"> context=sipura-fxs</span><br /><span style="font-family:courier new;"> type=friend</span><br /><span style="font-family:courier new;"> host=dynamic</span><br /><span style="font-family:courier new;"> username=sipura-fxs</span><br /><span style="font-family:courier new;"> secret=******</span><br /><span style="font-family:courier new;"> </span><span style="font-family:courier new;">disallow=all</span><br /><span style="font-family:courier new;"> allow=ulaw</span><br /><span style="font-family:courier new;"> canreinvite=no</span><br /><span style="font-family:courier new;"> qualify=yes</span><br /><span style="font-family:courier new;"> insecure=port,invite</span><br /><span style="font-family:courier new;"> nat=no</span><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7540010223464953438-1384789679004514677?l=laufer.cs.luc.edu'/></div>Konstantinhttp://www.blogger.com/profile/07858403962357318797noreply@blogger.com0tag:blogger.com,1999:blog-7540010223464953438.post-59133835038588934802008-12-10T22:33:00.008-06:002008-12-12T15:03:57.114-06:00Solved: weird problem with special characters in filenamesAfter moving my iTunes library to directory mounted via CIFS, iTunes could no longer find a good number of songs. All of the problematic songs had special characters such as accents in their filenames.<br /><br />After trying a few different things over the course of several weeks, I finally noticed that the problematic names had the plain characters followed by so-called combining accents.<br /><br />For example, instead of instead of a <a href="http://www.fileformat.info/info/unicode/char/00d1/">simple Ñ</a> they had an N followed by a <a href="http://www.fileformat.info/info/unicode/char/0303/"><span style="text-decoration: underline;">combining tilde</span></a>. CIFS clients, including OS X Finder and smbclient could not handle these combined versions, and the files were inaccessible.<br /><br />Fortunately, the <a href="http://freshmeat.net/projects/convmv/">convmv</a> utility can fix this problem in bulk for a whole directory tree:<br /><br />convmv -r -f utf8 -t utf8 --nfc .<br /><br />It appears that the key was to convert the filenames into <a href="http://unicode.org/reports/tr15/">NFC Unicode normalization form</a> (--nfc argument). It does not seem to work with NFD.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7540010223464953438-5913383503858893480?l=laufer.cs.luc.edu'/></div>Konstantinhttp://www.blogger.com/profile/07858403962357318797noreply@blogger.com0tag:blogger.com,1999:blog-7540010223464953438.post-6613497013268990112008-10-23T19:42:00.006-05:002009-02-26T10:48:01.526-06:00Hauppauge Win-TV-HVR-950Q Works With Ubuntu Hardy on Mac Mini G4I have had a very robust MythTV setup since spring 2005 using a Hauppauge <a href="http://www.hauppauge.com/pages/products/data_pvr150mce.html">WinTV-PVR-150 Media Center edition</a>. Given the impending conversion to ATSC digital TV in February 2009, I ordered a Hauppauge <a href="http://www.hauppauge.com/site/products/data_hvr950q.html">WinTV-HVR-950Q</a> external USB digital TV capture device.<br /><br />Meanwhile, to reduce noise, heat, and power consumption, I am also switching from an i386-based workstation/server to an almost silent Mac Mini PowerPC G4 1.25 GHz running Ubuntu Hardy server with the lightweight <a href="http://www.xubuntu.org/">Xubuntu</a> desktop.<br /><br />Today, I received the 950Q and was able to install it on the Mini without any trouble following Scott Bronson's <a href="http://lunapark6.com/usb-hdtv-tuner-stick-for-windows-linux-hauppauge-wintv-hvr-950.html">detailed instructions</a> to the letter. Thanks, Scott, for providing these wonderful, accurate instructions!<br /><br />The Mini is too slow to play live video without mplayer's -framedrop option, but it is mostly a server anyway. The next step is to configure MythTV to record from the 950Q. More soon...<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7540010223464953438-661349701326899011?l=laufer.cs.luc.edu'/></div>Konstantinhttp://www.blogger.com/profile/07858403962357318797noreply@blogger.com7tag:blogger.com,1999:blog-7540010223464953438.post-59590754832026573202008-10-11T19:19:00.011-05:002008-10-11T20:13:38.643-05:00Simplified Gizmo5 Backdoor Dialing Asterisk Gateway Interface ScriptUsing <a href="http://gizmo5.com/pc/backdoor/">Gizmo5 backdoor dialing</a>, one can make free VoIP calls to a growing double-digit percentage of domestic US phones. <a href="http://nerdvittles.com/index.php?p=226">This article</a> shows how to integrate this mechanism into <a href="http://www.freepbx.org/">FreePBX</a>.<br /><br />In an earlier article, I described a DYI VoIP setup that uses plain Asterisk for routing calls among various VoIP providers, analog phone adapters (ATAs), and the building door phone. Since I wrote that article, I have moved this Asterisk installation to a <a href="http://www.nslu2-linux.org/">Linksys NSLU2 ("slug")</a> and want to keep it as minimal as possible.<br /><br />Starting with an updated version of the Monetra callerID lookup script, which performs some very basic screen scraping to look up callerID information from several web sites, I wrote a similar script that checks whether a given phone number can be called for free using Gizmo5 backdoor dialing and caches the result. Gizmo5 has a very simple web service for this purpose that powers its lookup form.<br /><br />The script can be used in extensions.conf as follows, assuming your Gizmo5 account is set up correctly in sip.conf.<br /><pre>[macro-gizmo5backdoor]<br />exten => s,1,AGI(gizmo5backdoor_shell.agi|${MACRO_EXTEN})<br />exten => s,n,GotoIf($[ "${foundroute}" = "yes" ]?backdoor:pstn)<br />exten => s,n(backdoor),Goto(backdoor,010${MACRO_EXTEN},1)<br />exten => s,n(pstn),Dial(SIP/other-provider/${MACRO_EXTEN})<br /><br />[domestic]<br />exten => _1NXXNXXXXXX,1,Macro(gizmo5backdoor,${EXTEN})<br /><br />[backdoor]<br />exten => _0101NXXNXXXXXX,1,Dial(SIP/gizmo5/${EXTEN})<br /></pre>Both scripts are available from the <a href="http://code.google.com/p/asterizmo">Asterizmo project site</a>.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7540010223464953438-5959075483202657320?l=laufer.cs.luc.edu'/></div>Konstantinhttp://www.blogger.com/profile/07858403962357318797noreply@blogger.com0tag:blogger.com,1999:blog-7540010223464953438.post-75778828795509536262008-09-25T03:05:00.028-05:002008-10-11T02:17:56.270-05:00Exporting Contacts from Plaxo to Nokia 6100Instead of using up my equipment credit from T-Mobile for signing a new contract, I am using a Nokia 6100 my friend from Germany had given to me. This is a nice and small mid-range phone.<br /><br />The challenge was to prepopulate the new phone with a selection and projection of my contacts stored on Plaxo. I was not even looking for bidirectional synchronization because I don't mind making incremental changes on both Plaxo and the phone, as long as I have the ability to back up the phone data reliably.<br /><br />Based on information available on the Nokia support site, I ordered an original Nokia CA-42 true USB cable (among other accessories) for US$22 instead of a cheap DKU-5 clone that merely <a href="http://www.howardforums.com/showthread.php?threadid=617520">emulates a serial connection over USB</a>.<br /><br />The situation:<br /><ul><li>This phone is not supported by Apple iSync.</li><li>It is supported by the Nokia PC Suite. Because I don't run Windows natively on any machine (not a safe practice in my opinion), I installed the Nokia PC Suite on a VirtualBox VM running Windows XP. On a Mac host, I couldn't connect because the Mac grabs the USB device so Windows thinks its already in use. On a Linux host (I use Ubuntu Hardy 8.04), I could connect the phone just fine, but the phone book component of the suite kept crashing miserably and repeatedly and I decided to abandon this route.</li><li>It is also supported by a shareware program for the Mac called <a href="http://www.lucanasoft.com/en/megacell/megacell.html">MegaCellX</a>. Although this is a nice program that supports a number of phone models and integrates with Address Book, on certain Nokia phones it does not support multi-number contacts, so you get multiple entries on the phone for people with more than one number.<br /></li></ul>I eventually got the job done this morning around 3 as follows:<br /><ol><li>Plaxo itself does not support selective export, but Address Book does (synchronized via <a href="http://www.plaxo.com/downloads/mac">Plaxo for Mac</a>, and Plaxo's user-defined categories show up very nicely as groups in Address Book. I exported a selection of about 150 contacts in the (text-based) vCard 2.1 format.</li><li>Using a combination of grep and Emacs, I manually fixed the following kinks that cause problems with the next step:</li><ul><li>illegal characters in phone numbers (anything other than digits, *, +, or p) (everything up to this point does get imported, but you need to switch to SIM contacts and back to memory contacts to refresh the view)<br /></li><li>use of FN: instead of the expected N:</li><li>strings in non-quoted-printable UTF-8 (I cannot believe this is <span style="font-style: italic;">still</span> broken in Address Book) show up as empty fields but don't disrupt the import<br /></li><li>unnecessary fields (this is the projection part)</li></ul><li>Using <a href="http://wammu.eu/">Wammu</a> on my Linux box, I transfered these contacts to my phone! I had to cycle a few times between the preceding step and this one until all contacts got imported cleanly. I still had to do some editing in Wammu to add special characters in names etc.<br /></li><li>For some multi-number contacts, I changed the default number on the phone.</li></ol><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7540010223464953438-7577882879550953626?l=laufer.cs.luc.edu'/></div>Konstantinhttp://www.blogger.com/profile/07858403962357318797noreply@blogger.com0tag:blogger.com,1999:blog-7540010223464953438.post-30989876259823568022008-09-25T02:00:00.010-05:002008-09-25T18:21:32.919-05:00Finally Switching from Verizon Wireless to T-MobileI finally threw off the shackles of Verizon Wireless last Wednesday. I chose T-Mobile instead for the following reasons:<br /><ul><li>I sometimes travel internationally and am much better off with a pure <a href="http://www.gsmworld.com/roaming/gsminfo/">GSM</a> provider.</li><li>Verizon is very slow to establish agreements with <a href="http://www.cdg.org/worldwide/">countries that do have CDMA networks</a>.<br /></li><li>There are countries where dual-mode phones from Verizon will not work at all. This is generally the case for GSM countries with American frequencies (850/1900 MHz) such as Bolivia and Paraguay.<br /></li><li>T-Mobile doesn't lock down its devices the way Verizon does. I can install my own apps much more easily.</li></ul>It also turns out that myFaves is a real winner. If you have a provider with a non-800 access number, you get close to unlimited outbound calling.<br /><br />See also:<br /><ul><li><a href="http://www.howardforums.com/forumdisplay.php?f=52">HowardForums T-Mobile forum</a><br /></li><li><a href="http://wiki.howardforums.com/index.php/T-Mobile">HowardForums T-Mobile wiki</a></li><li><a href="http://www.intomobile.com/2007/05/09/get-free-incoming-calls-on-t-mobile.html">Free incoming calls on T-Mobile</a><br /></li></ul><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7540010223464953438-3098987625982356802?l=laufer.cs.luc.edu'/></div>Konstantinhttp://www.blogger.com/profile/07858403962357318797noreply@blogger.com0tag:blogger.com,1999:blog-7540010223464953438.post-9417151438479323552008-09-12T12:21:00.087-05:002009-05-06T16:46:38.674-05:00Dude, You're Getting VoIP: Moving Past POTS<h2 id="a8rw">AKA a case against gardening</h2><br />My colleague <a href="http://gkt.etl.luc.edu/">George</a> and I had been toying for a long time with the idea of getting rid of POTS ("plain old telephone service", more properly called PSTN for <span style="font-style: italic;">public switched telephone network</span><span style="font-style: italic;">)</span> at home and were considering different alternatives. An obvious one is to get lots of minutes or unlimited calling on your cell phone—now on option on the major carriers. But that might not be the most effective approach because the network gets overloaded, the call quality is inconsistent, and international rates are sky-high (unless you are using a suitable calling card). Your brain might also get fried if you are not using a headset. But after several months in a row of local phone bills in the high double digits, we knew we had to do something soon.<br /><br />Because we were already paying for a broadband connection (cable modem, in both cases, though ADSL will work fine), we have a big communication pipe coming into our homes. That pipe should be able to handle occasional voice traffic in addition to other uses of the internet, shouldn't it? This is where VoIP <span style="font-style: italic;">(voice over internet protocol)</span> comes into the picture (see voip-info.org, an excellent resource on all aspects of this topic). Most people are already familiar with <a href="http://www.skype.com/">Skype</a>, primarily a software client for free voice and video calls from computer to computer using a proprietary protocol but requiring only minimal, if any, configuration. There is also <a href="http://gizmo5.com/">Gizmo5</a>, which now supports video on its Windows and Mac versions and is compatible with the SIP <span style="font-style: italic;">(session initiation protocol)</span> standard. These and other providers also have (non-free, usually prepaid) ways to make or receive calls to and from the PSTN, e.g., SkypeOut and SkypeIn. There are various open-source or free proprietary SIP soft phones available for different operating systems, including <a href="http://www.twinklephone.com/">Twinkle</a> for Linux and <a href="http://xmeeting.sourceforge.net/">XMeeting</a> for Mac OS.<br /><br />But both of us were looking for something more: a seamless drop-in replacement for the conventional home phone service that particularly our spouses enjoys so much. Specifically, we wanted the existing phones to ring when a call came in while no one was using the computer, and we wanted to be able to make outgoing calls from the existing phones. An ATA <span style="font-style: italic;">(analog telephone adapter)</span> bridges this gap: these devices typically have an LAN connection as well as a phone jack where you can plug in a phone and get a dial tone. And now we've reached a junction where we could choose between the easy and the hard way to continue.<br /><br /><h2>The easy way</h2><br />George choose the easy way: He signed up with <a href="http://www.phonepower.com/">PhonePower.com</a>, a consumer-oriented VoIP provider (reviews are available at, e.g., <a href="http://www.voipreview.org/">voipreview.org</a>), received a preconfigured ATA, connected power, Ethernet, and a cordless phone, and was ready to go. Once his spouse approved, he instructed the VoIP provider to port his existing number and canceled his land line. Many providers have flat nationwide packages for US$20 per month or less, and you can use your ATA in other locations around the world as long as you have an internet connection. Some providers even have regular E911 service, where the emergency call taker automatically sees your address and handles the call accordingly. In case of a power failure, however, your internet connection would be down and you might not be able to make that call. In that case, your best bet would be your cell phone, given the slim likelihood of both networks failing independently at the same time.<br /><br /><h2>The kewl way</h2><br />Needless to say, I choose the hard but kewl way and in return wanted free service (no recurring monthly charge) and the opportunity to reuse as much existing hardware as possible. As an aside, when I mentioned to my friend Hans-Jürgen a few years ago that I was planning to play with a software-based phone system at home, he said I had too much time on my hands. But now I realized that we simply have different hobbies. I enjoy these activities much more than, say, gardening.<br /><br /><h2>Receiving calls</h2><br />The first step was to set up DID <span style="font-style: italic;">(direct inward dialing)</span> so others could reach me from the PSTN. Most providers have a single-digit monthly charge for DID, but Matt Butcher, a technologically savvy philosophy graduate student, told me about a service called <a href="http://www.grandcentral.com/">GrandCentral</a>. Whether or not you are using VoIP, GrandCentral is useful as a <span style="font-style: italic;">single-number service</span> (SNS): a caller dials a single number, zero or more phones—home, work, cell, according to your configuration settings—ring at once, and you can pick up the call on any one of them. You can also send calls to voice mail, listen in while someone is leaving you a message, switch to another phone during the call, etc. You can even customize by caller which of your phones ring. The catch is that GrandCentral used to have an invite-only private beta program that has since been discontinued, but they haven't yet announced when they will open to the general public. Since GrandCentral was recently acquired by Google, I am hopeful that it won't go away, but for now, you will probably have to pay for DID if you want a local number; in return, you can probably port your existing number. So what makes GrandCentral work as DID for VoIP? The ability to forward calls not only to PSTN numbers but also to Gizmo5 numbers! I was already able to make and receive SIP calls through my existing Gizmo5 account, but now others can call my GrandCentral number from an ordinary phone, and it rings on my Gizmo5 soft phone. So that part is solved!<br /><br /><h2>Making calls</h2><br />Like SkypeOut, Gizmo5 also supports outbound calling into the PSTN as a prepaid service with no recurring charges and reasonable international rates. As an optimization, I am using <a href="http://www.future-nine.com/">Future Nine</a>, a reliable VoIP provider with very competitive rates for outbound calling. Another advantage of Future Nine is that you can set the caller ID for outgoing calls to your GrandCentral number for free. You can even have multiple SIP accounts as part of a single VoIP account with separate caller IDs for outgoing calls; this capability is useful to me because my wife and I have different GrandCentral numbers. In addition, your Future Nine account works like a calling card. As a further optimization, I set up free toll-free and <a href="http://gizmo5.com/pc/backdoor/">free VoIP backdoor calling</a> through Gizmo5. Since you can't call back a Gizmo SIP number from outside, I also decided to pay Gizmo5 US$4 per year for letting me set the caller ID on that account to my GrandCentral number as well.<br /><br /><h2>Connecting existing analog phones</h2><br />The next big step was to bring the analog phones back on board, since SIP phones are rather expensive. A while ago, I had bought a <a href="http://www.digium.com/en/products/analog/s101i.php">Digium S101I IAXy</a> ATA but never used it. If I had DID from Future Nine or another provider that supports the IAX protocol <span style="font-style: italic;">(Inter-Asterisk eXchange)</span>, I could provision the IAXy to connect directly with my Future Nine account. That would be just like George's easy approach described above. (<a href="http://www.linksys.com/servlet/Satellite?c=L_Product_C1&amp;childpagename=US%2FLayout&amp;cid=1118334687006&amp;pagename=Linksys%2FCommon%2FVisitorWrapper&amp;lid=8700608483L06">Linksys</a>, formerly known as Sipura, <a href="http://www.grandstream.com/ata.html">Grandstream</a>, and several others make high-quality SIP-compatible ATAs.) But my situation is more complicated because it involves different accounts for incoming and outgoing calls and Gizmo5 speaks SIP but not IAX. Rescue comes in the form of a <span style="font-style: italic;">software telephony engine</span> such as Asterisk (<a href="http://www.asterisk.org/">asterisk.org</a>, excellent tips and tricks at <a href="http://www.nerdvittles.com/">nerdvittles.com</a>), an open-source system from Digium. Asterisk (and similar systems such as <a href="http://yate.null.ro/">Yate</a> or <a href="http://www.freeswitch.org/">FreeSWITCH</a>) are full-featured software equivalents of PBX systems handling voice mail, music on hold, etc. But since GrandCentral provides all the features already, we need only a minimal Asterisk installation that handles registration and call routing among the different pieces:<br /><ul id="ya5m1"><li id="ya5m2">SIP registration with one or more Gizmo5 accounts for incoming calls from GrandCentral and free outgoing calls to other Gizmo5 users, toll-free numbers, and VoIP backdoor numbers.<pre>[general]<br />context=incoming<br />dtmfmode=rfc2833 ; required to answer incoming GrandCentral calls<br />srvlookup=yes<br />register => 1747NXXNXXX:password@proxy01.sipphone.com/1747NXXNXXX<br /><br />[gizmo]<br />type=peer<br />disallow=all<br />allow=ulaw<br />allow=ilbc<br />host=proxy01.sipphone.com<br />fromdomain=proxy01.sipphone.com<br />insecure=very<br />fromuser=1747NXXNXXX<br />authuser=1747NXXNXXX<br />username=1747NXXNXXX<br />secret=password<br />canreinvite=no<br />context=incoming<br /></pre></li><li id="z53m">SIP credentials for using Future Nine for other outgoing calls.<pre>[future-nine]<br />context=default<br />type=peer<br />host=sip.future-nine.com<br />username=username<br />secret=password<br />qualify=no<br />insecure=invite<br />canreinvite=no<br /></pre></li><li id="ytrf">IAX configuration for the IAXy ATA.<pre>[myiaxy]<br />context=default<br />type=friend<br />accountcode=myiaxy<br />host=dynamic<br />secret=password<br />disallow=all<br />allow=ulaw<br />allow=adpcm<br />callerid="My Name" x1111<br />trunk=no<br /></pre></li><li id="k115">SIP configuration for any softphones for in-house calling (optional).<pre>[1117]<br />context=default<br />type=friend<br />username=1117<br />callerid="My Name" x1117<br />host=dynamic<br />canreinvite=no<br /></pre></li><li id="srbu">Dial plan rules for making the IAXy (and registered softphones) ring on incoming calls.<pre>[incoming]<br />exten => 1747NXXNXXX,n,Dial(SIP/1117&amp;IAX2/192.168.1.50@myiaxy/s)<br /></pre></li><li id="swhy">Dial plan rules for mapping dialed numbers to the right provider for outgoing calls.<pre>[gizmo]<br />exten => _1747XXXXXXX,1,Dial(SIP/${EXTEN}@gizmo)<br />exten => _0101NXXNXXXXXX,1,Dial(SIP/${EXTEN}@gizmo)<br /><br />[local]<br />exten => _NXXXXXX,1,Dial(SIP/1773${EXTEN}@$gizmo)<br /><br />[tollfree]<br />exten => _1800XXXXXXX,1,Dial(SIP/${EXTEN}@gizmo)<br />...<br /><br />[domestic]<br />exten => _1NXXNXXXXXX,1,Dial(SIP/${EXTEN}@$futurenine)<br /><br />[international]<br />exten => _011X.,1,Dial(SIP/${EXTEN:3}@futurenine)<br /><br />[intercom]<br />exten => s,1,Set(CALLERID(all)=Lobby Phone <773nxxnxxx>)<br />exten => s,n,Dial(SIP/1117&amp;IAX2/192.168.1.50@myiaxy/s)<br /><br />[default]<br />include => internal<br />include => gizmo<br />include => local<br />include => tollfree<br />include => domestic<br />include => international<br /></pre></li></ul>The image below shows how all these pieces fit together. The arrows point in the direction of the call, i.e., from the calling to the called party; the hollow tip of the arrow from the PSTN into my other phones indicates that bypassing GrandCentral is the exception rather than the rule.<br /><div id="xgnp" style="padding: 1em 0pt; text-align: center;"><div id="pq8n" style="padding: 1em 0pt; text-align: left;"><div id="dpqd" style="padding: 1em 0pt; text-align: center;"><img id="j6u9" style="width: 564px; height: 335px;" src="http://docs.google.com/File?id=ddnb7s6g_60cr6mhpdw_b" /></div></div></div>Instead of plugging a particular phone into the IAXy, I simply left the existing phones plugged into the original jacks and plugged the IAXy into another free jack. In this way, the IAXy provides a phone signal to the entire apartment (it can handle the load of a few modern phones). I had already disconnected the incoming PSTN line from the apartment wiring so that it would not interfere with the ATA during the brief transitional period.<br /><br /><h2>Reconnecting the door phone</h2><br />I generally like to keep working hardware as long as there is a use for it, so I was wondering what to do about the <a href="http://www.voip-info.org/tiki-index.php?page=X100P+clone">Digium X100P clone</a> FXO card I had put into my home server a few years back. This is basically a controllerless (soft) modem card that allows the computer to make and receive phone calls. I remembered an innocuous comment a crafty neighbor of mine, Louis Hubbard, had made during an earlier discussion of the switch to VoIP. He said that the <a href="http://forum.voxilla.com/linksys-sipura-voip-support-forum/spa3k-doesnt-detect-my-buildings-lobby-phone-17004.html#post87446">lobby phone</a> for the doorperson to announce visitors (I live in a highrise) should still work even without PSTN service as long as I simply hook up a phone to the PSTN line coming in from outside. And he was right! So I rewired the apartment a bit and managed to connect the outside line to the X100P and configured Asterisk to receive incoming calls from the card, complete with caller ID and all. That was the dot on the i, so to speak, because other residents who switched only from an ILEC (incumbent local exchange carrier, such as the local phone company) to a CLEC (competitive local exchange carrier, such as the cable company) lost that capability, to the annoyance of building staff. You can probably use a similar setup for other types of door phones or get a (more expensive) SIP door phone.<br /><br /><h2>So how hard was it?</h2><br />It was straightforward to get most pieces to work on <a href="http://www.ubuntu.com/">Ubuntu</a> Edgy or Hardy (yes, I made that upgrade in the process, too, but had to resolve some other lingering complications before I could go on) and configure them according to the instructions. The Zaptel driver for the X100P card included with Ubuntu, however, is buggy, and I had to perform a manual install of Digium's latest version of that driver <span style="font-style: italic;">(svn checkout http://svn.digium.com/svn/zaptel/branches/1.4 zaptel)</span> to get everything to work including proper initialization at boot time.<br /><br />In conclusion, yes, it was a bit hard, but it sure was great fun. Both George and I ended up saving big bucks amounting to 75% or more compared to our previous plans. We use our regular phones more than cell phones, especially for long calls. Call quality is better—even with VoIP—, not to mention fewer dropped packets and delays of one form or another. I would gladly do it again! Definitely beats gardening by the widest of margins.<br /><br /><h3>Acknowledgments</h3><br />Thanks to <a href="http://www.burnpc.com/">Ron Senykoff</a> for his valuable advice on this project.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7540010223464953438-941715143847932355?l=laufer.cs.luc.edu'/></div>Konstantinhttp://www.blogger.com/profile/07858403962357318797noreply@blogger.com2tag:blogger.com,1999:blog-7540010223464953438.post-87404176030617571872008-08-24T22:22:00.005-05:002008-08-24T22:35:43.145-05:00Converting MPEG-4 (h.264) Videos for Viewing with mvpmc<a href="http://www.mvpmc.org/">mvpmc</a> is a media player running on the Hauppauge MediaMVP. Besides serving as a <a href="http://www.mythtv.org/">MythTV</a> front end, it allows me to access multimedia content stored on a file server and show it on a conventional TV set.<br /><br />Increasingly, TV content is archived in MPEG-4 format (<a href="http://www.tagesschau.de/">example</a>). Using <a href="http://www.ffmpeg.org/">ffmpeg</a>, it can be converted to a DVD-like format suitable for viewing with mvmpc as follows:<br /><br /><span style="font-family:courier new;"> ffmpeg -i xyz.mp4 -target ntsc-dvd -s 320x240 -acodec mp2 -ab 160k xyz.vob</span><br /><br />Unfortunately, this conversion causes the file size to increase six-fold. Any suggestions to minimize the file size without introducing playback problems are welcome.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7540010223464953438-8740417603061757187?l=laufer.cs.luc.edu'/></div>Konstantinhttp://www.blogger.com/profile/07858403962357318797noreply@blogger.com0tag:blogger.com,1999:blog-7540010223464953438.post-6635349749970578242008-08-20T13:12:00.004-05:002008-10-23T20:01:28.189-05:00Gift Ideas for Friends in EuropeIf you live in the US or Canada and have friends or family abroad who lead an active lifestyle, you may consider taking some of these items as gifts (conveniently available at the nearby Target):<br /><ul><li>Gatorade powder</li><li>CLIF bars (for example, in Germany, you can get only the much less tasty Power Bars for an even less tasty price)</li><li>sweatproof sunblock (they only have the waterproof kind)<br /></li></ul><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7540010223464953438-663534974997057824?l=laufer.cs.luc.edu'/></div>Konstantinhttp://www.blogger.com/profile/07858403962357318797noreply@blogger.com0tag:blogger.com,1999:blog-7540010223464953438.post-60182586131217513492008-08-20T10:57:00.008-05:002009-01-26T14:48:50.784-06:00Propane Exchange Pricing in the Chicago AreaLast night, I went to Home Depot in Evanston for a quick propane exchange. Out of curiosity, I called a few other places this morning to get their prices. Here is a summary (all prices in US$, not including about 10% sales tax):<br /><ul><li>Clark Devon Hardware:</li><li>CVS:<br /></li><li>Home Depot:</li><li>Lowe's:<br /></li><li>Menards: <span style="color: rgb(255, 102, 0);">17.82</span></li><li>7-11:<span style="color: rgb(0, 153, 0);"><br /></span></li></ul>I think it would be cool if <a href="http://www.chicagogasprices.com/">Chicago Gas Prices</a> included propane exchange...<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7540010223464953438-6018258613121751349?l=laufer.cs.luc.edu'/></div>Konstantinhttp://www.blogger.com/profile/07858403962357318797noreply@blogger.com0tag:blogger.com,1999:blog-7540010223464953438.post-26963795294962781782007-04-01T10:22:00.000-05:002007-04-01T10:53:58.985-05:00Free Windows emulator for Intel-based MacNow why would I want such a thing given that there already is Boot Camp? Very simple: I might be using OS X as my primary environment but occasionally have to try out things using specific Windows software. For example, I might want to check whether the XHTML and JavaScript code in the presentation tier of a web application work in Internet Explorer without shutting down and rebooting back-and-forth between OS X and Windows all the time.<br /><br />So how do I do this for free (the emulation part, that is, because Windows itself is not free)? Even our MSDN Academic Alliance site license doesn't help in this case because Virtual PC does not work on Intel-based Macs. Luckily, I stumbled across <a href="http://www.thefreecountry.com/emulators/pc.shtml">this list of emulators</a>, which includes a reference to <a href="http://www.kju-app.org/kju/">Q</a>, a Cocoa port of the open-source emulator <a href="http://www.qemu.org/">QEMU</a>. Q supports multiple guest PCs and takes advantage of OS X's advanced technical capabilities.<br /><br />Even though Q is still in alpha status, it is well-documented and includes a <a href="http://www.kju-app.org/proj/wiki/WindowsXPServicePackTwo">detailed tutorial for installing Windows XP SP2</a>. I had no trouble performing this installation and running IE. Keyboard focus can be a bit quirky: it seems to think that a modifier key is stuck. If this problem doesn't go away by minimizing and restoring IE, it sending Ctrl-Alt-Del to the guest PC and invoking the task manager's "run command" menu item without actually running anything seems to take care of it.<br /><br />In summary, Q gets this particular job done for me, and I think it is emerging as a serious competitor to the commercial emulators.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7540010223464953438-2696379529496278178?l=laufer.cs.luc.edu'/></div>Konstantinhttp://www.blogger.com/profile/07858403962357318797noreply@blogger.com8tag:blogger.com,1999:blog-7540010223464953438.post-79502037877314147972007-03-16T12:55:00.000-05:002007-04-01T10:50:09.441-05:00Intel-based Mac: the perfect machineI am happy to report that my Windows XP SP2 installation with Boot Camp was uneventful. I am using a 32GB FAT partition for easy file sharing between the two operating systems. Overall, the machine feels like a fast native Windows box, as it should. Now I can return the departmental Uninspiron loaner without having touched it.<br /><br />I performed this Windows installation specifically to use the VIA3 secure collaboration tool, which requires Windows 2000 or XP.<br /><br /><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.viack.com/product/specs/requirements.asp" target="_blank">http://www.viack.com/product<wbr>/specs/requirements.asp</a><br /><br />The tool worked without problems using ordinary headphones, the built-in microphone (there is no external mic jack), and a Logitech QuickCam for Notebooks (USB).<br /><br />However, the tool did not work with the built-in iSight camera.<br /><br />In addition, the ability to run Windows will come in very handy for<br /><ul><li>mobile application development</li><li>web service development using Microsoft's free tools</li></ul>Thanks to <a href="http://www.cs.luc.edu/">Loyola's Department of Computer Science</a> for providing me with such a great machine.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7540010223464953438-7950203787731414797?l=laufer.cs.luc.edu'/></div>Konstantinhttp://www.blogger.com/profile/07858403962357318797noreply@blogger.com1tag:blogger.com,1999:blog-7540010223464953438.post-24373568008934133322007-02-22T23:29:00.000-06:002007-04-01T10:52:51.832-05:00OS X software essentials<p> The purpose of this list is to help me remember what to reinstall after a disk crash (a frequent occurrence on my 2002 PowerBook Titanium). As a side effect, I am hoping that other OS X users find it to be a useful starting point for choosing the software they need.</p> <p> Although the list focuses on open-source or otherwise free software, payware is included in exceptional cases.</p> The following categories lead to the corresponding sections of my del.icio.us bookmarks.<br /><ul><li><a href="http://del.icio.us/klaufer/osx%2Bsoftware%2Bessential%2Bdevelopment">Development</a></li><li><a href="http://del.icio.us/klaufer/osx%2Bsoftware%2Bessential%2Bgames">Games</a></li><li><a href="http://del.icio.us/klaufer/osx%2Bsoftware%2Bessential%2Binternet">Internet</a><br /></li><li><a href="http://del.icio.us/klaufer/osx%2Bsoftware%2Bessential%2Bmultimedia">Multimedia</a></li><li><a href="http://del.icio.us/klaufer/osx%2Bsoftware%2Bessential%2Bwriting">Writing</a></li><li><a href="http://del.icio.us/klaufer/osx%2Bsoftware%2Bessential%2Butilities">Utilities</a></li><li><a href="http://del.icio.us/klaufer/osx%2Bsoftware%2Bessential%2Bundereval">Under consideration</a><br /></li></ul><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7540010223464953438-2437356800893413332?l=laufer.cs.luc.edu'/></div>Konstantinhttp://www.blogger.com/profile/07858403962357318797noreply@blogger.com0tag:blogger.com,1999:blog-7540010223464953438.post-71395551094164064352007-01-28T00:18:00.003-06:002007-04-01T10:51:40.143-05:00Restaurants in Buenos Aires<div style="float: right; margin-left: 10px; margin-bottom: 10px;"> <a href="http://www.flickr.com/photos/klaufer/363887673/" title="photo sharing"><img src="http://farm1.static.flickr.com/115/363887673_2873bd1d33_m.jpg" alt="" /></a><br /><span style="font-size:78%;"><a href="http://www.flickr.com/photos/klaufer/363887673/">By now El Obrero in La Boca has gotten packed</a></span><span style="margin-top: 0px;font-size:0;" >Originally uploaded by <a href="http://www.flickr.com/people/klaufer/">laufer</a>. </span></div><a href="http://www.guiaoleo.com.ar/">Guía Oleo</a> is a very useful guide to restaurants in Buenos Aires based on user-submitted ratings. The guide ranks restaurants in several categories and has a powerful search function.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7540010223464953438-7139555109416406435?l=laufer.cs.luc.edu'/></div>Konstantinhttp://www.blogger.com/profile/07858403962357318797noreply@blogger.com0tag:blogger.com,1999:blog-7540010223464953438.post-77885340739569103612007-01-25T23:33:00.000-06:002007-04-01T10:51:07.757-05:00NetBeans 5.5 UML support not ready for prime timeWhat a disappointment. I should have tested it better before having my concurrency class use it for modeling dynamic behavior with state diagrams. I could not find a way to set the trigger, guard, and effect of a transition. It seems to have only name, precondition, and postcondition, and doesn't format these elements properly. I know it's still in beta but didn't expect it to suck this much. I will probably have to go back to Poseidon instead.<br /><br />In addition, NetBeans has poor CVS and SVN support compared to Eclipse.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7540010223464953438-7788534073956910361?l=laufer.cs.luc.edu'/></div>Konstantinhttp://www.blogger.com/profile/07858403962357318797noreply@blogger.com1tag:blogger.com,1999:blog-7540010223464953438.post-59817635331337832882007-01-21T21:52:00.001-06:002007-04-01T10:50:34.990-05:00Foreign exchange in Argentina and Chile<div style="float: right; margin-left: 10px; margin-bottom: 10px;"> <a href="http://www.flickr.com/photos/klaufer/363892993/" title="photo sharing"><img src="http://farm1.static.flickr.com/159/363892993_89b0d522fe_m.jpg" alt="" /></a><br /><span style="font-size:78%;"><a href="http://www.flickr.com/photos/klaufer/363892993/">Street corner in Purmamarca, Jujuy Province,</a><br /><a href="http://www.flickr.com/photos/klaufer/363892993/">NW Argentina</a></span><br /><span style="margin-top: 0px;font-size:0;" > Originally uploaded by <a href="http://www.flickr.com/people/klaufer/">laufer</a>. </span><br /></div>Cash can be king: the cash market is so efficient that the buy-sell spread is minimal. For example, in Salta in Argentina's Northwest, street vendors would buy one USD at ARS 3.05 and sell one USD at ARS 3.09, amounting to only a 1.3% spread. In Arica, Chile, the spread on the street was slightly larger, buy at CLP 535 and sell at 547, amounting to 2.2%.<br /><br />By contrast, the effective exchange rate for withdrawing ARS 1500 using an ATM card comes out to 2.96. How did that happen? Well, the base rate for transfers was good, ARS 3.0595 per USD. Add to that a 3% charge for foreign exchange transactions plus a non-network ATM withdrawal fee of USD 3, and instead of USD 492, your ARS 1500 end up costing you USD 509. I guess the way to look at it is that you are paying almost 4% for the convenience and security of not carrying thousands of dollars in cash.<br /><br />Credit cards can be much kinder. The effective exchange rate for purchases with Citibank Dividend Mastercard came out to CLP 527 and with American Express to 531, only 1.5% or 0.75% on top of the street rate, respectively. In comparison, the effective exchange rate for ATM withdrawals was 513 CLP.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7540010223464953438-5981763533133783288?l=laufer.cs.luc.edu'/></div>Konstantinhttp://www.blogger.com/profile/07858403962357318797noreply@blogger.com0