<?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>Be cheap and DIY: &#187; Computers</title>
	<atom:link href="http://www.adrianandgenese.com/blogger/category/computers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adrianandgenese.com/blogger</link>
	<description></description>
	<lastBuildDate>Sat, 22 Oct 2011 06:02:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Asterisk and esmtp (or sendmail) not sending voicemail emails unless first run manually from console</title>
		<link>http://www.adrianandgenese.com/blogger/2011/04/13/asterisk-and-esmtp-not-working-unless-first-run-from-console/</link>
		<comments>http://www.adrianandgenese.com/blogger/2011/04/13/asterisk-and-esmtp-not-working-unless-first-run-from-console/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 05:48:54 +0000</pubDate>
		<dc:creator>Blog Master</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[attachment]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[esmtp]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[sendmail]]></category>
		<category><![CDATA[su]]></category>
		<category><![CDATA[voicemail]]></category>

		<guid isPermaLink="false">http://www.adrianandgenese.com/blogger/?p=606</guid>
		<description><![CDATA[For the past year to 2 years, I have had this issue where asterisk would not send emails out when voicemails were left. The strange thing was that it only worked when I started asterisk manually from command line but it would not work correctly when run from any startup or boot script. After looking into the problem [...]]]></description>
			<content:encoded><![CDATA[<p>For the past year to 2 years, I have had this issue where asterisk would not send emails out when voicemails were left. The strange thing was that it only worked when I started asterisk manually from command line but it would not work correctly when run from any startup or boot script. After looking into the problem more deeply did I realize that esmtp does not run as root when called by asterisk unless asterisk was first started by root. The example below is the only way ive found to get asterisk to send emails without killing the application first and starting it manually through the console as a root user every time I rebooted the device.</p>
<p><a href="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/04/root-user.png"><img class="aligncenter size-thumbnail wp-image-620" title="root user" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/04/root-user-150x150.png" alt="" width="150" height="150" /></a></p>
<p>In your voicemail.conf file use the line below to get asterisk to run esmtp as root even when started by a boot script. Be sure to replace the exact directory location of esmtp/sendmail with yours.</p>
<p style="padding: 2px 6px 4px 6px; color: #555555; background-color: #eeeeee; border: #dddddd 2px solid;">﻿mailcmd=su -c &#8220;/opt/bin/esmtp -t -f your@email.com&#8221;</p>
<p>You could also replace the command with the sendmail equivalent since esmtp mimics sendmail to a certain degree. The command I listed isnt rocket science, but i just didnt know enough about linux to actually implement it correctly in the voicemail.conf file. Hopefully this helps someone figure out why asterisk will not send emails with the voicemail as an attachment unless run manually via command line and not by a boot script.</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=Asterisk+and+esmtp+%28or+sendmail%29+not+sending+voicemail+emails+unless+first+run+manually+from+console+http%3A%2F%2Fis.gd%2Fw3NVox" title="Post to Twitter"><img class="nothumb" src="http://www.adrianandgenese.com/blogger/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro3.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.adrianandgenese.com/blogger/2011/04/13/asterisk-and-esmtp-not-working-unless-first-run-from-console/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring the OBiHai OBi110 to replace a linksys spa-3102 as a google voice and pstn gateway using asterisk 1.4</title>
		<link>http://www.adrianandgenese.com/blogger/2011/03/21/configuring-the-obi110-to-replace-a-linksys-spa-3102-as-a-google-voice-and-pstn-gateway-using-asterisk-1-4/</link>
		<comments>http://www.adrianandgenese.com/blogger/2011/03/21/configuring-the-obi110-to-replace-a-linksys-spa-3102-as-a-google-voice-and-pstn-gateway-using-asterisk-1-4/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 21:24:51 +0000</pubDate>
		<dc:creator>Blog Master</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[asterisk 1.4]]></category>
		<category><![CDATA[gateway]]></category>
		<category><![CDATA[google voice]]></category>
		<category><![CDATA[linksys]]></category>
		<category><![CDATA[obi110]]></category>
		<category><![CDATA[obihai]]></category>
		<category><![CDATA[ooma]]></category>
		<category><![CDATA[pstn]]></category>
		<category><![CDATA[spa3102]]></category>
		<category><![CDATA[trunking]]></category>
		<category><![CDATA[voip]]></category>

		<guid isPermaLink="false">http://www.adrianandgenese.com/blogger/?p=555</guid>
		<description><![CDATA[If you were looking for how to configure the SPA-3102 with Asterisk 1.4 click here. All the rage in the VOIP world is the Obihai obi110 voice gateway device, and while due largely to its native integration of google voice, I believe it&#8217;s because it does quite a bit for a very reasonable cost. And while just good news for asterisk [...]]]></description>
			<content:encoded><![CDATA[<h6>If you were looking for how to configure the SPA-3102 with Asterisk 1.4 <a href="http://www.adrianandgenese.com/blogger/2010/04/23/how-to-setup-asterisk-with-ooma-voip-and-a-linksys-spa-3102/">click here</a>.</h6>
<p>All the rage in the VOIP world is the Obihai obi110 voice gateway device, and while due largely to its native integration of google voice, I believe it&#8217;s because it does quite a bit for a very reasonable cost. And while<em> just </em>good news for asterisk 1.8 users, this is <em>great</em> news for asterisk 1.4 and 1.6 users! The Obi110 is essentially a user friendly linksys spa-3102 with a slightly watered down interface, with the addition of native google voice support (and setup wizards!). It is somewhat less capable in functionality (no router feature, or independent trunking capabilities with asterisk, etc.) but for my purposes, I decided to give it a try to see if I could replace my spa-3102 and found out that it could quite easily.</p>
<div id="attachment_566" class="wp-caption aligncenter" style="width: 135px"><a href="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/03/gvhome.png"><img class="size-full wp-image-566" title="ob110" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/03/gvhome.png" alt="" width="125" height="125" /></a><p class="wp-caption-text">The obi110</p></div>
<p>I have a simple asterisk 1.4 based setup with several extensions located around the world. The main goal is for my family to connect to my system using their iphones, computers, voip devices and make calls to the US and also to receive calls with local DID numbers to their extensions. My previous setup with the linksys spa-3102 allowed them to use my ooma device to call out as an outgoing trunk, however I wanted to see if I could add two trunks to my setup and give my users the flexibility of outgoing call redundancy if they so desired (choose to call out through GV or my Ooma).</p>
<p>Below is my guide for setting this up.</p>
<p><strong><span style="text-decoration: underline;">Pre-requisites:</span></strong><br />
-Network connectivity to the obi110 and ability to administer its local web admin page <em>and</em> setup through obitalk.com.<br />
-Physically connected pstn service (ooma, telco) to the obi110 local Line port (Note: if line port is disconnected, the obi110 will report the lines as busy even if just calling out through GV when the SP2 local dialplan shown below is specified).<br />
-Newest version of firmware on the obi110 (as of 03/21/11 <strong>﻿version 1.1.0 (Build: 1892)</strong>)</p>
<p><strong><span style="text-decoration: underline;">Configuration:</span></strong><br />
I found that it is much simpler to initially set up the obi110 through the obitalk.com portal and then to disable auto-provisioning and make customized changes to the web admin afterwards.</p>
<p><strong><span style="text-decoration: underline;">Google Voice Trunk setup &#8211; obitalk.com portal</span></strong><br />
1. Goto obi110 device portal after you have successfully registered your hardware to your user account on obitalk.com<br />
2. Configure Voice services for Service Provider 1 and select Google voice<br />
3. Enter in your google voice email and password.<br />
4. Make sure to put a checkmark to make this provider the default Line to call out.<br />
5. Click submit and wait for your ob110 to reboot</p>
<div class="mceTemp mceIEcenter">
<div id="attachment_559" class="wp-caption aligncenter" style="width: 667px"><a href="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/03/googlevoice.jpg"><img class="size-full wp-image-559" title="Google Voice Service provider 1 Trunk" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/03/googlevoice.jpg" alt="" width="657" height="256" /></a><p class="wp-caption-text">Google Voice Service provider 1 Trunk</p></div>
</div>
<p><strong><span style="text-decoration: underline;">Asterisk Trunk setup - obitalk.com portal<br />
</span></strong>1. While still logged into the Obitalk portal, configure the Voice service for Service Provider 2 as a <em>generic service provider</em> (this will essentially act as an extension to asterisk)<br />
2. Enter in your asterisk server information<br />
3. Click submit and wait for the obi110 to reboot.</p>
<div id="attachment_558" class="wp-caption aligncenter" style="width: 661px"><a href="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/03/gvtrunk.jpg"><img class="size-full wp-image-558" title="Asterisk Service provider 2 Trunk" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/03/gvtrunk.jpg" alt="" width="651" height="398" /></a><p class="wp-caption-text">Asterisk Service provider 2 Trunk</p></div>
<p><span style="text-decoration: underline;"><strong>Configure Dialplan on Obi110 device and disable Auto Provisioning</strong><br />
</span>Thats all there is to setting up obi110 trunks! Couldnt be easier right? Now for the small dialplan customizations to make the incoming and outgoing calls route properly.</p>
<p>1. Log into your obi110 device through its web admin (enter in the devices IP address in a web browser. default user/pass is admin/admin)<br />
2. Disable Auto-Provisioning by expanding the System Management Tree on the left pane, then clicking on the Auto Provisioning link and set the Auto Provisioning Method to Disabled. Click submit and reboot (if not disabled, your changes will get overwritten).<br />
3. Expand the Voice Services Tree to the left and click on the SP1 Service link<br />
4. Under X_InboundCallRoute enter in SP2 and click on submit (this routes all calls coming in from GV to your asterisk extension).</p>
<div id="attachment_560" class="wp-caption aligncenter" style="width: 714px"><a href="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/03/sp1.jpg"><img class="size-full wp-image-560" title="Service Provider 1 Local Dialplan" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/03/sp1.jpg" alt="" width="704" height="171" /></a><p class="wp-caption-text">Service Provider 1 Local Dialplan</p></div>
<p>5. Under the Voice Services Tree to the left, click on the SP2 Service link<br />
6. Under X_InboundCallRoute enter in {&gt;(xxx xxx xxxx):sp1},{&gt;(1xxx xxx xxxx):li1}  and click on submit</p>
<div id="attachment_561" class="wp-caption aligncenter" style="width: 718px"><a href="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/03/sp2.jpg"><img class="size-full wp-image-561" title="Service Provider 2 Local Dialplan" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/03/sp2.jpg" alt="" width="708" height="170" /></a><p class="wp-caption-text">Service Provider 2 Local Dialplan</p></div>
<p>The above line in Step 6 routes any 10 digit calls out through GV (configured as SP1), and any 11 digit calls starting with 1 out through the local line port&#8230;In my case, through my ooma device). The reason you will need to do this is because unlike the spa-3102, there is no seperate interfacing for asterisk to trunk to the different Service providers which the obi110 can be configured. Instead, asterisk needs to send the dialed number in a way where the obi110 can then determine to which interface it will send its calls. In this case, I will have asterisk format the numbers to be only 10 digits if a user wants to call out through GV, and append a 1 to the 10 digit number if the user wants to call out through my ooma. Once asterisk does this and sends the number to the obi110, the obi110 will then direct the call accordingly depending on if there is a 1 in front of the number &#8211; a little hurdle, but easy enough to work around.</p>
<p><strong><span style="text-decoration: underline;">Double checking your Asterisk configuration settings</span></strong><br />
1. Under the Service Providers Tree to the left, click on the ITSP Profile B link<br />
2. Make sure the settings are correct for the SIP and RTP sections. Most likely you will have to modify your RTP LocalPortMin and LocalPortMax settings to match your current asterisk RTP port range.</p>
<p>Thats all there is to configuring your local OBi110 device. The next steps are just to configure asterisk with the user you specified in the obitalk.com service provider 2 settings, and to create a dialplan which handles the numbers so that obi110 can route the calls appropriately.</p>
<p>Below is my user configuration for asterisk 1.4 so that the Obi110 can register to it. &#8216;gvtrunk&#8217; is my username and &#8216;password&#8217; is the password which I specified in my Service Provider 2 setup on the obitalk.com portal. Place this in your sip.conf or users.conf file.</p>
<p style="padding: 2px 6px 4px 6px; color: #555555; background-color: #eeeeee; border: #dddddd 2px solid;">[gvtrunk]<br />
username = gvtrunk<br />
fromuser = gvtrunk<br />
secret = password<br />
type = friend<br />
disallow = all<br />
allow = ulaw<br />
allow = alaw<br />
allow = gsm<br />
context = gv-in<br />
host = dynamic</p>
<p>Next we have to edit our extensions.conf file and to tell asterisk what to do with our calls. Below, any call the user makes whether be it 1XXX-XXX-XXXX or XXX-XXX-XXXX will be routed out to the obi110 and then through google voice. This is because I have asterisk removing the 1 digit the user has dialed so that the obi110 dialplan will route the 10 digit number to GV.</p>
<p>In this dialplan I also have any number with a 9 dialed before it sent out to the obi110 as a 1XXX-XXX-XXXX number. If the user has dialed a 9XXX-XXX-XXXX number without the 1, asterisk will append the 1 in front of the number to make it an 11 digit number so that the obi110 can route the call through the local line port (and out through my ooma).</p>
<p>_XXXX is needed because my internal extension numbers are 4 digits long. I need this so that any numbers longer than 4 digits go out appropriately and are not seen as internal extensions.</p>
<p style="padding: 2px 6px 4px 6px; color: #555555; background-color: #eeeeee; border: #dddddd 2px solid;">[ob110-out]<br />
;make outgoing calls to gvtrunk with 10 digit dialing<br />
exten =&gt; _XXXX.,1,Dial(SIP/${EXTEN}@gvtrunk,20)<br />
exten =&gt; _XXXX.,n,Hangup()<br />
exten =&gt; _XXXX.,n,Congestion<br />
;make outgoing calls to gvtrunk with 11 digit dialing<br />
exten =&gt; _1XXXX.,1,Dial(SIP/${EXTEN:1}@gvtrunk,20)<br />
exten =&gt; _1XXXX.,n,Hangup()<br />
exten =&gt; _1XXXX.,n,Congestion<br />
;make outgoing calls to gvtrunk through ooma with 10 digit dialing<br />
exten =&gt; _9XXXX.,1,Set(CHEXTEN=${EXTEN:1})<br />
exten =&gt; _9XXXX.,n,Dial(SIP/1${CHEXTEN}@gvtrunk,20)<br />
exten =&gt; _9XXXX.,n,Hangup()<br />
exten =&gt; _9XXXX.,n,Congestion<br />
;make outgoing calls to gvtrunk through ooma with 11 digit dialing<br />
exten =&gt; _91XXXX.,1,Dial(SIP/${EXTEN:1}@gvtrunk,20)<br />
exten =&gt; _91XXXX.,n,Hangup()<br />
exten =&gt; _91XXXX.,n,Congestion</p>
<p><strong><span style="text-decoration: underline;">How to handle inbound calls from GV with Asterisk</span></strong><br />
The last thing we need to do is tell asterisk how to handle inbound calls from Google Voice. In my user setup above, I specified gv-in as the user context. This just tells asterisk where to go and how to handle the incoming calls from the obi110 device. Place this in your extensions.conf file and modify it accordingly.</p>
<p style="padding: 2px 6px 4px 6px; color: #555555; background-color: #eeeeee; border: #dddddd 2px solid;">[gv-in]<br />
exten = s,1,answer<br />
exten = s,n,wait(1)<br />
exten = s,n,Dial(SIP/4000,20)<br />
exten = s,n,wait(1)<br />
exten = s,n,Voicemail(4000,u)<br />
exten = s,n,Hangup</p>
<p>Above, I have all calls from GV calling my extension 4000. Just change it to your desired extension.</p>
<p>Thats all there is to it. It may look complicated, but the dirty work is done for you&#8230;Enjoy!</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=Configuring+the+OBiHai+OBi110+to+replace+a+linksys+spa-3102+as+a+google+voice+and+pstn+gateway+using+asterisk+1.4+http%3A%2F%2Fis.gd%2FInazzc" title="Post to Twitter"><img class="nothumb" src="http://www.adrianandgenese.com/blogger/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro3.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.adrianandgenese.com/blogger/2011/03/21/configuring-the-obi110-to-replace-a-linksys-spa-3102-as-a-google-voice-and-pstn-gateway-using-asterisk-1-4/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to load SIP or SCCP on a Cisco 7940 7960 7941 7961 Ip Phone or fix a protocol application invalid message</title>
		<link>http://www.adrianandgenese.com/blogger/2011/02/16/how-to-upgrade-or-convert-a-cisco-ip-79xx-7940-7960-794x-796x-797x-phone-to-sip-or-sccp/</link>
		<comments>http://www.adrianandgenese.com/blogger/2011/02/16/how-to-upgrade-or-convert-a-cisco-ip-79xx-7940-7960-794x-796x-797x-phone-to-sip-or-sccp/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 09:26:00 +0000</pubDate>
		<dc:creator>Blog Master</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[7940]]></category>
		<category><![CDATA[7941]]></category>
		<category><![CDATA[7942]]></category>
		<category><![CDATA[7945]]></category>
		<category><![CDATA[7960]]></category>
		<category><![CDATA[7961]]></category>
		<category><![CDATA[7962]]></category>
		<category><![CDATA[7965]]></category>
		<category><![CDATA[7970]]></category>
		<category><![CDATA[7971]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[firmware]]></category>
		<category><![CDATA[tftp]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.adrianandgenese.com/blogger/?p=509</guid>
		<description><![CDATA[Getting Cisco phones working with asterisk may seem like a daunting procedure; getting SIP firmware installed on the phone, loading up the the firmware files in the tftp server, fearing that you will somehow brick the phone by an incomplete firmware upload&#8230;But I am here to reassure you that once you understand how Cisco phones [...]]]></description>
			<content:encoded><![CDATA[<p>Getting Cisco phones working with asterisk may seem like a daunting procedure; getting SIP firmware installed on the phone, loading up the the firmware files in the tftp server, fearing that you will somehow brick the phone by an incomplete firmware upload&#8230;But I am here to reassure you that once you understand how Cisco phones update themselves, the fear and trepidation will subside.</p>
<div id="attachment_518" class="wp-caption aligncenter" style="width: 160px"><a href="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/02/7960.jpg"><img class="size-thumbnail wp-image-518" title="7960" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/02/7960-150x150.jpg" alt="" width="150" height="150" /></a><p class="wp-caption-text">Cisco 79xx IP Phone</p></div>
<p>In fact, Cisco phones are simple. They just need a tftp server to update its firmware and it doesnt even have to be located on the asterisk/phone system itself. 7940/60 Cisco phones update in two stages. The bootloader, then the application. Once the bootloader is upgraded, all passwords and networking information on the phone will be wiped out. But what is essential in upgrading these phones is a DHCP server with option 150 enabled &#8211; an option to auto-provision the tftp server ip address when the DHCP server hands out the regular ip address to the phone.<br />
Without an auto-provisioned tftp server address, the phone will only complete half the upgrade and come up with an error message of &#8220;protocol application invalid.&#8221; This just means that the phone could not complete the second half of the upgrade and needs the tftp ip address to be specified. Only problem is since there is no application running, there is no place to specify the address! Thank goodness for DHCP option 150 which does this for us when the phone grabs an IP address after loading the bootloader.</p>
<p>Below are instructions to upgrade/convert any Cisco 7940, 7941, 7960, 7961, 7970, 7971, 7942, 7962, 7945, 7965 IP phone to any firmware you want from the Cisco web site (SIP/SCCP), and to recover any cisco phone which may have screwed up somehow while upgrading firmware (like if you get the protocol application invalid message).</p>
<p><span style="text-decoration: underline;"><strong>Step 1: Download Cisco phone firmware</strong></span><br />
Cisco may require you to have a smartnet contract before you download the firmware, but if you do not have one, there are firmware files available on the internet. Ive provided two sources below (If you cant find any after looking, for a donation I may be able to get what you need).</p>
<p><strong>a. </strong>Goto http://www.cisco.com/ and create a login if you do not already have one. Download the firmware for the specific phone you are using. (if cisco doesnt allow you to download the firmware, check here: <a href="ftp://ftp.itl.ua/pub/cisco/ip-7900ser/" target="_blank">ftp://ftp.itl.ua/pub/cisco/ip-7900ser/</a> or <a href="http://radiotwenterand.nl/~graver/cisco/SIP-7960/" target="_blank">http://radiotwenterand.nl/~graver/cisco/SIP-7960/</a> for phone firmware).</p>
<p><strong>b.</strong> Download the .zip file and extract it to a directory. If you are downloading an older version of the SIP/SCCP firmware and it only comes in a .cop file extension. Just rename the extension to .tar.gz and extract it to a directory using winzip or winrar.</p>
<div id="attachment_524" class="wp-caption aligncenter" style="width: 160px"><a href="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/02/Capture.jpg"><img class="size-thumbnail wp-image-524" title="Folder" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/02/Capture-150x150.jpg" alt="" width="150" height="150" /></a><p class="wp-caption-text">Extracted files in a folder</p></div>
<p>You will have several files in this directory. If you just have one, you must remember to extract all the files.</p>
<p><span style="text-decoration: underline;"><strong>Step 2: Download and configure the DHCP/TFTP server</strong></span><br />
We are going to use a windows based machine and load tftp/dhcp software on it which will make our windows machine a server for our phones.</p>
<p><strong>a. </strong>Go here to download the tftp/dhcp server &#8211; http://tftpd32.jounin.net/<br />
Download and install <strong>version 3.23</strong> (&lt;&#8211;YOU MUST DOWNLOAD AND INSTALL THIS VERSION. I have had many people complaining about their phones not obtaining a correct ip address and also the files not being sent correctly. Every one of these problems was due to using the incorrect version and/or having their firewall on).</p>
<p><strong>b.</strong> You will also have to configure your windows machine to use ip address of 192.168.1.1 and subnet mask of 255.255.255.0.<br />
Youll configure this tftp server to host the upgrade files via tftp server (theres an option to configure the working directory in the program to use for the stored firmware files on the windows machine &#8211; this must be set correctly!).</p>
<p><strong>c. </strong>Under DHCP server within the tftp32 program, enter the following and click SAVE:</p>
<p style="padding: 2px 6px 4px 6px; color: #555555; background-color: #eeeeee; border: #dddddd 2px solid;">-IP pool starting address as 192.168.1.2<br />
-Size of pool as 250 (if doing multiple phones, this just makes sure your phones are able to receive an ip address)<br />
-Default router as 192.168.1.1<br />
-Mask as 255.255.255.0<br />
-Additional option, enter 150 in the first box, then 0x0101A8C0  in the second box (this number is 192.168.1.1  in Hexadecimal).</p>
<div id="attachment_536" class="wp-caption aligncenter" style="width: 498px"><a href="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/02/tftpexample.jpg"><img class="size-full wp-image-536" title="tftpd32 screenshot" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/02/tftpexample.jpg" alt="" width="488" height="266" /></a><p class="wp-caption-text">TFTP example</p></div>
<p><span style="text-decoration: underline;"><strong>3. Putting it all together</strong></span></p>
<p><strong>a.</strong> Now, there are a few things to consider when upgrading 7940/7960 cisco phones (these steps below dont apply to the 79&#215;1/79&#215;2/79&#215;5 java based phones, if you have one of these, just do steps d. and e.). But the rule of thumb, is that if you have SCCP on your phone youll need to use a XMLDefault.cnf.xml file to specify the firmware load information tag by which the phone can know what load it should install. For the rest of this guide I will just assume you want to convert SCCP to SIP.</p>
<p><strong>b. </strong>The easiest way to get SIP on your phone is to install a universal application bootloader. Ive found that SCCP version 8.0.9 (P00308000900) has the most compatible loader which easily allows swapping between current SIP and SCCP loads without a hitch. So the best thing to do is to upgrade your SCCP phone with a newer SCCP load before switching over to SIP. If you have a very old version of SCCP, you will find that you cannot immediately upgrade to this version. If that is the case, just load version 3 (P00303010102), then load to version 5 (P00305000500), then jump to version 8.0.9 (P00308000900). To do this you have to download those firmware versions and just extract them all into one directory.</p>
<p><strong>c. </strong>Now download and place this file into your firmware directory. <a href="http://www.adrianandgenese.com/files/XMLDefault.cnf.xml" target="_blank">XMLDefault.cnf.xml</a> (right click on link&#8230;&#8217;save target as&#8217; &#8211; this file contains the text below)</p>
<p style="padding: 2px 6px 4px 6px; color: #555555; background-color: #eeeeee; border: #dddddd 2px solid;">&lt;Default&gt;<br />
&lt;callManagerGroup&gt;<br />
&lt;members&gt;<br />
&lt;member priority=&#8221;0&#8243;&gt;<br />
&lt;callManager&gt;<br />
&lt;ports&gt;<br />
&lt;ethernetPhonePort&gt;2000&lt;/ethernetPhonePort&gt;<br />
&lt;mgcpPorts&gt;<br />
&lt;listen&gt;2427&lt;/listen&gt;<br />
&lt;keepAlive&gt;2428&lt;/keepAlive&gt;<br />
&lt;/mgcpPorts&gt;<br />
&lt;/ports&gt;<br />
&lt;processNodeName&gt;&lt;/processNodeName&gt;<br />
&lt;/callManager&gt;<br />
&lt;/member&gt;<br />
&lt;/members&gt;<br />
&lt;/callManagerGroup&gt;<br />
&lt;loadInformation&gt;SCCP40.8-3-1S&lt;/loadInformation&gt;<br />
&lt;authenticationURL&gt;&lt;/authenticationURL&gt;<br />
&lt;directoryURL&gt;&lt;/directoryURL&gt;<br />
&lt;idleURL&gt;&lt;/idleURL&gt;<br />
&lt;informationURL&gt;&lt;/informationURL&gt;<br />
&lt;messagesURL&gt;&lt;/messagesURL&gt;<br />
&lt;servicesURL&gt;&lt;/servicesURL&gt;<br />
&lt;/Default&gt;</p>
<p>After you have downloaded the file, edit the loadInformation tag within the XMLDefault.cnf.xml file with the firmware you want to install on your phone. Do not add the file name extension, just the name of the file (ig. &lt;loadInformation&gt;P00308000500&lt;/loadInformation&gt;). Save and proceed to the next step.</p>
<p><strong>d.</strong> Next plug in the phone by crossover cable or ethernet switch to the computer you are running this server from (make sure you disconnect any device attached to the network which resolves an ip through dhcp, as this will conflict with any other dhcp server on the network).</p>
<p><strong>e.</strong> Power Cycle the phone and clear the configuration by holding down the # key and then plugging in the phone. After all the lights cycle on the phone, release the # key and press 123456789*0# followed with the 2 key (if you are using a 79&#215;1, 79&#215;2, 79&#215;5, 7970 phone, plug the phone in and hold the # key till the extension lights blink amber&#8230;then press 3491672850*#. The lights will turn red, but if they dont, repeat this step. The phone will then wipe the flash and load whatever firmware is specified in the tftpd32 directory &#8211; if the phone just keeps downloading the term.defaults file constantly, just do an incremental upgrade to the firmware version that you want).</p>
<p>This will clear all settings on the phone and set it to defaults. Upon reboot, the phone will grab an ip address from the dhcp server on the windows machine running the dhcp server. Tftpd32 will also assign an ip address for the tftp server to the phone using option 150, and the phone should start pulling down files from the server after it obtains an ip address.</p>
<p><strong>f.</strong> If you are doing an incremental upgrade to get to version 8.0.9, just keep editing the XMLDefault.cnf.xml file with the next version of firmware and save, then reboot the phone (after it has completed loading both the bootloader and application). The phone should find that it needs to upgrade itself until you stop editing the file with new firmware information.</p>
<p><strong>g.</strong> After the phone gets to SCCP version 8.0.9, all you have to do is just download the version of SIP firmware you want, and then extract it into a seperate directory. Point the tftpd32 program to use that directory, copy the XMLDefault.cnf.xml file to that directory and edit the loadInformation tag with the POS-xxx filename which is located in that directory and  reboot the phone. The phone will automatically switch over to loading the SIP firmware.</p>
<p>You can check the events viewer within tftpd32 to ensure that the phone is grabbing the necessary files and getting an ip address. The 79&#215;1/79&#215;2/79&#215;5/7970 phones take a bit longer to fully complete the flashing process since they use more numerous and larger files than the 7940/60 series phones. If the phones just sit like they arent doing anything, wait a bit longer and they should come back up. Its not uncommon for one phone to take up to 4-5 minutes to complete the entire process.</p>
<p>Thats all there is to it, and now that the phone has a good universal application bootloader, you will have no trouble switching between SCCP and SIP by just pointing the phone to the appropriate directory.</p>
<p>If you have any questions, feel free to send me a message on my contact page. If you get really stuck I can also provide these services remotely.</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=How+to+load+SIP+or+SCCP+on+a+Cisco+7940+7960+7941+7961+Ip+Phone+or+fix+a+protocol+application+invalid+message+http%3A%2F%2Fis.gd%2Fp1ACla" title="Post to Twitter"><img class="nothumb" src="http://www.adrianandgenese.com/blogger/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro3.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.adrianandgenese.com/blogger/2011/02/16/how-to-upgrade-or-convert-a-cisco-ip-79xx-7940-7960-794x-796x-797x-phone-to-sip-or-sccp/feed/</wfw:commentRss>
		<slash:comments>50</slash:comments>
		</item>
		<item>
		<title>How to configure BLF with a Linksys SPA942 and Asterisk 1.4</title>
		<link>http://www.adrianandgenese.com/blogger/2011/02/15/how-to-configure-blf-with-a-linksys-spa942-and-asterisk-1-4/</link>
		<comments>http://www.adrianandgenese.com/blogger/2011/02/15/how-to-configure-blf-with-a-linksys-spa942-and-asterisk-1-4/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 07:49:28 +0000</pubDate>
		<dc:creator>Blog Master</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[1.4]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[BLF]]></category>
		<category><![CDATA[extensions.conf]]></category>
		<category><![CDATA[linksys]]></category>
		<category><![CDATA[sip.conf]]></category>
		<category><![CDATA[spa-942]]></category>
		<category><![CDATA[spa942]]></category>
		<category><![CDATA[users.conf]]></category>

		<guid isPermaLink="false">http://www.adrianandgenese.com/blogger/?p=483</guid>
		<description><![CDATA[How to setup BLF with a linksys spa942 and Asterisk 1.4 instead of using SLA]]></description>
			<content:encoded><![CDATA[<p>Here is my guide for setting up BLF (Busy Lamp Field) on asterisk 1.4 using a linksys SPA-942 voip phone. I must say that trying to find the right information took a little bit of time&#8230;In fact it took me about 2 hours to successfully set up the unused lines on my SPA942 to be used as indicators because I could not find enough detailed information in one location. Hence this post.</p>
<div id="attachment_530" class="wp-caption aligncenter" style="width: 210px"><a href="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/02/linksys_spa942_big-e1297894012781.gif"><img class="size-full wp-image-530" title="Linksys SPA-942" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/02/linksys_spa942_big-e1297894012781.gif" alt="Linksys SPA-942" width="200" height="184" /></a><p class="wp-caption-text">Linksys SPA-942</p></div>
<p>Asterisk does not easily work with shared line appearances unless the phones are made specifically for it. However, you should be able to get BLF working instead of SLA and have almost the same functionality. Below is what you will need to do to enable BLF on asterisk 1.4 using a linksys spa942 (this should also work on any Linksys/Sipura Phone that supports BLF and extended functions).</p>
<p>Edit your SIP.CONF file and enable these features (these MUST be enabled for hints to work correctly):</p>
<p style="padding: 2px 6px 4px 6px; color: #555555; background-color: #eeeeee; border: #dddddd 2px solid;">allowsubscribe=yes<br />
limitonpeers=yes<br />
notifyringing=yes<br />
notifyhold=yes</p>
<p>In your SIP.CONF/USERS.CONF file, edit your users to contain the following code:</p>
<p style="padding: 2px 6px 4px 6px; color: #555555; background-color: #eeeeee; border: #dddddd 2px solid;">qualify=yes (im not sure this is necessary as I tested it without this setting and BLF still functioned correctly)<br />
call-limit=100 (this can be anything, but 100 will keep you from denying any new calls)</p>
<p>In your EXTENSIONS.CONF file, you just have to enable hints by putting this in your default context (change the extension numbers with your extension numbers):</p>
<p style="padding: 2px 6px 4px 6px; color: #555555; background-color: #eeeeee; border: #dddddd 2px solid;">exten =&gt; 1000,hint,SIP/1000<br />
exten =&gt; 2000,hint,SIP/2000<br />
exten =&gt; 3000,hint,SIP/3000<br />
exten =&gt; 4000,hint,SIP/4000</p>
<p>This enables BLF on your asterisk server. In order to configure your linksys spa-942, all you have to do is enter a few settings on the phone itself. But you must be sure you are currently running the newest version of the phones firmware (it is currently at <span style="color: darkblue;">6.1.5(a)), </span>BLF will not work without first running the newest firmware release! After you have confirmed this, use your web browser and enter the ip adrress of your phone. Click on <em>admin login</em> and then on <em>advanced</em>.</p>
<p>Under the <em>Phone</em> tab type the following:</p>
<p style="padding: 2px 6px 4px 6px; color: #555555; background-color: #eeeeee; border: #dddddd 2px solid;">Short Name: Anything you want to show up next to the LED to remind you which line it is you are monitoring.<br />
Extended Function: fnc=blf+sd+cp;sub=5000@$PROXY;ext=5000@$PROXY </p>
<div id="attachment_484" class="wp-caption aligncenter" style="width: 738px"><a href="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/02/blf.jpg"><img class="size-full wp-image-484" title="asterisk 1.4 BLF" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/02/blf.jpg" alt="SPA942 settings for blf" width="728" height="175" /></a><p class="wp-caption-text">Just enter the line under extended function</p></div>
<p> Above, I have two extensions; 5000 and 6000 which I am monitoring which show up on my phone line buttons 2 and 3. After these settings are entered, scroll down to Line Key Extended Function and enter these settings:</p>
<div id="attachment_485" class="wp-caption aligncenter" style="width: 757px"><a href="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/02/asteriskblf.jpg"><img class="size-full wp-image-485" title="asteriskblf" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/02/asteriskblf.jpg" alt="Line key extended functions" width="747" height="88" /></a><p class="wp-caption-text">Line Key Extended Functions</p></div>
<p style="padding: 2px 6px 4px 6px; color: #555555; background-color: #eeeeee; border: #dddddd 2px solid;">Server Type: Asterisk (*this is important!).</p>
<p>You do not have to enable line keys in the <em>Ext.</em> tabs  for this to work. Just click &#8216;submit all&#8217; and wait for the phone to reboot. Youre done! Hopefully this will save someone lots of time searching google for consolidated information!</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=How+to+configure+BLF+with+a+Linksys+SPA942+and+Asterisk+1.4+http%3A%2F%2Fis.gd%2FcNJpzF" title="Post to Twitter"><img class="nothumb" src="http://www.adrianandgenese.com/blogger/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro3.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.adrianandgenese.com/blogger/2011/02/15/how-to-configure-blf-with-a-linksys-spa942-and-asterisk-1-4/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to send an email alert using sendmail from Asterisk 1.4 when a call is made through Ooma</title>
		<link>http://www.adrianandgenese.com/blogger/2011/02/05/how-to-send-an-email-alert-using-sendmail-from-asterisk-1-4-when-a-call-is-made-through-ooma/</link>
		<comments>http://www.adrianandgenese.com/blogger/2011/02/05/how-to-send-an-email-alert-using-sendmail-from-asterisk-1-4-when-a-call-is-made-through-ooma/#comments</comments>
		<pubDate>Sat, 05 Feb 2011 21:10:12 +0000</pubDate>
		<dc:creator>Blog Master</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[alert]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[extensions.conf]]></category>
		<category><![CDATA[ooma]]></category>
		<category><![CDATA[sendmail]]></category>

		<guid isPermaLink="false">http://www.adrianandgenese.com/blogger/?p=457</guid>
		<description><![CDATA[I have been using asterisk in conjunction with my Ooma voip device for some time now. My current configuration allows my family and I to place a call from anywhere there is an internet connection out through my ooma device. My family and extended family travel often and this is a great way to be [...]]]></description>
			<content:encoded><![CDATA[<p>I have been using asterisk in conjunction with my Ooma voip device for some time now. My current configuration allows my family and I to place a call from anywhere there is an internet connection out through my ooma device. My family and extended family travel often and this is a great way to be able to still make local calls for free while being away.</p>
<p>While my family uses this setup, I often wondered the details of the calls made out through my Ooma device. Sure I could log into my.ooma.com or even check the asterisk call logs, but it wasnt as neat/tidy or as automated as I would have liked. I snooped around and discovered that Asterisk can run system commands when they are specified in the extensions.conf file!</p>
<p>I scoured the internet for instructions and realized the lack of a good guide for asterisk 1.4 when using sendmail (this guide should work for msmtp as well), so I thought i would share.</p>
<p>Below is my dialplan for sending an email alert when a call is placed through to my ooma device. This can be placed in any dialplan where you would like an email alert to be made to you, so the possibilities are endless!</p>
<p style="text-align: center;"><a href="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/02/mail.jpg"><img class="aligncenter size-thumbnail wp-image-469" title="Mail" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2011/02/mail-150x150.jpg" alt="Asterisk email alert" width="150" height="150" /></a></p>
<p>While many guides are written for use with the linux mail application which can allow for the subject and body to be specified by the command line, I was using sendmail which does not allow for the subject or body to be specified by command line (except using echo statements in a way which asterisk could not duplicate while running from a dialplan ig. (cat &gt; text | echo xxx ; echo xxx ; | sendmail) etc.). Sendmail needs certain variables to be specified in a file, or by running the application and specifying it while it is running.</p>
<p>I found that asterisk would need to create the file dynamically and add the To:, Subject:, and Body text variables before Asterisk/Sendmail would send the customized email that I wanted sent.</p>
<p>*Note: For this to work, you must have sendmail already configured and able to send emails.</p>
<p style="padding: 2px 6px 4px 6px; color: #555555; background-color: #eeeeee; border: #dddddd 2px solid;">[ooma-out]<br />
;make outgoing calls to ooma pstn<br />
exten =&gt; _XXXX.,1,System(echo &#8220;To: putdestinationemail@here.com&#8221; &gt; /opt/etc/init.d/calls)<br />
exten =&gt; _XXXX.,n(done),NoOp()<br />
exten =&gt; _XXXX.,n,System(echo &#8220;Subject: [PBX]: Outgoing call through Ooma&#8221; &gt;&gt; /opt/etc/init.d/calls)<br />
exten =&gt; _XXXX.,n(done),NoOp()<br />
exten =&gt; _XXXX.,n,System(echo &#8220;&#8221; &gt;&gt; /opt/etc/init.d/calls)<br />
exten =&gt; _XXXX.,n(done),NoOp()<br />
exten =&gt; _XXXX.,n,System(echo &#8220;User ${CALLERID(NUM)} has made an outgoing call through ooma to phone number ${EXTEN} on ${STRFTIME(%C%m%d%y%H%M)}&#8221; &gt;&gt; /opt/etc/init.d/calls)<br />
exten =&gt; _XXXX.,n(done),NoOp()<br />
exten =&gt; _XXXX.,n,System(sendmail -t -f putsendingemail@here.com &lt; /opt/etc/init.d/calls)<br />
exten =&gt; _XXXX.,n(done),NoOp()<br />
exten =&gt; _XXXX.,n,Dial(SIP/${EXTEN}@pstn,20)<br />
exten =&gt; _XXXX.,n,Hangup<br />
exten =&gt; _XXXX.,n,Congestion</p>
<p>exten =&gt; _XXXX., is used instead of exten =&gt; s,n, because I wanted to have any number larger than 4 digits routed out through ooma, since my internal extensions are 4 digits long.<br />
exten =&gt; _XXXX.,n,Dial(SIP/${EXTEN}@pstn,20) is my command to send the call out through ooma.</p>
<p>This configuration makes a file located in /opt/etc/init.d called &#8220;calls&#8221; containing:</p>
<p style="padding: 2px 6px 4px 6px; color: #555555; background-color: #eeeeee; border: #dddddd 2px solid;">To: putdestinationemail@here.com<br />
Subject: [PBX]: Outgoing call through Ooma<br />
User EXTENTIONCALLING has made an outgoing call through ooma to phone number NUMBERCALLED on DATE</p>
<p>The email is sent to the email specified in &#8220;putdestinationemail@here.com&#8221; from email address specified in <a href="mailto:putsendingemail@here.com">putsendingemail@here.com</a></p>
<p>This dialplan can be customized to suit any email alert you may need to send when placed into any dialplan in the extensions.conf file, so have fun!</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=How+to+send+an+email+alert+using+sendmail+from+Asterisk+1.4+when+a+call+is+made+through+Ooma+http%3A%2F%2Fis.gd%2FMPsmgM" title="Post to Twitter"><img class="nothumb" src="http://www.adrianandgenese.com/blogger/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro3.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.adrianandgenese.com/blogger/2011/02/05/how-to-send-an-email-alert-using-sendmail-from-asterisk-1-4-when-a-call-is-made-through-ooma/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to recover ssh access to your pogoplug when hbmgr.sh has been removed from startup</title>
		<link>http://www.adrianandgenese.com/blogger/2010/12/11/how-to-recover-ssh-access-to-your-pogoplug-when-hbmgr-sh-has-been-removed-from-startup/</link>
		<comments>http://www.adrianandgenese.com/blogger/2010/12/11/how-to-recover-ssh-access-to-your-pogoplug-when-hbmgr-sh-has-been-removed-from-startup/#comments</comments>
		<pubDate>Sat, 11 Dec 2010 18:16:41 +0000</pubDate>
		<dc:creator>Blog Master</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[dropbear]]></category>
		<category><![CDATA[hbmgr.sh]]></category>
		<category><![CDATA[openpogo]]></category>
		<category><![CDATA[pogoplug]]></category>
		<category><![CDATA[rcS]]></category>
		<category><![CDATA[seagate dockstar]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.adrianandgenese.com/blogger/?p=410</guid>
		<description><![CDATA[How to re-enable ssh after hbmgr.sh is removed from the rcS startup file on a pogoplug running openpogo.]]></description>
			<content:encoded><![CDATA[<p>Recently, I was tinkering with my pogoplug running openpogo and decided to comment out the hbmgr.sh line in my rcS startup file. I soon learned that  hbmgr.sh is responsible for starting dropbear and connecting your pogoplug to the my.pogoplug.com service. Because telnet was disabled and dropbear was not starting, I realized I no longer had SSH access to my pogoplug, although I could see my programs like transmission and asterisk were starting up ok.</p>
<p style="text-align: center;"><a href="http://www.adrianandgenese.com/blogger/wp-content/uploads/2010/12/ex-qn-mark.jpg"><img class="aligncenter size-medium wp-image-439" title="what the..." src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2010/12/ex-qn-mark-300x295.jpg" alt="" width="100" height="86" /></a></p>
<p>I freaked out for a moment as I believed there was no way to recover ssh access&#8230;until I thought about it some more. Below are the steps to recover SSH access to your pogoplug running openpogo if you somehow disabled hbmgr.sh on startup:</p>
<p>This procedure will work with pogoplugs running openpogo, not sure if it will work for units NOT running openpogo since openpogo searches the opt/etc/init.d directory on startup to start any other scripts on boot.</p>
<p>PREP:<br />
-power off the pogoplug<br />
-download a linux live distro. Any modern live distro will do, knoppix, slitaz, ubuntu, etc.<br />
-burn distro to cd<br />
-boot off linux live cd<br />
-plug in HD from pogoplug into the computer now running linux</p>
<p>ACCESS the HD:</p>
<p>-mount hard drive (you might have to open up gparted to see what device your HD is coming up as)<br />
-start terminal<br />
-access your hd mount<br />
-do an ls -a (this command shows hidden files on the directory you are in. If you do not use the -a command, you will only see the directories you shared out through pogoplug).<br />
-go into the /.opt/etc/init.d directory<br />
-nano or vi a new file called S70ssh with ROOT permissions (otherwise you will not be able to write the file)</p>
<p>Enter in this line in the new file:</p>
<p>/etc/init.d/hbmgr.sh start</p>
<p>-save and exit<br />
-chmod 777 the S70ssh file for good measure</p>
<p>FINISHING:<br />
-Power down the linux system<br />
-Plug the HD back into the Pogoplug and power cycle the unit.</p>
<p>After the unit restarts, the script should have run and started hbmgr.sh. Remember to delete the script S70ssh and make sure the /etc/init.d/hbmgr.sh start line is enabled or entered back into the rcS startup file.</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=How+to+recover+ssh+access+to+your+pogoplug+when+hbmgr.sh+has+been+removed+from+startup+http%3A%2F%2Fis.gd%2FTrHTtE" title="Post to Twitter"><img class="nothumb" src="http://www.adrianandgenese.com/blogger/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro3.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.adrianandgenese.com/blogger/2010/12/11/how-to-recover-ssh-access-to-your-pogoplug-when-hbmgr-sh-has-been-removed-from-startup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to fix a broken /sbin/reboot which powers off instead of reboots on openpogo</title>
		<link>http://www.adrianandgenese.com/blogger/2010/07/19/how-to-fix-a-broken-sbinreboot-which-powers-off-instead-of-reboots-on-openpogo/</link>
		<comments>http://www.adrianandgenese.com/blogger/2010/07/19/how-to-fix-a-broken-sbinreboot-which-powers-off-instead-of-reboots-on-openpogo/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 06:06:08 +0000</pubDate>
		<dc:creator>Blog Master</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[openpogo]]></category>
		<category><![CDATA[powers off]]></category>
		<category><![CDATA[reboot]]></category>
		<category><![CDATA[sbin]]></category>
		<category><![CDATA[seagate dockstar]]></category>
		<category><![CDATA[shutdown]]></category>

		<guid isPermaLink="false">http://www.adrianandgenese.com/blogger/?p=389</guid>
		<description><![CDATA[How to fix a broken reboot command on a device running openpogo]]></description>
			<content:encoded><![CDATA[<p>After getting my Seagate Dockstar, I experimented with installing openpogo and plugbox linux. In my attempt to install plugbox linux after I installed openpogo, and then installing openpogo over the plugbox installation, I succeeded in breaking my reboot command. Instead of a reboot when typing /sbin/reboot, the dockstar would just power off and I would have to unplug and reinsert the power plug back into the dockstar for it to power back on.</p>
<p>After some searching, I found that plugbox linux changes up the boot parameters using blparam. I figured that the /sbin/reboot was indeed working fine, but it would just freak out when trying to check for installed linux kernels on attached USB storage devices upon reboot. Reverting to the original bootload parameter worked for me and fixed /sbin/reboot so I didnt have to power cycle the unit by physically pulling the plug.</p>
<p>I didnt find this command easily by searching how to fix a broken reboot command so I figured I would post it on my blog for others who may run into the same problem.</p>
<p>To fix /sbin/reboot, SSH into your device, enable rw access to the file system and enter in:</p>
<p>/usr/local/cloudengines/bin/./blparam &#8216;bootcmd=run bootcmd_original&#8217;</p>
<p>you should be able to issue an /sbin/reboot and have it reboot like normal!</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=How+to+fix+a+broken+%2Fsbin%2Freboot+which+powers+off+instead+of+reboots+on+openpogo+http%3A%2F%2Fis.gd%2FxGScZ1" title="Post to Twitter"><img class="nothumb" src="http://www.adrianandgenese.com/blogger/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro3.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.adrianandgenese.com/blogger/2010/07/19/how-to-fix-a-broken-sbinreboot-which-powers-off-instead-of-reboots-on-openpogo/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to set a static IP for a pogoplug and make it persistent</title>
		<link>http://www.adrianandgenese.com/blogger/2010/07/15/how-to-set-a-static-ip-for-a-pogoplug-and-make-it-persistent/</link>
		<comments>http://www.adrianandgenese.com/blogger/2010/07/15/how-to-set-a-static-ip-for-a-pogoplug-and-make-it-persistent/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 07:34:35 +0000</pubDate>
		<dc:creator>Blog Master</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[marvell]]></category>
		<category><![CDATA[openpogo]]></category>
		<category><![CDATA[pogoplug]]></category>
		<category><![CDATA[seagate dockstar]]></category>
		<category><![CDATA[sheevaplug]]></category>
		<category><![CDATA[static ip address]]></category>

		<guid isPermaLink="false">http://www.adrianandgenese.com/blogger/?p=377</guid>
		<description><![CDATA[How to set a static ip address on a pogoplug enabled device such as a seagate dockstar or marvell sheevaplug and make the changes persistent.]]></description>
			<content:encoded><![CDATA[<p>I recently purchased a seagate dockstar off buy.com for $25 with free shipping. For those of you in the know, its essentially a Marvell sheevaplug with less memory and flash size. Its still got the same 1.2ghz proc and built around the same platform, and even though its slightly less on the specs, it makes up for it with USB ports and the fact thats its ONLY 25 bucks.</p>
<div id="attachment_381" class="wp-caption aligncenter" style="width: 586px"><a href="http://www.adrianandgenese.com/blogger/wp-content/uploads/2010/07/dockstar.jpg"><img class="size-full wp-image-381" title="seagate dockstar" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2010/07/dockstar.jpg" alt="Seagate dockstar" width="576" height="300" /></a><p class="wp-caption-text">Seagate Dockstar</p></div>
<p>After setting up the dockstar, I installed openpogo as I wanted it to replace my NSLU2 which was acting as a transmission bit-torrent downloader and Asterisk PBX. It all installed pretty much ok, but with the exception of setting a static IP for the unit. I initially just set the DHCP options in my router to give it a static IP, but I wanted to know if there was an easy way to do this with the pogoplug software. I ended up emailing pogo support and below is what they told me:</p>
<p><em>Please read through these instructions carefully. Applying them improperly will result in a bricked or inoperable Pogoplug. By the way, we already have logged an enhancement request to add this functionality in the Web interface at my.pogoplug.com though I have no information regarding a release date for such an update.</em></p>
<p><em>You will need to first activate Pogoplug using the default setup I.S.P. modem =&gt; router =&gt; Pogoplug with an functioning DHCP Server.</em></p>
<p><em>Next enable SSH: To enable SSH, login to </em><a href="http://my.pogoplug.com"><em>http://my.pogoplug.com</em></a><em>, navigate to the Settings page, select Security Settings, and from the main pane, enable SSH for your Pogoplug. Choose your own SSH password.</em></p>
<p><em>Now SSH into your Pogoplug with the username: root and the password you set previously.</em></p>
<p><em>At the bash shell prompt, you can assign a static IP just as you would on any linux machine. For this example, I will use eth0:3 aliased interface so we don&#8217;t lose our current static IP we are using for SSH. I will also assume my new static IP to be assigned is 192.168.77.3 and the default route gateway is 192.168.77.1 and the DNS name server is 192.168.77.2</em></p>
<p><em>To persist these changes after a power loss or reboot of the pogoplug, issue the following commands at the bash prompt.<br />
-bash-3.2# mount / -o remount,rw,noatime<br />
-bash-3.2# echo &#8216;ifconfig eth0:3 192.168.77.3 netmask 255.255.255.0&#8242; &gt;&gt; /etc/init.d/rcS<br />
-bash-3.2# echo &#8216;route add default gw 192.168.77.1&#8242; &gt;&gt; /etc/init.d/rcS<br />
-bash-3.2# echo &#8216;echo &#8220;nameserver 192.168.77.2&#8243; &gt; /etc/resolv.conf&#8217; &gt;&gt; /etc/init.d/rcS<br />
-bash-3.2# mount / -o remount,ro<br />
-bash-3.2#</em></p>
<p><em>When done properly, your Pogoplug should continue to function when attached to a DHCP network.</em></p>
<p>I wanted to post this because I could not easily find it online or in their forums, so I thought this could save someone the time and hassle of contacting their technical support.</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=How+to+set+a+static+IP+for+a+pogoplug+and+make+it+persistent+http%3A%2F%2Fis.gd%2F9iu6UD" title="Post to Twitter"><img class="nothumb" src="http://www.adrianandgenese.com/blogger/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro3.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.adrianandgenese.com/blogger/2010/07/15/how-to-set-a-static-ip-for-a-pogoplug-and-make-it-persistent/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to setup Asterisk with Ooma voip using a Linksys SPA-3102</title>
		<link>http://www.adrianandgenese.com/blogger/2010/04/23/how-to-setup-asterisk-with-ooma-voip-and-a-linksys-spa-3102/</link>
		<comments>http://www.adrianandgenese.com/blogger/2010/04/23/how-to-setup-asterisk-with-ooma-voip-and-a-linksys-spa-3102/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 05:37:18 +0000</pubDate>
		<dc:creator>Blog Master</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[Home Improvement]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[ata]]></category>
		<category><![CDATA[linksys]]></category>
		<category><![CDATA[ooma]]></category>
		<category><![CDATA[pbx]]></category>
		<category><![CDATA[pstn]]></category>
		<category><![CDATA[spa-3102]]></category>
		<category><![CDATA[voip]]></category>

		<guid isPermaLink="false">http://www.adrianandgenese.com/blogger/?p=319</guid>
		<description><![CDATA[How to configure asterisk 1.4 to dial out with ooma using the spa-3102 from linksys. This setup is on an NSLU2 running unslung 6.10beta. ]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;"><a href="http://www.adrianandgenese.com/blogger/wp-content/uploads/2010/04/41TUv85GkML._SL500_AA280_.jpg"></a>Asterisk is one of the coolest pieces of open source software that I have come across. Its possibilities are endless, and its almost completely free (aside from all the cool gadgets you buy to expand its functionality). The reason for this blog post is to provide a better guide for setting up asterisk to communicate with an spa-3102 and interface it with ooma. In this setup, I have asterisk 1.4 running on an NSLU2 running unslung 6.10beta. Being that the nslu2 does not have much in terms of support for fxo/fxs built in or through its USB ports, the super handy dandy and small form factor of the SPA-3102 is a perfect option to get an FXO port to interface with asterisk via ethernet and be able to make and receive calls with asterisk to the PSTN (in this case to dial out and receive calls from my ooma hub).</p>
<p style="text-align: center;"><a href="http://www.adrianandgenese.com/blogger/wp-content/uploads/2010/04/Asterisk.jpg"><img class="size-medium wp-image-334 alignnone" title="Asterisk" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2010/04/Asterisk-300x168.jpg" alt="" width="300" height="168" /></a></p>
<p style="text-align: left;">The real motivation for me to use asterisk and ooma was to save moolah. With ooma, albeit with the up-front cost of $200, one can cancel their phone line and stop paying those pesky monthly bills. Our monthly bills were not as absorbitant as others, yet the reasoning behind me getting it was to get more for the same. I canceled my ATT $10 internet (768k down) and $10 phone with only local calling&#8230;(total monthly charge of $32-$37 with taxes and long distance charges that we didnt make), and opted for a 12mb down 512k up cable internet connection for $37.99. I would then still have a home phone number which I could take with me if I moved, and have super fast internet (in my standards). With asterisk in the mix, I could then share out my ooma with my family and allow them to make calls to the US for free as well (my sister lives in australia). Also, if I am overseas, I can make free calls to the US. I also have gizmo5 and google voice working together to provide my individual extensions in asterisk with DID numbers, but thats for another post.</p>
<p style="text-align: left;"><a href="http://www.adrianandgenese.com/blogger/wp-content/uploads/2010/04/41TUv85GkML._SL500_AA280_.jpg"><img class="aligncenter size-full wp-image-343" title="Ooma core" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2010/04/41TUv85GkML._SL500_AA280_.jpg" alt="" width="280" height="280" /></a>For those of you who do not know what <a title="OOMA VOIP" href="http://ooma.com" target="_blank">ooma</a> is, its a VOIP hardware solution which gives you a dedicated phone line and &#8220;unlimited&#8221; calling to the US, all you need is an internet connection. I got my ooma core from radio shack for $199 and will never have to pay phone bills again (ooma core does not have an annual regulatory fee, while the ooma telo, and ooma hub only, does). Ooma makes its money off the upfront cost of hardware, and also by selling its ooma premier service. This service gives you cool features, but features that asterisk allows you to do and with more customization (and maybe for a little more effort). The Linksys SPA-3102 is an ethernet voice gateway with FXO port that has the added functionality of routing, and it also acts as an ATA to allow your regular analog phone to connect with a VOIP provider using the FXS port.</p>
<p style="text-align: left;"><strong><span style="text-decoration: underline;">Ooma hub wiring setup</span></strong></p>
<p style="text-align: left;">The Ooma hub can be hooked up to your existing phone lines in several ways. Currently, I have my ooma phone port plugged directly into my existing home wiring jack with a splitter which also has my fax/answering machine plugged into it. This configuration allows all the phone jacks in my home to access the ooma hub without the use of the ooma scout. This is essentially the same wiring configuration as one receiving phone service from the telco. However, you lose the instant second line feature you would otherwise be provided when using the ooma scout adapter. To connect the SPA-3102, just plug a phone cord from the Line port on the adapter to a jack in the wall, or if it is near the ooma hub, into a splitter which shares a line plugged into the Phone port on the Ooma hub (or directly into the hubs phone port without a splitter). If you are on a call using a phone plugged into my wiring configuration and dial out using asterisk through the Line port on the SPA, the adapter will report a 503 message to asterisk and stop the call from taking place and interrupting.</p>
<p style="text-align: left;">If one wants to make sure the line is not busy when receiving/making a call when using the ooma as a regular analog telephone line as well, another configuration one can use, is to hook up the ooma scout and connect it directly to the ooma hubs &#8217;wall&#8217; port via phone line. One would then connect a phone line from the SPA-3102 Line port to the scouts &#8217;wall&#8217; port. This enables the scout to communicate with the ooma hub and enables the instant second line feature should the first line be active when a call out from the asterisk box takes place.</p>
<p style="text-align: center;"><a href="http://www.adrianandgenese.com/blogger/wp-content/uploads/2010/04/linksys-31021.jpg"><img class="aligncenter size-medium wp-image-344" title="linksys-3102" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2010/04/linksys-31021-255x300.jpg" alt="" width="255" height="300" /></a></p>
<p><span style="text-decoration: underline;"><strong>Linksys SPA-3102 Configuration</strong></span></p>
<p><span style="text-decoration: underline;">SPA-3102 Remote Management for LAN Setup</span></p>
<p>The SPA-3102 has four interface ports in the rear, Internet, Ethernet, Phone, and Line. If you plug in a computer to the ethernet port via cable, it will provide your computer with an ip address with which you can then enter in the gateway address from an ipconfig and hit the spa3102 web gui. With this web gui, youll be able to configure the device. We dont want to have to plug in a cable each time to configure the device, so we will enable the web interface on the spa3102 when it is connected to the Internet port (with which it will receive a dhcp address handed out to it from your router currently on your network).</p>
<p style="padding: 2px 6px 4px 6px; color: #555555; background-color: #eeeeee; border: #dddddd 2px solid;">-Log into the webgui for the spa-3102 when you are connected to the ethernet port<br />
-Click on the admin and advanced links at the top right to get the elevated setup access<br />
-Goto &#8216;WAN Setup&#8217; Tab<br />
-Change &#8216;remote management&#8217; option to &#8216;yes&#8217;<br />
-Click the &#8216;submit all changes&#8217; button at the bottom.</p>
<p style="padding: 2px 6px 4px 6px; color: #555555; background-color: #eeeeee; border: #dddddd 2px solid;">-Connect your spa-3102 to your network via the internet port.<br />
-Log into your spa-3102 and look at the status screen with the computer still plugged into the ethernet port on spa3102. You will find the dhcp address the spa-3102 received from your router which is connected to the Internet port.<br />
-Disconnect your computer from the ethernet port on the spa-3102<br />
-Log into your 3102 via the dhcp address that it received from the internet port.</p>
<p><span style="text-decoration: underline;">SPA-3102 PSTN Line Setup:</span></p>
<p>Now we begin the configuration of the SPA to be used with asterisk. In this setup, I will not enable Line1 which makes the SPA-3102 an ATA adapter as well (allowing calls made to your voip provider to ring the analog phone connected to the PHONE port). In this setup, I just use the SPA as a gateway which allows me to make and receive calls (using the LINE port on the SPA) from any extension that is connected to my asterisk pbx. Under the LINE 1 tab in the SPA, ive set &#8221;Line enable&#8221; to no.</p>
<p>NOTE: When things are configured properly, and the PSTN Line is registering with asterisk, the LINE LED on the SPA will light up and remain lit (same with the Phone port if Line 1 is enabled). If things arent communicating correctly, the LED will not be lit (I have the spa registering to asterisk).</p>
<p style="padding: 2px 6px 4px 6px; color: #555555; background-color: #eeeeee; border: #dddddd 2px solid;">-Log into the SPA web gui<br />
-Click on the admin and advanced links at the top right to get the elevated setup access<br />
-Click the &#8216;PSTN Line&#8217; tab</p>
<div id="attachment_322" class="wp-caption aligncenter" style="width: 713px"><a href="http://www.adrianandgenese.com/blogger/wp-content/uploads/2010/04/1.jpg"><img class="size-full wp-image-322  " title="Proxy Information" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2010/04/1.jpg" alt="Proxy information" width="703" height="259" /></a><p class="wp-caption-text">Where you enter in your asterisk server IP info and whether or not it will register to asterisk.</p></div>
<p><span style="text-decoration: underline;">Proxy and Registration</span></p>
<p style="padding: 2px 6px 4px 6px; color: #555555; background-color: #eeeeee; border: #dddddd 2px solid;">-<strong>Proxy</strong> &#8211; Change 192.168.1.77 to the ip address asterisk is on your network. I put the ip in the outbound proxy, its not necessary as &#8216;Use Outbound Proxy&#8217; is set to &#8216;no.&#8217;<br />
-<strong>Register</strong> &#8211; &#8216;yes&#8217;<br />
-<strong>Make call without reg and Ans call without reg</strong> &#8211; Change options to &#8216;no&#8217;</p>
<p><span style="text-decoration: underline;">Subscriber Information</span></p>
<p style="padding: 2px 6px 4px 6px; color: #555555; background-color: #eeeeee; border: #dddddd 2px solid;">-<strong>Display name</strong> &#8211; can be anything<br />
-<strong>User Id &#8211; </strong>can be anything but for simplicity sakes when configuring asterisk, use a name without spaces<br />
-<strong>Password</strong> - can be anything</p>
<div id="attachment_324" class="wp-caption aligncenter" style="width: 734px"><a href="http://www.adrianandgenese.com/blogger/wp-content/uploads/2010/04/2.jpg"><img class="size-full wp-image-324" title="Dialplan stuff" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2010/04/2.jpg" alt="Dialplan stuff" width="724" height="424" /></a><p class="wp-caption-text">This is where you enter dialplan information, and options to configure sending calls from asterisk to the pstn port.</p></div>
<p><span style="text-decoration: underline;">Dial Plans</span></p>
<p>This section of dial plans are accessed by the entire page of the SPA PSTN Line tab. There are eight DP fields because it allows you to create different dial plan options to be used throughout this tab. Voip-to-PSTN, and PSTN-to-VOIP sections both reference these dialplan fields as &#8216;DP.&#8217; As you can see in my screenshot, Dial Plan 2: is filled out. In my setup, this command tells the SPA that any calls answered after the PSTN-to-VOIP gateway option answer delay is reached, to be sent to the S extension in asterisk. You may enter any extension such as (S0&lt;:102@asteriskIP&gt;).</p>
<p><span style="text-decoration: underline;">VOIP-to-PSTN Gateway Setup</span></p>
<p style="padding: 2px 6px 4px 6px; color: #555555; background-color: #eeeeee; border: #dddddd 2px solid;">-<strong>VOIP-to-PSTN gateway enable</strong> &#8211; &#8216;yes&#8217;<br />
-<strong>Line caller DP</strong> &#8211; set to &#8217;1&#8242; (this option references Dial Plan 1:  and the default (xx.). This just passes anything sent from asterisk to the SPA without any change)<br />
-<strong>One Stage Dialing</strong> &#8211; set to &#8216;yes.&#8217; If set to no, then the SPA uses 2 stage dialing, and it screws up asterisks calling out to the Line port.</p>
<div id="attachment_328" class="wp-caption aligncenter" style="width: 738px"><a href="http://www.adrianandgenese.com/blogger/wp-content/uploads/2010/04/31.jpg"><img class="size-full wp-image-328 " title="gateway" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2010/04/31.jpg" alt="voip spa-3102" width="728" height="430" /></a><p class="wp-caption-text">The PSTN-to-VOIP configuration, where you configure how to send calls from the Line port (pstn) to asterisk</p></div>
<p><span style="text-decoration: underline;">PSTN-to-VOIP Gateway Setup</span></p>
<p style="padding: 2px 6px 4px 6px; color: #555555; background-color: #eeeeee; border: #dddddd 2px solid;">-<strong>PSTN-to-VOIP Gateway enable</strong> - &#8217;yes&#8217; (in the screenshot above, i have it set to &#8216;no&#8217; as I do not want the spa to pick up the line and forward to my extension <a href="mailto:s@192.168.1.77">s@192.168.1.77</a> as defined in Dial Plan 2:. This essentially turns off any calls going to my asterisk system. I have my asterisk system setup to forward the call from the pstn to my cell phone when this is turned on, and only used while traveling far away from home. When I am not traveling I have a fax/answering machine on my ooma and want it to pick up instead, so it is disabled.</p>
<p>If you are in an asterisk/voip only configuration and want all calls to be routed straight to your asterisk system without worrying about any analog answering machines or fax picking up/ringing, then set to &#8216;yes&#8217;</p>
<p style="padding: 2px 6px 4px 6px; color: #555555; background-color: #eeeeee; border: #dddddd 2px solid;">-<strong>PSTN CID For VoIP CID</strong> &#8211; set to &#8216;yes&#8217; if you want callerid to be passed onto your asterisk system<br />
-<strong>PSTN Caller Default DP</strong> &#8211; set to &#8217;2&#8242; as in my Dial Plan 2: it allows calls to be routed from Line port (pstn), to extension S on my asterisk pbx</p>
<p><span style="text-decoration: underline;">FXO timer values (sec)</span></p>
<p style="padding: 2px 6px 4px 6px; color: #555555; background-color: #eeeeee; border: #dddddd 2px solid;">-<strong>PSTN answer delay </strong>- this option is to change the length of time the SPA-3102 picks up the call coming in from the PSTN and forwards it to your asterisk system. The default is 16 which allows the line to ring for a little too long before sending it off to Asterisk. A number of 3-5 should be good for callerid to be gathered and sent along with the call to asterisk.<br />
-<strong>PSTN Dial Digit Len</strong> &#8211; set to .1/.1 otherwise calls may take longer to start connecting. This essentially shortens the speed at which digits are dialed at. You dont want digits to take forever to be entered do you?</p>
<p>Awesome. You are now finished configuring your SPA-3102 to act as a SIP trunk on the SPA-3102 side. All you need from here to configure asterisk is the username and password you specified in the Proxy and Registration section. Now on to the Asterisk side of things&#8230;</p>
<p><span style="text-decoration: underline;"><strong>Asterisk Configuration</strong></span></p>
<p>This setup is for asterisk 1.4. I found that many guides found on the internet do not seem to work for my setup. I was not able to set my SPA as a peer, but had to configure my 3102 to register to asterisk as an extension in order for everything to work correctly. I also found many internet guides had sip trunk settings which were no longer used for version 1.4. Now lets tell asterisk theres a device to communicate with in the Users.conf (for you it might be Sip.conf) file in the asterisk directory.</p>
<p><span style="text-decoration: underline;">Users.conf or Sip.conf</span></p>
<div id="attachment_330" class="wp-caption aligncenter" style="width: 497px"><a href="http://www.adrianandgenese.com/blogger/wp-content/uploads/2010/04/4.jpg"><img class="size-full wp-image-330 " title="Users.conf" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2010/04/4.jpg" alt="" width="487" height="217" /></a><p class="wp-caption-text">Users.conf or sip.conf configuration in asterisk. this command sets up the SPA to be used as an extension from which calls can be made and received.</p></div>
<p style="padding: 2px 6px 4px 6px; color: #555555; background-color: #eeeeee; border: #dddddd 2px solid;">-<strong>[pstn] &#8211; </strong>Put the username you specified on the SPA-3102 in between brackets. In my example above, replace [pstn] with your username. The tricky part here is that the name between brackets is your username, even if you specify username = as something else, asterisk will not allow your 3102 to register with it.<br />
-<strong>type = friend </strong>- Sets as an extension which can be dialed out from (<a title="SIP Trunk 411" href="http://www.trixbox.org/forums/trixbox-forums/trunks/sip-trunk-peer-details-type-peer-vs-type-friend" target="_blank">see here</a> for more info)<br />
-<strong>port</strong> &#8211; I saw several guides saying to put in port = 5061, this is unecessary as this configuration automatically connects to this port. You may need this if it was set to type=peer, but I was never able to get it to work as one.<br />
-<strong>disallow</strong> &#8211; This configuration also disallows any voice codec other than ulaw, alaw, and gsm as the NSLU2 does not have enough horsepower to transcode the higher compression the other codecs use.<br />
-<strong>context = pstn-in</strong> &#8211; this is the label for where incoming calls are sent to in my extensions.conf file.<br />
-<strong>host = dynamic</strong> &#8211; as the spa is registering to asterisk, the ip address of the 3102 does not need to be specified here and will be obtained during the spa-3102 device registration. I could change the ip address of the spa-3102 on the unit and it would still register with asterisk.<br />
-<strong>secret = passwd </strong>- replace &#8216;passwd&#8217; with the password you entered in the spa-3102</p>
<p>Other than that, this is all thats needed for the PSTN Line to register to asterisk and send and receive calls.</p>
<p><span style="text-decoration: underline;">Extensions.conf</span></p>
<p>Extensions.conf is the the file which tells asterisk how to handle incoming/outgoing phone calls.<br />
Lets configure outgoing calls first, as it requires very little configuration. Below is all i need to put into my default context in order to make outgoing calls out of the Line port (we previously specified &#8216;pstn&#8217; as a trunk/user in users.conf/sip.conf) on my SPA-3102. Below, the _XXXX. tells asterisk that any number dialed with more than 4 digits should go out through the SPA (I have 4 digit extension numbers configured). Without this configuration, asterisk would try to place a call to an internal extension number, only to find that the extension (the phone number dialed) did not exist.</p>
<div id="attachment_364" class="wp-caption aligncenter" style="width: 456px"><a href="http://www.adrianandgenese.com/blogger/wp-content/uploads/2010/04/6.jpg"><img class="size-full wp-image-364 " title="outgoing extension" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2010/04/6.jpg" alt="Outgoing to pstn" width="446" height="74" /></a><p class="wp-caption-text">Simple outgoing dialplan used in the default context in my extensions.conf</p></div>
<p style="text-align: left;">In my users.conf (maybe your sip.conf) file, I had the pstn user (pstn is the username specified in the spa3102) use context pstn-in as the label to goto which contains the code for how to handle the calls coming in from the Line port or PSTN.</p>
<div id="attachment_332" class="wp-caption aligncenter" style="width: 500px"><a href="http://www.adrianandgenese.com/blogger/wp-content/uploads/2010/04/5.jpg"><img class="size-full wp-image-332 " title="extensions.conf" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2010/04/5.jpg" alt="extensions.conf" width="490" height="112" /></a><p class="wp-caption-text">Extensions.conf tells asterisk how to handle a call. pstn-in is the context defined in my users.conf/sip.conf</p></div>
<p style="text-align: left;">In my spa-3102, my Dial Plan 2: had code (S0&lt;:s@192.168.1.77&gt;). This essentially sent the incoming call from the PSTN Line to the S extension in asterisk. Asterisk knows that the call is coming from the pstn user defined in the users.conf/sip.conf file, and found that context pstn-in was specified. It then initiated the commands under the pstn-in section. The commands listed above, answers the call, plays a sound file that nobody is available to take the call, then says &#8220;call-forwarding&#8221; and proceeds to ring my cell phone number (8001112222 is the cell number, change it as desired. proxy01.sipphone.com is my gizmo account which forwards it out through a google voice DID number).</p>
<p style="text-align: left;">Alternatively, if you just want to have the incoming pstn call sent to several or all extensions on your asterisk system, you can substitute my &#8216;Dial&#8217; line with the one below and change my extension numbers to match yours (where 6000, 6100, 6200 are my extensions/phones registered with asterisk):</p>
<p style="text-align: left;">exten = s,n,Dial(SIP/6000&amp;SIP/6100&amp;SIP/6200,20)</p>
<p style="text-align: left;">Thats all there is to it, good luck!</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=How+to+setup+Asterisk+with+Ooma+voip+using+a+Linksys+SPA-3102+http%3A%2F%2Fis.gd%2FIt5Kij" title="Post to Twitter"><img class="nothumb" src="http://www.adrianandgenese.com/blogger/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro3.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.adrianandgenese.com/blogger/2010/04/23/how-to-setup-asterisk-with-ooma-voip-and-a-linksys-spa-3102/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>How to Upload/Download Ringtones and Wallpapers to your LG VX5500 using Bitpim and Bluetooth</title>
		<link>http://www.adrianandgenese.com/blogger/2009/01/28/uploaddownload-ringtones-and-wallpapers-to-your-lg-vx5500-using-bitpim-and-bluetooth/</link>
		<comments>http://www.adrianandgenese.com/blogger/2009/01/28/uploaddownload-ringtones-and-wallpapers-to-your-lg-vx5500-using-bitpim-and-bluetooth/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 21:36:06 +0000</pubDate>
		<dc:creator>Blog Master</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[bluetooth]]></category>
		<category><![CDATA[ringtones]]></category>
		<category><![CDATA[transfer]]></category>
		<category><![CDATA[verizon]]></category>
		<category><![CDATA[vx5500]]></category>
		<category><![CDATA[wallpaper]]></category>

		<guid isPermaLink="false">http://www.adrianandgenese.com/blogger/?p=189</guid>
		<description><![CDATA[How to transfer ringtones and wallpapers to your vx5500 or compatible cell phone for free using bluetooth and Bitpim. This tutorial shows you how to download and upload these to your cell phone.]]></description>
			<content:encoded><![CDATA[<div class="mceTemp mceIEcenter" style="text-align: left;">I admit, although I consider myself technically savvy, I havent delved into the use of bluetooth enabled devices till just recently. After my old cell phone was destroyed by my wife, I &#8220;upgraded&#8221; to a new phone, the LG VX5500. I liked it because of its simplicity, light weight, camera, bluetooth (what an intriguing option), and size. It was not unfortunately, equipped with a mini-sd card slot to allow for saving of pictures, music and the likes. But this began my adventure in using bluetooth as a means for transferring wallpapers, ringtones, and hopefully other information such as my phone book from my vx5500 to and from my computer.</div>
<div id="attachment_200" class="wp-caption aligncenter" style="width: 510px"><img class="size-full wp-image-200 " title="LG VX5500" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2009/01/img_0155.jpg" alt="New LG VX5500" width="500" height="375" /><p class="wp-caption-text">New LG VX5500</p></div>
<p><strong>Software.</strong> I know I needed to get some sort of software to interface the phone to the computer, and after some googling, I found Bitpim (<a href="http://www.bitpim.org" target="_blank">www.bitpim.org</a>). Bitpim is a FREE and open source software (free was the magic word!) software that does the same thing (although less elegantly) that other products that cost about $30 do. It supports many phones(*1), and is continually upgraded. Did I also mention its FREE? After one downloads and installs Bitpim, all one needs is the interface to communicate with the phone and in my case, this was either a USB cable or bluetooth adapter.</p>
<div id="attachment_201" class="wp-caption aligncenter" style="width: 510px"><img class="size-full wp-image-201 " title="USB Bluetooth Adapter from Ebay" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2009/01/img_0156.jpg" alt="The teeny tiny bluetooth adapter from Ebay" width="500" height="375" /><p class="wp-caption-text">The teeny tiny bluetooth adapter from Ebay</p></div>
<p><strong>Hardware.</strong> I realized that my laptop did not come equipped with a Bluetooth adapter and buying a USB cable specifically for this phone didnt make much sense as I wouldnt want to have to purchase another cable in the future for any new phone I upgraded to later. I quickly found a good option from ebay. Its a super tiny bluetooth module supported by Windows Vista. It cost less than $5 with free shipping, and arrived in ten days (from Hong Kong). Windows picked it right up and I was now bluetooth enabled. So next thing I needed to do was to get Bitpim to work with the LG Vx5500&#8230;heres what I did:</p>
<p>1. Pair your phone with the computer using bluetooth (you will have to put your phone in discovery mode, and follow the prompts given to you by windows after clicking &#8216;add&#8217; in the bluetooth properties window). After this is done, click on the COM ports tab and view the com port your phone is set to.</p>
<div id="attachment_190" class="wp-caption aligncenter" style="width: 387px"><img class="size-full wp-image-190 " title="Windows Vista Bluetooth Configuration Screen" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2009/01/btooth.jpg" alt="My phone is the VX5500, and is connected to COM16" width="377" height="454" /><p class="wp-caption-text">My phone is the VX5500, and is connected to COM16</p></div>
<p>2. Install, download, and run Bitpim (Bitpim does not currently support the VX5500 natively, but by choosing a phone that has been supported some of the features like browsing the filesystem work).</p>
<p>3. Click on the icon with the screwdriver and wrench (settings button).</p>
<div id="attachment_194" class="wp-caption aligncenter" style="width: 547px"><img class="size-full wp-image-194 " title="Bitpim settings screen to configure the vx5500" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2009/01/settingsbitpim.jpg" alt="Bitpims settings window" width="537" height="459" /><p class="wp-caption-text">Bitpims settings window</p></div>
<ul>
<li>Select LG-VX8560 (chocolate 3) &lt;&#8212;important.</li>
<li>Then click on the browse button located next to the COM Port section (in my example, im using COM16, the port my phone is connected to).</li>
<li>After the window refreshes, select the COM port which was associated to your phone in the previous bluetooth settings window. Click ok and ok to exit out of the settings window.</li>
</ul>
<p>**NOTE: Bitpim will not autodetect your phone. But by manually specifying the settings listed above, Bitpim will connect and communicate with your phone.**</p>
<p>4. Now you must use the filesystem view/pane to reliably transfer your photos and ringtones. To enable this view, click on the View menu at the top of the window, and put a checkmark next to the View Filesystem option. You should now be able to see the Filesystem Pane/Window.</p>
<div id="attachment_191" class="wp-caption aligncenter" style="width: 454px"><img class="size-full wp-image-191 " title="Bitpim filesystem of the LG-VX5500" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2009/01/filesystem.jpg" alt="After enabling filesystem view, and expanding the directory tree" width="444" height="545" /><p class="wp-caption-text">After enabling filesystem view, and expanding the directory tree</p></div>
<p>5. It takes a few seconds to get the directory listing after expanding the / folder. Your ringtones will be placed in the 10889/Ringtones folder shown above, and your pictures/wallpapers will be placed in the 10888 folder listed below.</p>
<div id="attachment_192" class="wp-caption aligncenter" style="width: 591px"><img class="size-full wp-image-192 " title="Bitpim filesystem folder for the vx5500 wallpapers" src="http://www.adrianandgenese.com/blogger/wp-content/uploads/2009/01/wallpaper.jpg" alt="wallpaper/photo directory" width="581" height="557" /><p class="wp-caption-text">wallpaper/photo directory</p></div>
<p>6.  Now that you have the locations for your ringtones and wallpapers, here are the guidelines to put them onto the phone.</p>
<ul>
<li>Ringtones can be in .mp3 format, but NEED to be renamed to xxx.aac (song.mp3 &#8211;&gt; song.aac), then added by right clicking on the pane to the right of the filesystem tree, and clicking on New File&#8230; Select your .aac file and upload it. After uploading your files, you must reboot the phone for the file to be seen by the phone. Either power cycle the phone, or right click on the viewing pane and click &#8216;reboot phone.&#8217;</li>
</ul>
<p>*NOTE* To make the ringtones, I didnt bother with any sound editing software, and just went to <a href="http://makeownringtone.com/" target="_blank">http://makeownringtone.com/</a> and uploaded an mp3. I then used its tools to shorten the song length, and encode it into a lower bitrate, and have it saved as an .aac file. Easy as pie. highly recommend it! Oh yes, try to keep the ringtone to less than 30 seconds&#8230;</p>
<ul>
<li>Main wallpapers for the LG VX5500 use a pixel dimension of 176 x 220, and front lcd image dimensions are 96 x 64 pixels. Upload these images in the same manner as uploading ringtones to your phone, but using the 10888 directory (you might even see other photos you have taken listed in that directory). Reboot the phone to have the changes take place on the phone itself.</li>
</ul>
<p>*NOTE* To make the wallpaper, I didnt fuss with any image software. I just took a picture and uploaded it to <a href="http://mobopic.com/upload/eng" target="_blank">http://mobopic.com/upload/eng</a>. It allows you to zoom, crop, and just enter in the size of the wallpaper and it does it all for you. Fast, easy, and FREE!</p>
<p>So far, the only thing I want to be able to do now, is to save my phone contact list to my computer. I wasnt able to figure out how to do that, but im sure bitpim will support it in the future. Until then, im not too worried about that as im doing everything that I wanted to do, without the Verizon wireless charge. Once again, I showed my wife, and she made me put ringtones on her phone! Im a hero!</p>
<p><span id="more-189"></span></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>*1 Phones bitpim currently supports: LG-AX8600, LG-C2000, LG-G4015, LG-LX570 (Musiq), LG-PM225, LG-VX10000 (Voyager), LG-VX3200, LG-VX4400, LG-VX4500, LG-VX4650, LG-VX5200, LG-VX5300, LG-VX6000, LG-VX6100, LG-VX7000, LG-VX8000, LG-VX8100, LG-VX8300, LG-VX8500 (Chocolate), LG-VX8560 (Chocolate 3), LG-VX8600, LG-VX8610 (Decoy), LG-VX8700, LG-VX8800 (Venus), LG-VX9100 (enV 2), LG-VX9700 (Dare), LG-VX9800, LG-VX9900 (enV), E815, E815m, K1m, V325, V325M, V3c, V3cm, V3m, V3mM, V710, V710m, SCH-A870, SCH-A930, SCH-A950, SCH-U470, SCH-U740, SPH-M300MEDIA, SPH-M300PIM, VM4050, LG-UX5000, SPH-A460, SPH-A620 (VGA1000), SPH-A660 (VI660), SPH-A680, SPH-A740, SPH-A840 (Telus), SPH-A840, SPH-A900, SPH-N400, SCP-6600 (Katana), SCP-6650 (Katana-II), SCP-7050, SCP-8400, MM-5600, MM-7400, MM-7500, MM-8300, PM-8200, RL-4920, RL-4930, SCP-200, SCP-2400, SCP-3100, SCP-3200, SCP-4900, SCP-5300, SCP-5400, SCP-5500, SCP-7200, SCP-7300, SCP-8100 (Bell), SCP-8100, VI-2300, LG-LG6190, LG-LG6200, LG-LG8100, LG-LX5450, LG-LX5550, LG-PM325, LG-TM520, LG-VI125, LG-VI5225, LG-V 10, LG-VX4600, LG-VX5400, LG-VX8350, LG-VX8550 (Chocolate 2), LG-VX9400, SCH-A310, SCH-A650, SCH-A670, SK6100, SPH-N200.</p>
<p>I learned much of this information from searching through forums located at <a href="http://www.howardforums.com/" target="_blank">www.howardforums.com/</a>. Unfortunately, its scattered and sometimes difficult to understand for a newbie. Hence the blog post.</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=How+to+Upload%2FDownload+Ringtones+and+Wallpapers+to+your+LG+VX5500+using+Bitpim+and+Bluetooth+http%3A%2F%2Fis.gd%2FiK5U5A" title="Post to Twitter"><img class="nothumb" src="http://www.adrianandgenese.com/blogger/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro3.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.adrianandgenese.com/blogger/2009/01/28/uploaddownload-ringtones-and-wallpapers-to-your-lg-vx5500-using-bitpim-and-bluetooth/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>

