<?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>Linux, windows, asterisk, vmware &#187; asterisk</title>
	<atom:link href="http://blog.simplic8.com/category/asterisk/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.simplic8.com</link>
	<description></description>
	<lastBuildDate>Tue, 08 Jun 2010 02:00:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>VOIP &amp; Lynksys Router iiNet Drop outs</title>
		<link>http://blog.simplic8.com/2010/01/06/voip-lynksys-router-iinet-drop-outs/</link>
		<comments>http://blog.simplic8.com/2010/01/06/voip-lynksys-router-iinet-drop-outs/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 05:22:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asterisk]]></category>

		<guid isPermaLink="false">http://blog.simplic8.com/?p=187</guid>
		<description><![CDATA[A customer of mine was having issues with VOIP connection dropping out all the time, specifically having to reset the ATA device in order to make a phone call using iTalk or iiNet Voip included with the Naked DSL package.
so jumped into the router settings and changed the connection to the following
PPOE
Multplexing LLC
Mode G.DMT
Note, you [...]]]></description>
			<content:encoded><![CDATA[<p>A customer of mine was having issues with VOIP connection dropping out all the time, specifically having to reset the ATA device in order to make a phone call using iTalk or iiNet Voip included with the Naked DSL package.</p>
<p>so jumped into the router settings and changed the connection to the following</p>
<p>PPOE<br />
Multplexing LLC<br />
Mode G.DMT</p>
<p>Note, you will have to have the username and password to change from PPOA to PPOE. This seems to have fixed the iiNet voip drop out issues.</p>
<img src="http://blog.simplic8.com/?ak_action=api_record_view&id=187&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.simplic8.com/2010/01/06/voip-lynksys-router-iinet-drop-outs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trixbox, Asterisk &#8211; External sip clients, no audio</title>
		<link>http://blog.simplic8.com/2009/04/06/trixbox-asterisk-external-sip-clients-no-audio/</link>
		<comments>http://blog.simplic8.com/2009/04/06/trixbox-asterisk-external-sip-clients-no-audio/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 03:32:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asterisk]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[sip]]></category>
		<category><![CDATA[trixbox]]></category>

		<guid isPermaLink="false">http://blog.simplic8.com/?p=19</guid>
		<description><![CDATA[When trying to connect an external sip client to my home Asterisk (Trixbox) after setting up the extension with nat=yes and qualify=yes I could connect and register to the machine, you can check this by using ‘sip show peers‘ from the asterisk CLI
To resolve this issue, I manually edited the sip_nat.conf file, below is my [...]]]></description>
			<content:encoded><![CDATA[<p>When trying to connect an external sip client to my home Asterisk (Trixbox) after setting up the extension with <strong>nat=yes </strong>and <strong>qualify=yes</strong> I could connect and register to the machine, you can check this by using ‘<strong>sip show peers</strong>‘ from the asterisk CLI</p>
<p>To resolve this issue, I manually edited the sip_nat.conf file, below is my configuration.</p>
<p>nat=yes<br />
externhost=XXXXXXX.dyndns.org<br />
localnet=192.168.1.0/255.255.255.0<br />
externrefresh=120</p>
<p>If you have a static ip, you can use <strong>externip=xxx.xxx.x.xx</strong> instead of <strong>externhost</strong></p>
<p><strong> </strong></p>
<p>Also, in my sip.conf file I have the following.</p>
<p>bindport=5060 ; UDP Port to bind to<br />
bindaddr=0.0.0.0 ; (0.0.0.0 binds to all)<br />
rtpstart=10000<br />
rtpend=20000</p>
<p>You can edit these files via the config editor built into <a title="Trixbox" href="http://www.trixbox.org/" target="_blank">trixbox</a>, or from an SSH terminal using <a title="Putty" href="http://www.chiark.greenend.org.uk/%7Esgtatham/putty/" target="_blank">Putty</a> with the easy to use<a title="Nano" href="http://www.gentoo.org/doc/en/nano-basics-guide.xml" target="_blank"> nano</a> text editor</p>
<p>You may also need to point the following ports to your asterisk / trixbox from your router</p>
<p>SIP port: 5060<br />
RTP Ports: 10000 &#8211; 20000</p>
<img src="http://blog.simplic8.com/?ak_action=api_record_view&id=19&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.simplic8.com/2009/04/06/trixbox-asterisk-external-sip-clients-no-audio/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>iiNet asterisk configuration, trixbox</title>
		<link>http://blog.simplic8.com/2009/04/06/iinet-asterisk-configuration-trixbox/</link>
		<comments>http://blog.simplic8.com/2009/04/06/iinet-asterisk-configuration-trixbox/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 03:31:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asterisk]]></category>
		<category><![CDATA[iinet]]></category>
		<category><![CDATA[trixbox]]></category>

		<guid isPermaLink="false">http://blog.simplic8.com/?p=17</guid>
		<description><![CDATA[
I had alot of trouble trying to find updated information in regards to Asterisk configuration when connecting to iiNet, i’m using Naked DSL with iiNet, the package comes with a free voip service *claps*
Here is my trunk configuration for asterisk.
Sip Trunk
 
Outbound Caller ID:07XXXXXXXX (Your iiNet number)
Outgoing Settings
Trunk Name: iiNetOut
Peer Details:
 
disallow=all
allow=alaw&#38;ulaw
canreinvite=no
context=from-trunk
fromdomain=iinetphone.iinet.net.au
fromuser=07XXXXXXXX (Your iiNet number)
host=203.55.228.194
insecure=very
dtmfmode=auto
nat=no
pedantic=no
secret=XXXXXXX [...]]]></description>
			<content:encoded><![CDATA[<div class="snap_preview">
<p>I had alot of trouble trying to find updated information in regards to Asterisk configuration when connecting to iiNet, i’m using Naked DSL with iiNet, the package comes with a free voip service *claps*</p>
<p>Here is my trunk configuration for asterisk.</p>
<p><strong>Sip Trunk</strong></p>
<p><strong> </strong></p>
<p><strong>Outbound Caller ID</strong>:07XXXXXXXX (Your iiNet number)</p>
<h4><strong>Outgoing Settings</strong></h4>
<p><strong>Trunk Name:</strong> iiNetOut</p>
<p><strong>Peer Details:</strong></p>
<p><strong> </strong></p>
<p>disallow=all<br />
allow=alaw&amp;ulaw<br />
canreinvite=no<br />
context=from-trunk<br />
fromdomain=iinetphone.iinet.net.au<br />
fromuser=07XXXXXXXX (Your iiNet number)<br />
host=203.55.228.194<br />
insecure=very<br />
dtmfmode=auto<br />
nat=no<br />
pedantic=no<br />
secret=XXXXXXX (Your iiNet voip password)<br />
type=friend<br />
registersip=yes<br />
username=07XXXXXXXX (Your iiNet number)</p>
<h4><strong>Incoming Settings</strong></h4>
<p><strong>User Context</strong>: iiNetin</p>
<p><strong>User Details:</strong></p>
<p><strong> </strong></p>
<p>canreinvite=no<br />
context=from-trunk<br />
fromuser=07XXXXXXXX (Your iiNet number)<br />
host=203.55.228.194<br />
insecure=very<br />
secret=XXXXXXX (Your iiNet voip password)<br />
type=friend<br />
username=07XXXXXXXX (Your iiNet number)<br />
qualify=yes<br />
nat=no</p>
<p><strong>Registration String:</strong></p>
<p>07XXXXXXXX@iinetphone.iinet.net.au:voippassword:07XXXXXXXX@iiNetOut/07XXXXXXXX</p></div>
<img src="http://blog.simplic8.com/?ak_action=api_record_view&id=17&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.simplic8.com/2009/04/06/iinet-asterisk-configuration-trixbox/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Nokia Sip Client Settings &#8211; Asterisk, trixbox</title>
		<link>http://blog.simplic8.com/2009/04/06/nokia-sip-client-settings-asterisk-trixbox/</link>
		<comments>http://blog.simplic8.com/2009/04/06/nokia-sip-client-settings-asterisk-trixbox/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 03:30:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asterisk]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[sip]]></category>
		<category><![CDATA[trixbox]]></category>

		<guid isPermaLink="false">http://blog.simplic8.com/?p=13</guid>
		<description><![CDATA[
Nokia, has very limited information and support in regards to the sip client, asterisk and nokia phones ‘took hours’ to figure out!
So, here is a working configuration, tested with Nokia 6100 Navigator and Nokia N95
 
Got into the Menu -&#62; settings -&#62; Phone Settings &#8211; &#62; Connection -&#62; SIP settings
 
Profile Name: Your desired profile [...]]]></description>
			<content:encoded><![CDATA[<div class="snap_preview">
<p><strong>Nokia</strong>, has very limited information and support in regards to the sip client, asterisk and nokia phones ‘took hours’ to figure out!</p>
<p>So, here is a working configuration, tested with <strong>Nokia 6100 Navigator</strong> and <strong>Nokia N95</strong></p>
<p><strong> </strong></p>
<p>Got into the <strong>Menu</strong> -&gt; <strong>settings</strong> -&gt; <strong>Phone Settings</strong> &#8211; &gt; <strong>Connection</strong> -&gt;<strong> SIP settings</strong></p>
<p><strong> </strong></p>
<p>Profile Name: <strong>Your desired profile name</strong><br />
Service Profile: <strong>IETF</strong><br />
Default Access Point: Your service provider access point, in my case ‘<strong>Planet 3</strong>‘<br />
Public user name:<strong> sip:206@domain.com</strong></p>
<p><strong> </strong></p>
<p><em>Public username is in the format ’sip:ext@ip/domain’ ext is the extension setup on your asterisk server, the IP is the public IP of your asterisk server, if you do not have a static IP, use dyndns.org service.</em></p>
<p><em> </em></p>
<p>Use Compression: <strong>No</strong><br />
Registration: <strong>When needed</strong></p>
<p><strong> </strong></p>
<p><em>You can set this to ‘<strong>Always On</strong>‘ if you want your sip client ready when you are </em></p>
<p><em> </em></p>
<p>Use security: <strong>No</strong></p>
<p><strong> </strong></p>
<p><strong>Proxy server</strong></p>
<p><strong> </strong></p>
<p>Proxy server address: <strong>sip:domain/ip</strong><br />
Realm: <strong>asterisk</strong><br />
Username: <strong>ext</strong> <em>‘Asterisk extention’<br />
</em>Password:<strong> pass</strong><em> ‘Asterisk extentsion password’<br />
</em>Allow loose routing: <strong>No<br />
</strong>Transport type: <strong>UDP<br />
</strong>Port: <strong>5060</strong></p>
<p><strong><br />
</strong><strong>Registrar server</strong></p>
<p><strong> </strong></p>
<p>Registrar server address: <strong>sip:ip/domain</strong><br />
Realm: <strong>ip/domain</strong><br />
Username: <strong>ext</strong> <em>‘Asterisk extention’<br />
</em>Password:<strong> pass</strong><em> ‘Asterisk extentsion password’<br />
</em>Transport type: <strong>UDP<br />
</strong>Port: <strong>5060</strong></p>
<p>Have fun <img class="wp-smiley" src="http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif" alt=":-)" /> Hopefully everything will register for you with those settings, you will need to have the appropriate ports in your router and your sip_nat.conf and sip.conf configuration corrected as  outlined in the bottom of my previous post <a title="Trixbox - External sip clients, no audio" href="http://simplic8.wordpress.com/2009/01/14/trixbox-external-sip-clients-no-audio/" target="_blank">Trixbox &#8211; External sip clients, no audio </a></div>
<img src="http://blog.simplic8.com/?ak_action=api_record_view&id=13&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.simplic8.com/2009/04/06/nokia-sip-client-settings-asterisk-trixbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trixbox &#8211; externhost issue, Update sip_nat.conf externip automatically</title>
		<link>http://blog.simplic8.com/2009/04/06/trixbox-externhost-issue-update-sip_natconf-externip-automatically/</link>
		<comments>http://blog.simplic8.com/2009/04/06/trixbox-externhost-issue-update-sip_natconf-externip-automatically/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 03:20:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asterisk]]></category>
		<category><![CDATA[sip_nat.conf]]></category>
		<category><![CDATA[trixbox]]></category>

		<guid isPermaLink="false">http://blog.simplic8.com/?p=5</guid>
		<description><![CDATA[After having further issues with using externhost=yourdomain.dyndns.org in my sip_nat.conf file I decided to use the dynamic IP address and have trixbox update the sip_nat.conf file automatically using a bash script coupled with a cron job.
Your sip clients can still connect with the Dynamic DNS name without any troubles as long as the externip= is [...]]]></description>
			<content:encoded><![CDATA[<p class="snap_preview">After having further issues with using <strong>externhost=yourdomain.dyndns.or</strong>g in my <strong>sip_nat.conf</strong> file I decided to use the dynamic IP address and have <strong>trixbox</strong> update the<strong> sip_nat.conf </strong>file automatically using a bash script coupled with a cron job.</p>
<p class="snap_preview">Your sip clients can still connect with the Dynamic DNS name without any troubles as long as the<strong> externip=</strong> is the valid public IP.</p>
<p class="snap_preview">Please refer to my previous post <a title="Permanent Link to Trixbox - External sip clients, no audio" rel="bookmark" href="http://simplic8.wordpress.com/2009/01/14/trixbox-external-sip-clients-no-audio/" target="_blank">Trixbox &#8211; External sip clients, no audio</a> for additional information on how to setup your external sip clients.</p>
<p class="snap_preview">The process is as follows.</p>
<p class="snap_preview">1. Create a bash script<br />
2. Update crontab to include an hourly update check against the IP<br />
3. Sit back and relax <img class="wp-smiley" src="http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif" alt=":-)" /></p>
<p class="snap_preview">Log into your trixbox via SSH, once logged in issue the command: <strong>nano /root/update_dyndns.sh</strong></p>
<p class="snap_preview">Paste the below contents into your new file, you should only need to change the following two values</p>
<p class="snap_preview"><strong>localnet=</strong><br />
<strong>mask=</strong></p>
<p class="snap_preview"><strong>#interogates whatismyip.org to determine the outside IP of the</strong><br />
<strong> #!/bin/bash<br />
# Interogates whatismyip.org to determine the outside IP of the<br />
# machine and checks it against what it was at the last check.<br />
# Then it creates a sip_nat.conf file, moves it to the proper<br />
# directory and performs a sip reload.</strong></p>
<p class="snap_preview"><strong># set some variables<br />
localnet=”192.168.1.0″ #change this number to your local network subnet<br />
mask=”255.255.255.0″ #change this to your subnet mask<br />
nat=”yes” #Set the nat parameter if you like. If set to no<br />
#this line will not be included in the final file</strong></p>
<p class="snap_preview"><strong># change to a working directory. Make sure this directory exists<br />
cd /root/</strong></p>
<p class="snap_preview"><strong>rm -f index.html # Remove the last file</strong></p>
<p class="snap_preview"><strong>wget whatismyip.org</strong></p>
<p class="snap_preview"><strong>read newaddy &lt; “index.html”</strong></p>
<p class="snap_preview"><strong>read oldaddy &lt; “oldindex.html”</strong></p>
<p class="snap_preview"><strong>if [ $newaddy != $oldaddy ]<br />
then<br />
mv index.html oldindex.html<br />
echo “externip=$newaddy” &gt; sip_nat.conf<br />
echo “localnet=$localnet/$mask” &gt;&gt; sip_nat.conf</strong></p>
<p class="snap_preview"><strong>if [ $nat == "yes" ]<br />
then<br />
echo “nat=$nat” &gt;&gt; sip_nat.conf<br />
fi</strong></p>
<p class="snap_preview"><strong>chmod 775 sip_nat.conf<br />
chown asterisk:asterisk sip_nat.conf<br />
cp sip_nat.conf /etc/asterisk/sip_nat.conf<br />
asterisk -rx “sip reload”<br />
fi</strong></p>
<p class="snap_preview">#THE LAST THING IN YOUR NEW FILE SHOULD BE <strong>fi </strong>DO NOT PASTE ANYTHING ELSE BELOW.</p>
<p class="snap_preview">The above script was taken and modified from an unknown website, if it’s yours! thanks and let me know so I can link back to you.</p>
<p class="snap_preview">Once you have pasted the above contents into the new file, save the file <strong>ctrl+x</strong> then enter <strong>y</strong> then press <strong>enter</strong>.</p>
<p class="snap_preview">The first time you run the script it will fail with errors, here is the work around.</p>
<p class="snap_preview">1. run the script, command:<strong> /root/update_dyndns.sh</strong></p>
<p class="snap_preview">This will create an <strong>index.html</strong> file in the <strong>/root/</strong> dir.</p>
<p class="snap_preview">2. command: <strong>mv /root/index.html /root/oldindex.html</strong><br />
3. command: <strong>nano /root/oldindex.html</strong></p>
<p class="snap_preview">Edit one of the numbers where you see the IP address, this will force the script to notice the change and update your <strong>sip_nat.conf</strong> file for the first time!</p>
<p class="snap_preview">4. command: <strong>/root/update_dyndns.sh</strong></p>
<p class="snap_preview">You should see the following output.</p>
<p class="snap_preview">[trixbox1.localdomain ~]# <strong>/root/update_dyndns.sh</strong></p>
<p class="snap_preview">–16:57:50–  http://whatismyip.org/<br />
Resolving whatismyip.org… 75.147.234.41<br />
Connecting to whatismyip.org|75.147.234.41|:80… connected.<br />
HTTP request sent, awaiting response… 200 OK<br />
Length: unspecified [text/plain]<br />
Saving to: `index.html’</p>
<p class="snap_preview">[ &lt;=&gt;                                                                                                                  ] 13          –.-K/s   in 0s</p>
<p class="snap_preview">16:57:51 (147 KB/s) &#8211; `index.html’ saved [13]<br />
[trixbox1.localdomain ~]#</p>
<p class="snap_preview">If you have followed the above steps correctly, looking at your <strong>/etc/asterisk/sip_nat.conf</strong> file should look like this..</p>
<p class="snap_preview">[trixbox1.localdomain ~]# <strong>less /etc/asterisk/sip_nat.conf</strong></p>
<p class="snap_preview"><strong>externip=203.xx.xx.xx<br />
localnet=192.168.1.0/255.255.255.0<br />
nat=yes</strong></p>
<p class="snap_preview">Now comes the question? I don’t want to run this script each time I feel like updating the IP address, you want this to happen automatically, this is where the magic of cron jobs come into play *claps*, the basic concept is to run our script at a predefined time.</p>
<p class="snap_preview">Using the website below, I created a cron task that runs, every day, every hour of every month of every year, you can use the website link below in order to customize this to suite your own needs.</p>
<p class="snap_preview"><strong>58 * * * * /root/update_dyndns.sh &gt; /dev/null</strong></p>
<p class="snap_preview">information taken from <a title="http://www.htmlbasix.com/crontab.shtml" href="http://www.htmlbasix.com/crontab.shtml">http://www.htmlbasix.com/crontab.shtml</a></p>
<div class="snap_preview">
<ol>
<li>At the prompt, type in ‘<strong>crontab -e</strong>‘. This will open up your crontab file, or create a new one if it doesn’t exist.<br />
When this file opens, you will see other cron jobs listed in here, or if you haven’t any &#8211; you’ll see a bunch of lines with ‘~’ on them.</li>
<li>Use the cursor to go down until you can’t move the cursor down any more. This is where you start your new line. Press ‘<strong>o</strong>‘ to insert a new line.</li>
<li>Press ‘<strong>o</strong>‘ to insert a new line. If you want to edit a line, press ‘<strong>i</strong>‘.</li>
<li>Copy the code above, then right click into your SSH or telnet client to paste the above code in. This should all go in as a new line.</li>
<li>Press the ‘<strong>esc</strong>‘ key to exit out of edit mode.</li>
<li>To save the changes and exit, type the following in: <strong>ZZ</strong><br />
If you want to exit without saving changes, type in: <strong>:q!</strong></p>
<p><strong> </strong></li>
<li>Once you have exited, to view the new entry in your crontab file type <strong>crontab -l</strong> in at the prompt. This will list the contents of your crontab file.</li>
</ol>
</div>
<p>That’s it! everything is now done <img class="wp-smiley" src="http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif" alt=":-)" /></p>
<p>Comments or questions welcome.</p>
<p><a href="http://blog.simplic8.com/wp-content/uploads/update_dyndns.sh">Download the Bash Script here!</a><br/><br/> Or use the following command from your terminal</p>
<p>wget http://blog.simplic8.com/wp-content/uploads/update_dyndns.sh</p>
<img src="http://blog.simplic8.com/?ak_action=api_record_view&id=5&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.simplic8.com/2009/04/06/trixbox-externhost-issue-update-sip_natconf-externip-automatically/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
