<?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>An It-Slave in the digital saltmine &#187; asterisk</title>
	<atom:link href="http://www.it-slav.net/blogs/category/asterisk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.it-slav.net/blogs</link>
	<description>Another Blog from a Geek that has no life</description>
	<lastBuildDate>Fri, 02 Jul 2010 07:33:08 +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>Finally it has arrived, my HTC Desire</title>
		<link>http://www.it-slav.net/blogs/2010/04/30/finally-it-has-arrived-my-htc-desire/</link>
		<comments>http://www.it-slav.net/blogs/2010/04/30/finally-it-has-arrived-my-htc-desire/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 18:09:22 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Cool things]]></category>
		<category><![CDATA[Fon]]></category>
		<category><![CDATA[Geek stuff]]></category>
		<category><![CDATA[Hints]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[op5 Monitor]]></category>
		<category><![CDATA[htc desire]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1740</guid>
		<description><![CDATA[After waiting for several weeks, my new phone, a HTC Desire has finally arrived. I have been a heavy cellphone user since started working as a Tivoli consultant in -98. I bought my first cellphone -94 and have had several so called smart phones both from Nokia and Ericsson.
&#160;
For the first time I felt that [...]]]></description>
			<content:encoded><![CDATA[<p>After waiting for several weeks, my new phone, a HTC Desire has finally arrived. I have been a heavy cellphone user since started working as a Tivoli consultant in -98. I bought my first cellphone -94 and have had several so called smart phones both from Nokia and Ericsson.</p>
<p>&nbsp;</p>
<p>For the first time I felt that this is more than a phone, for the first time calender integration works, for the first time I can use the builtin GPS, for the first time accessing the web with a phone works, for the first time downloaded software really works.</p>
<p>&nbsp;<span id="more-1740"></span></p>
<p>&nbsp;</p>
<p>My favorite apps so far is:</p>
<ul>
<li>Nagroid, to be able to view my <a href="http://www.op5.com/op5/products/network-monitor">op5 Monitor</a> status</li>
<li>FONMaps, find hotspots for LaFoneras</li>
<li>Car Cast, listen and download podcasts</li>
<li>MapDroid, to use preloaded OpenStreetmaps and GPS without using any bandwidth. Perfect when abroad because of the crazy price of data roaming outside Sweden.</li>
<li>HTC&nbsp;Facebook, read and post on facebook</li>
<li>FON&nbsp;Access, automatically connect to FON&nbsp;hotspots when traveling.</li>
<li>GPS Logger, logg tracks in gpx format that almost any GPS software understand</li>
<li>Sipdroid, to connect to my Asterisk PBX using 3G or WiFi</li>
</ul>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Of&nbsp; cource the device is not perfect, I miss:</p>
<ul>
<li>The phone must be &#8216;rooted&#8217; to be real useful, why? Open the phone so the community and others can develop apps that are real useful. Vendor lock-in always sucks.</li>
<li>IPSec VPN so I&nbsp;can connect to my IPSec based OpenBSD firewall. The IPSec implementation in the phone sucks.</li>
<li>OpenVPN, there exists OpenVPN&nbsp;apps but to use the the phone must be &#8216;rooted&#8217;</li>
<li>Bluetooth modem, it is not possible to use the phone as a modem using bluetooth</li>
<li>Screenshots, the phone must be rooted or using the SDK to take screenshoots. Why?</li>
</ul>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>I really hope that Google and/or HTC understand and use the power of the community to make the Android even more succesfull by open it even more.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2010/04/30/finally-it-has-arrived-my-htc-desire/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Book review: AsteriskNow</title>
		<link>http://www.it-slav.net/blogs/2010/02/17/book-review-asterisknow/</link>
		<comments>http://www.it-slav.net/blogs/2010/02/17/book-review-asterisknow/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 19:29:45 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Review]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[english]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1576</guid>
		<description><![CDATA[
&#160;
I&#160;have read the book Asterisk now by Nir Simionovich,&#160;published in March 2008.&#160;The book was a big disappointment, the reason is that the book do not cover the software used in AsteriskNOW today. The book cover the Asterisk GUI but AsteriskNOW is using FreePBX instead which is totally different. One main reason to use AsteriskNow is [...]]]></description>
			<content:encoded><![CDATA[<p><img width="540" height="666" alt="asterisknow" src="http://www.it-slav.net/blogs/wp-content/uploads/2010/02/asterisknow.jpg" title="asterisknow" class="aligncenter size-full wp-image-1608" /></p>
<p>&nbsp;</p>
<p>I&nbsp;have read the book Asterisk now by Nir Simionovich,&nbsp;published in March 2008.&nbsp;The book was a big disappointment, the reason is that the book do not cover the software used in AsteriskNOW today. The book cover the Asterisk GUI but AsteriskNOW is using FreePBX instead which is totally different. One main reason to use AsteriskNow is to avoid the sometimes cumbersome task to install Linux or a similair operating system, download, compile and configure Asterisk using cryptic text files. So an accurate description of the GUI used is essential for a book like this and unfortunatly the book is to old.  I&nbsp;do not intend to install an old version of AsteriskNOW just for a bookreview so I cannot tell how accurate the book is.  So my recommendation is to wait for an updated version of AsteriskNow book.</p>
<h3>&nbsp;</h3>
<h3>Links</h3>
<ul>
<li>A sample chapter <a href="http://www.packtpub.com/files/AsteriskNOW-Sample-Chapter-Chapter-7-For-Annoyance-Press-1-Voice-Menus-and-IVR.pdf">Chapter-7-For-Annoyance-Press-1-Voice-Menus-and-IVR</a></li>
<li>Link to the book <a href="http://www.packtpub.com/asterisknow/mid/261109epn4y0?utm_source=it-slav.net&amp;utm_medium=affiliate&amp;utm_content=blog&amp;utm_campaign=mdb_001634">AsteriskNow</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2010/02/17/book-review-asterisknow/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Phonzo SIP provider tries to block Asterisk</title>
		<link>http://www.it-slav.net/blogs/2009/12/07/phonzo-sip-provider-tries-to-block-asterisk/</link>
		<comments>http://www.it-slav.net/blogs/2009/12/07/phonzo-sip-provider-tries-to-block-asterisk/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 20:17:47 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Hints]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[it-slav.net]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[voip]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1507</guid>
		<description><![CDATA[After the problems I&#160;have had with Bredband2, I&#160;want to test Phonzo.se as a new VoIP provider.
I&#160;registered on their homepage and after a couple of days I&#160;got a snail mail with my credentials.
I&#160;configured my FreePBX and calling in worked directly, but not outgoing. After 2 hours of troubleshooting I&#160;started to google &#34;phonzo asterisk&#34; and found several [...]]]></description>
			<content:encoded><![CDATA[<p>After the problems I&nbsp;have had with Bredband2, I&nbsp;want to test <a href="http://www.phonzo.se" target="_blank">Phonzo.se</a> as a new VoIP provider.</p>
<p>I&nbsp;registered on their homepage and after a couple of days I&nbsp;got a snail mail with my credentials.</p>
<p>I&nbsp;configured my FreePBX and calling in worked directly, but not outgoing. After 2 hours of troubleshooting I&nbsp;started to google &quot;phonzo asterisk&quot; and found several people that has the same experience. The reason is that Phonzo does not accepted &quot;Asterisk PBX&quot; as useragent and that is default in Asterisk.</p>
<p>&nbsp;</p>
<p>After changing sip.conf</p>
<pre>
[general]

...

useragent=it-slav PBX

....</pre>
<p>
It worked!</p>
<p><span id="more-1507"></span>&nbsp;</p>
<p>I&nbsp;do not like unlogical stupidity so I&nbsp;sent an email to the support and the following bizare mail conversation occoured:</p>
<address>Me : Why do you try to block Asterisk? Changing useragent=garbage makes it work.</address>
<address>&nbsp;</address>
<address>Phonzo: We do not try to block Asterisk in any way. Just change your useragent to something else, then it works.</address>
<address>&nbsp;</address>
<address>Me: Why do I&nbsp;have to change it? It took me 2 hours to figure out.</address>
<address>&nbsp;</address>
<address>Phonzo: You must change UA because our system do not accept &quot;Asterisk PBX&quot; as UA. This is something Phonzo always has had.</address>
<address>&nbsp;</address>
<address>Me: Why did you introduce this limitation in the first place? When will you remove it?</address>
<address>&nbsp;</address>
<address>Phonzo: The reason for this change is that the company evolve and new solutions has been implemented. If our customers finds it problematic that we do not accept UA to be &quot;Asterisk PBX&quot; we will remove it.</address>
<address>&nbsp;</address>
<address>Me: The question is total opposite, you erlier claimed that is has NOT&nbsp;changed, instead it was introduced when Phonzo started.</address>
<address>Lets recap:</address>
<address>-You claim that UA &quot;Asterisk PBX&quot; is not allowed because that is something you introduced when Phonzo started, &quot;why?&quot; has not been answered.</address>
<address>-You claim that you do not block Asterisk because, if anyone asks, you tell them to change UA. No reason why this limitation was introduced at all. My conclusion is that you block Asterisk.</address>
<address>-You will remove it if it causes problems to your customers. I lost two hours and I&nbsp;find several other on internet that see this as problematic. Take it away.</address>
<address>&nbsp;</address>
<address>Phonzo: It is not a problem to change UA it is very simple. Every other question has been answered.</address>
<address>&nbsp;</address>
<address>Me: Now I&nbsp;have published this bizare conversation on my blog.</address>
<address>The question still remains:</address>
<address>Why do you not allow UA &quot;Asterisk PBX&quot;?</address>
<address>&nbsp;</address>
<p>I&nbsp;will update this post when new info arrives.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2009/12/07/phonzo-sip-provider-tries-to-block-asterisk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Book review &#8220;FreePBX 2.5, Powerful Telephony Solutions&#8221;</title>
		<link>http://www.it-slav.net/blogs/2009/11/26/book-review-freepbx-2-5-powerful-telephony-solutions/</link>
		<comments>http://www.it-slav.net/blogs/2009/11/26/book-review-freepbx-2-5-powerful-telephony-solutions/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 11:42:16 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Cool things]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[FreePBX]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1494</guid>
		<description><![CDATA[&#160;
&#160;
I have finished reading the great book &#34;FreePBX 2.5 Powerful Telephony Solutions&#34;, by Alex Robar and it is 277 pages.
&#160;
The intended target audience for this book are system administrators who want to get started with Asterisk and FreePBX.&#160; It is perfect for administrators who want to reduce costs by replacing a proprietary PBX with a [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;<a target="_blank" href="http://www.packtpub.com/freepbx-2-5-powerful-telephony-solutions/mid/230909otf457?utm_source=It-Slav.net&amp;utm_medium=affiliate&amp;utm_content=other&amp;utm_campaign=mdb_000778"><img width="500" height="617" class="aligncenter size-full wp-image-1500" title="freepbx" alt="freepbx" src="http://www.it-slav.net/blogs/wp-content/uploads/2009/11/freepbx.jpg" /></a></p>
<p>&nbsp;</p>
<p>I have finished reading the great book &quot;FreePBX 2.5 Powerful Telephony Solutions&quot;, by Alex Robar and it is 277 pages.</p>
<p>&nbsp;<span id="more-1494"></span></p>
<p>The intended target audience for this book are system administrators who want to get started with Asterisk and FreePBX.&nbsp; It is perfect for administrators who want to reduce costs by replacing a proprietary PBX with a PBX that runs on open source packages. The pre required knowledge is basic knowledge of Linux and telephony, though neither is strictly required.</p>
<p>&nbsp;</p>
<p>I find the targeted audience and the pre required knowledge correct, however I&nbsp;think the Linux knowledge is an absolute demand or at least have someone to ask. A basic knowledge of Telephony is also more or less required.</p>
<p>&nbsp;</p>
<p>The book cover installation on CentOS&nbsp;and Ubuntu Server, configuration, adding handset, trunk setup, call routing, voicemail, digital receptionist, music-on-hold, call recording, maintenance, backups and much more.</p>
<p>&nbsp;</p>
<p>I find the book very valuable and I really like the concept of FreePBX. When starting with Asterisk the myriads of parameters are overwhelming. FreePBX makes the approach to Asterisk easier and makes the startup much faster then go to the Asterisk config via textfiles. FreePBX comes with many modules that should be enough for most demands and if needed it is still possible to use configuration using config files.</p>
<p>&nbsp;</p>
<p>The book describes the most important modules in FreePBX in a structured and pedagogic way with many screenshoots and figures. I really likes the examples in the end of the book with trunk configuration to some big SIP providers. Even if none of them is valid in Sweden it gives you an idea what parameters to start with when configure trunks.</p>
<p>&nbsp;</p>
<p>When it comes to trouble shooting I&nbsp;think the book should have contained a chapter about that. In many cases the way of trouble shoot is to use the Asterisk CLI, read logs and in some cases use a network analyser like WireShark. I think the book should have contained an introduction to trouble shooting and the different tools available.</p>
<p>Some of the script examples contain some typos but with basic scripting knowledge it is easy to fix.</p>
<p>&nbsp;</p>
<p>I reccomend this book for anyone interested in FreePBX, FreePBX admins and Asterisk newbies. This book makes the start with FreePBX much faster compared to&nbsp; trying to collect the information from the web and other sources. The FreePBX website is a great as a reference, however this book makes it easy and fast to get started with FreePBX and Asterisk.</p>
<p>&nbsp;</p>
<h2>Links:</h2>
<ul>
<li>More info about&nbsp; the book <a href="http://www.packtpub.com/freepbx-2-5-powerful-telephony-solutions/mid/230909otf457?utm_source=It-Slav.net&amp;utm_medium=affiliate&amp;utm_content=other&amp;utm_campaign=mdb_000778" target="_blank">&quot;FreePBX 2.5 Powerful Telephony Solutions&quot;</a></li>
<li>Example <a href="http://www.packtpub.com/files/4725-freepbx-sample-chapter-8-recording-calls.pdf" target="_blank">chapter 8 Recording calls</a></li>
<li>FreePBX <a href="http://www.freepbx.org" target="_blank">homepage</a></li>
<li>Asterisk <a href="http://www.asterisk.org" target="_blank">homepage</a></li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2009/11/26/book-review-freepbx-2-5-powerful-telephony-solutions/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Book review &#8220;Asterisk 1.6, Build feature-rich telephony systems with Asterisk&#8221;</title>
		<link>http://www.it-slav.net/blogs/2009/11/02/book-review-asterisk-1-6-build-feature-rich-telephony-systems-with-asterisk/</link>
		<comments>http://www.it-slav.net/blogs/2009/11/02/book-review-asterisk-1-6-build-feature-rich-telephony-systems-with-asterisk/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 21:08:42 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Hints]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[english]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=1450</guid>
		<description><![CDATA[
&#160;
I&#160;have read the excellent book Asterisk 1.6, Build feature-rich telephony systems with Asterisk by David Merel, Barrie Dempster and David Gomillion.
&#160;
The book is inteended to anyone interested in bulding a telephony system using Asterisk and are 224 pages. The book claims that no preknowledge about opensource, Linux and Asterisk is required. I&#160;think it is a [...]]]></description>
			<content:encoded><![CDATA[<p><img height="617" width="500" src="http://www.it-slav.net/blogs/wp-content/uploads/2009/11/Asterisk1.6.jpg" alt="Asterisk1.6" title="Asterisk1.6" class="aligncenter size-full wp-image-1453" /></p>
<p>&nbsp;</p>
<p>I&nbsp;have read the excellent book Asterisk 1.6, Build feature-rich telephony systems with Asterisk by David Merel, Barrie Dempster and David Gomillion.</p>
<p>&nbsp;</p>
<p>The book is inteended to anyone interested in bulding a telephony system using Asterisk and are 224 pages. The book claims that no preknowledge about opensource, Linux and Asterisk is required. I&nbsp;think it is a little bit hard to start without any of these knowledge. I&nbsp;would recommend to have basic Linux/Unix knowledge to be able to go through the installation part.</p>
<p>It starts from the begining with introduction to Asterisk, brief telephony system introduction, installing Asterisk,configure Asterisk, creating dialplans. It continues with call logging, different pre-made Asterisk alternatives like trixbox/FreePBX, asterCRM and Case studies and ends with some hints that makes the life of an Asterisk admin easier.</p>
<p>&nbsp;</p>
<p>I&nbsp;relly liked the book. When starting with no Asterisk knowledge the number of config files and parameter is overvelming and this book help the reader to penetrate that. The book walk through basic configuration and help to get your a Asterisk installation up and running. I like that it gives an overview of different things to consider when to start an Asterisk implementation and builds up a basic knowledge about the subject.</p>
<p>I&nbsp;appreciate the case studies where three different scenarios are described: Small office/home office, Small business and a hosted PBX.</p>
<p>The drawback of the book is that it just gives an introduction to the different topics. I&nbsp;would like to have a little bit deeper knowledge in some of the topics, for an example dialplans.</p>
<p>&nbsp;</p>
<p>I&nbsp;would recommend the book to newbies to Asterisk, the book will help them to get started and boost their knowledge. It is possible to gain all the knowledge in the book by visiting different Asterisk forums, read documentation and so on but that will take much effort compared to read the book.</p>
<ul>
<li>To buy the book: <a href="http://www.packtpub.com/build-feature-rich-telephony-system-with-asterisk-1-6/mid/230909ak97vd?utm_source=It-Slav.net&amp;utm_medium=affiliate&amp;utm_content=other&amp;utm_campaign=mdb_000777">Asterisk 1.6, Build feature-rich telephony systems with Asterisk</a></li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2009/11/02/book-review-asterisk-1-6-build-feature-rich-telephony-systems-with-asterisk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Telemarketing blacklisting using Asterisk</title>
		<link>http://www.it-slav.net/blogs/2009/03/17/telemarketing-blacklisting-using-asterisk/</link>
		<comments>http://www.it-slav.net/blogs/2009/03/17/telemarketing-blacklisting-using-asterisk/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 20:05:14 +0000</pubDate>
		<dc:creator>JohanL</dc:creator>
				<category><![CDATA[Cool things]]></category>
		<category><![CDATA[Geek stuff]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[telemarketing blacklist]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=903</guid>
		<description><![CDATA[I have been noticing an increasing number of telemarketing phonecalls the last weeks and I would like to avoid having those callers disturbing me or my family. They have been calling at 9am, 11am, 1pm, 8pm during the weekdays, saturday and sunday.
 
I have been running an asterisk system to handle my VoIP calles the last [...]]]></description>
			<content:encoded><![CDATA[<p style="margin-bottom: 0cm;"><span style="font-family: DejaVu Sans,sans-serif;">I have been noticing an increasing number of telemarketing phonecalls the last weeks and I would like to avoid having those callers disturbing me or my family. They have been calling at 9am, 11am, 1pm, 8pm during the weekdays, saturday and sunday.</span></p>
<p style="margin-bottom: 0cm;"> </p>
<p style="margin-bottom: 0cm;"><span style="font-family: DejaVu Sans,sans-serif;">I have been running an asterisk system to handle my VoIP calles the last years and I have been using it for a number of things during the time.</span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: DejaVu Sans,sans-serif;">I also use firewalls to secure incoming and outgoing IP traffic in my home network, so I thought the asterisk system could be used to do handle a “blacklist” of telephone number on my PSTN.</span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: DejaVu Sans,sans-serif;">I would also like the asterisk system to kick in before my normal telephone gets the call and starts ringing.</span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: DejaVu Sans,sans-serif;">If it detects a telemarketing caller, I would like it to answer the call and give a prerecorded message saying something like “You are calling from a unauthorised source. Please do not call again, this telephone line is being monitored.” and then just drop the line.</span></p>
<p style="margin-bottom: 0cm;"> </p>
<p style="margin-bottom: 0cm;"><span style="font-family: DejaVu Sans,sans-serif;">I found a list of known Swedish CallerID numbers on the Internet that I can use to “jumpstart” my blacklist. I only needed to have a dialplan and to configure my Sipura SPA-3000 ATA device to send my PSTN calls to my asterisk system.</span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: DejaVu Sans,sans-serif;"><br />
 </span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: DejaVu Sans,sans-serif;">This is how I configured it:</span></p>
<p style="margin-bottom: 0cm;"><span id="more-903"></span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: DejaVu Sans,sans-serif;">I started with configuring my SPA-3000 box to pick up the CallerID from my PSTN company.</span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: DejaVu Sans,sans-serif;">The important configuration parameters are on the PSTN Tab in the Sipura web gui.</span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: Courier,monospace;">Line Enable: yes</span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: Courier,monospace;">Proxy: &lt;my asterisk server IP&gt;</span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: Courier,monospace;">User ID: pstn</span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: Courier,monospace;">Password: pstn</span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: Courier,monospace;">PSTN-To-VoIP Gateway Enable: yes</span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: Courier,monospace;">PSTN Ring Thru Line 1: no</span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: Courier,monospace;">PSTN Caller Default DP: 1</span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: Courier,monospace;">Line 1 Signal Hook Flash to PSTN: Disabled</span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: Courier,monospace;">Dial Plan 1: S0&lt;:<a href="mailto:1010@gw1">1010@gw1</a>&gt;</span></p>
<p style="margin-bottom: 0cm;"> </p>
<p style="margin-bottom: 0cm;"><span style="font-family: DejaVu Sans,sans-serif;">The Sipura dialplan is (as usual) pretty complicated (and powerful) and this dialplan sends the call to extension “1010” at the “gw1” interface in the SPA box. </span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: DejaVu Sans,sans-serif;">I created a new context for the incoming PSTN, called [blacklist].</span></p>
<p style="margin-bottom: 0cm;"> </p>
<p style="margin-bottom: 0cm;"><span style="font-family: DejaVu Sans,sans-serif;">I also needed to create a sip device configuration for the Sipura box, so that the call would enter the correct context in the dialplan:</span></p>
<p style="margin-bottom: 0cm;"> </p>
<p style="margin-bottom: 0cm;"><span style="font-family: Courier,monospace;">[pstn]</span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: Courier,monospace;">type=friend</span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: Courier,monospace;">host=dynamic ;the extension can register from a dynamic IP</span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: Courier,monospace;">context=pstn ;incoming calls to to this extension</span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: Courier,monospace;">secret=pstn</span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: Courier,monospace;">dtmfmode=rfc2833</span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: Courier,monospace;">disallow=all ;disallow all codecs</span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: Courier,monospace;">allow=ulaw ;allow only the ulaw codec</span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: Courier,monospace;">deny=0.0.0.0/0.0.0.0 ; block all registrations from other networks</span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: Courier,monospace;">permit=10.0.0.0/255.255.255.0 ;only allow registrations from my LAN</span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: Courier,monospace;">qualify=600 ;monitor the ping delay</span></p>
<p style="margin-bottom: 0cm;"> </p>
<p style="margin-bottom: 0cm;"><span style="font-family: DejaVu Sans,sans-serif;">If you are using another PSTN-To-VoIP gateway adapter, the box needs to be configured to send the incoming CallerID to the asterisk box before answering the call.</span></p>
<p style="margin-bottom: 0cm;"> </p>
<p style="margin-bottom: 0cm;"><span style="font-family: DejaVu Sans,sans-serif;">The list of telephone numbers I downloaded needed to be inserted into a database in the asterisk system. Because there is about 1600 telephone numbers in the list, I had a script to load it into the asterisk database from a unix shell.</span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: DejaVu Sans,sans-serif;">The list can be updated in realtime by using the commands:</span></p>
<p style="margin-bottom: 0cm;"> </p>
<p style="margin-bottom: 0cm;"><span style="font-family: Courier,monospace;">ast&gt; database put blacklist <em>&lt;number&gt;</em> 1 <em>(for blacklisting)</em></span></p>
<p style="margin-bottom: 0cm;"><span style="font-family: Courier,monospace;">ast&gt; database del blacklist <em>&lt;number&gt;</em> 0 <em>(for removing blacklisting)</em></span></p>
<p style="margin-bottom: 0cm; font-style: normal;"> </p>
<p style="margin-bottom: 0cm; font-style: normal;"><span style="font-family: DejaVu Sans,sans-serif;">You can run these commands on the asterisk console from the shell using the form:</span></p>
<p style="margin-bottom: 0cm; font-style: normal;"><span style="font-family: Courier,monospace;"># asterisk -r &#8220;databse put blacklist <em>&lt;number&gt;</em> 1&#8243;</span></p>
<p style="margin-bottom: 0cm; font-style: normal;"> </p>
<p style="margin-bottom: 0cm; font-style: normal;"><span style="font-family: DejaVu Sans,sans-serif;">To check if the list is populated, you can use the command:</span></p>
<p style="margin-bottom: 0cm; font-style: normal;"> </p>
<p style="margin-bottom: 0cm; font-style: normal;"><span style="font-family: Courier,monospace;">ast&gt; database list</span></p>
<p style="margin-bottom: 0cm; font-style: normal;"> </p>
<p style="margin-bottom: 0cm; font-style: normal;"><span style="font-family: DejaVu Sans,sans-serif;">It will give you the list of blacklisted number.</span></p>
<p style="margin-bottom: 0cm; font-style: normal;"> </p>
<p style="margin-bottom: 0cm; font-style: normal;"><span style="font-family: DejaVu Sans,sans-serif;">To make the blacklist matching work, I neede to insert a few lines of code into my /etc/asterisk/extensions.conf file:</span></p>
<p style="margin-bottom: 0cm; font-style: normal;"> </p>
<p style="margin-bottom: 0cm; font-style: normal;"><span style="font-family: Courier,monospace;">[pstn]</span></p>
<p style="margin-bottom: 0cm; font-style: normal;"><span style="font-family: Courier,monospace;">exten =&gt; 1010,1,GotoIf(${DB_EXISTS(blacklist/${CALLERID(num)})}?blacklisted,s,1);</span></p>
<p style="margin-bottom: 0cm; font-style: normal;"> </p>
<p style="margin-bottom: 0cm; font-style: normal;"><span style="font-family: Courier,monospace;">[blacklisted]</span></p>
<p style="margin-bottom: 0cm; font-style: normal;"><span style="font-family: Courier,monospace;">exten =&gt; s,1,Answer</span></p>
<p style="margin-bottom: 0cm; font-style: normal;"><span style="font-family: Courier,monospace;">exten =&gt; s,n,Wait(2)</span></p>
<p style="margin-bottom: 0cm; font-style: normal;"><span style="font-family: Courier,monospace;">exten =&gt; s,n,Playback(ss-noservice)</span></p>
<p style="margin-bottom: 0cm; font-style: normal;"><span style="font-family: Courier,monospace;">exten =&gt; s,n,Wait(1)</span></p>
<p style="margin-bottom: 0cm; font-style: normal;"><span style="font-family: Courier,monospace;">exten =&gt; s,n,Hangup</span></p>
<p style="margin-bottom: 0cm; font-style: normal;"> </p>
<p style="margin-bottom: 0cm; font-style: normal;"><span style="font-family: DejaVu Sans,sans-serif;">So, if a call is detected in the SPA3K box, it is sent to the “1010” extension in the pstn context. The CallerID is compared to the blacklisted entries in the asterisk database.</span></p>
<p style="margin-bottom: 0cm; font-style: normal;"><span style="font-family: DejaVu Sans,sans-serif;">If the CallerID number is found in the databse, the call is sent to the blacklist extension and the “s” extension kicks in and handles the call.</span></p>
<p style="margin-bottom: 0cm; font-style: normal;"> </p>
<p style="margin-bottom: 0cm; font-style: normal;"><span style="font-family: DejaVu Sans,sans-serif;">The call is of course logged in the CDR database so I can monitor the number of telemarketing callers by day and week. But that is a different story.</span></p>
<p style="margin-bottom: 0cm; font-style: normal;"> </p>
<p style="margin-bottom: 0cm; font-style: normal;"><span style="font-family: DejaVu Sans,sans-serif;">Now, my family is happy to not answering those stupid calls every day!</span></p>
<p style="margin-bottom: 0cm; font-style: normal;"> </p>
<p style="margin-bottom: 0cm; font-style: normal;"> </p>
<p><br class="spacer_" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2009/03/17/telemarketing-blacklisting-using-asterisk/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Asterisk monitoring with Nagios or op5 Monitor</title>
		<link>http://www.it-slav.net/blogs/2009/02/13/asterisk-monitoring-with-nagios-or-op5-monitor/</link>
		<comments>http://www.it-slav.net/blogs/2009/02/13/asterisk-monitoring-with-nagios-or-op5-monitor/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 20:07:02 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Cool things]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[op5 Monitor]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[asterisk graph]]></category>
		<category><![CDATA[asterisk monitoring]]></category>
		<category><![CDATA[asterisk nagios]]></category>
		<category><![CDATA[asterisk surveillance]]></category>
		<category><![CDATA[Marcus Rejås]]></category>
		<category><![CDATA[op5]]></category>
		<category><![CDATA[pnp4nagios]]></category>
		<category><![CDATA[sip]]></category>
		<category><![CDATA[voip]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=123</guid>
		<description><![CDATA[This article describe howto monitor an Asterisk server with Nagios or op5 Monitor. Pre-req to get it running is a working Nagios or op5 Monitor installation and an Asterisk   
Theory
In my implementation of Asterisk I have a couple of softphones, 2 hardphones and connections to two SIP providers.  I want to monitor [...]]]></description>
			<content:encoded><![CDATA[<p>This article describe howto monitor an Asterisk server with Nagios or op5 Monitor. Pre-req to get it running is a working Nagios or op5 Monitor installation and an Asterisk  <img src='http://www.it-slav.net/blogs/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<h2>Theory</h2>
<p>In my implementation of Asterisk I have a couple of softphones, 2 hardphones and connections to two SIP providers.  I want to monitor the following:</p>
<ul>
<li>Possibility for a phone to be able to register at the Asterisk server</li>
<li>The registration at the SIP providers are OK</li>
<li>The Operating system is not overloaded</li>
<li>The server where Asterisk is running is up</li>
</ul>
<p><span id="more-123"></span></p>
<h2>Implementation</h2>
<h3>Sip check</h3>
<p>I found the following after Googling:  <a target="_blank" href="http://bashton.com/osprojects/nagiosplugins/">http://bashton.com/osprojects/nagiosplugins/</a>  Define it in commands.cfg</p>
<pre>
# command 'check_sip'
define command{
    command_name                   check_sip
    command_line                   $USER1$/custom/nagios-check_sip-1.2/check_sip -u &quot;$ARG1$&quot;
    }</pre>
<p>Define the sip check in services.cfg, I also created a service group called ip_telephony</p>
<pre>
# service 'Asterisk Check SIP'
define service{
    use                            default-service
    host_name                      dull
    service_description            Asterisk Check SIP
    check_command                  check_sip!sip:XXXXX@dull.mynet
    servicegroups                  ip_telephony
    contact_groups                 it-slav_msn,it-slav_mail,call_it-slav
    }</pre>
<h3>Monitor the Peers</h3>
<p>First I tried to find a suitable plugin at Nagiosexchange, Google and other sites if there was anybody that has created and published a Nagios plugin to monitor the sip peers. I could not find any.  With the asterisk command &quot;sip show peers&quot;, information about the connected sip peers can be found:</p>
<pre>
[root@dull custom]# asterisk -rx &quot;sip show peers&quot;
Name/username              Host            Dyn Nat ACL Port     Status
pulver                     69.90.155.70                5060     OK (154 ms)
digisip/XXXXX              82.209.165.194              5060     OK (44 ms)
6016                       (Unspecified)    D          0        UNKNOWN
6005                       (Unspecified)    D          0        UNKNOWN
6004/6004                  10.1.1.168       D          5060     OK (139 ms)
6003/6003                  10.1.1.168       D          5060     OK (136 ms)
6002/6002                  10.1.1.152       D          5060     OK (8 ms)
6011                       (Unspecified)    D          0        UNKNOWN
6010                       (Unspecified)    D          0        UNKNOWN
6000                       (Unspecified)    D          0        UNKNOWN
6001                       (Unspecified)    D          0        UNKNOWN
11 sip peers [Monitored: 5 online, 6 offline Unmonitored: 0 online, 0 offline]</pre>
<p>I discussed this issue with <a target="_blank" href="http://www.rejas.se/">Marcus Rej&aring;s</a> when we meet and he told me that he has written a Nagios plugin to monitor the sip peers.  I got the script and modified to fit my needs, i.e. get performance data for graphing:  /opt/plugins/custom/check_asterisk_sip_peers.sh</p>
<pre>
#!/bin/bash
#
# Simple Asterisk Peer Check.
# Copyright (C) 2008 Marcus Rej&aring;s / Rej&aring;s Datakonsult
#
# Modified with perfdata by Peter Andersson
# http://www.it-slav.net/blogs/?p=123
# peter@it-slav.net
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
#
# Very simple plugin that checks if a peer is ok. The peers needs &quot;qualify=yes&quot;
# in its configuration.
#
# A peer that is not registered or non-existent will result in error. If the
# peer is OK a short statusline (from Asterisk) is written. There is timing
# information suitable for graphing as well.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see .
#
# Example use of this script:
#
# sip:~# ./sip_check_peer mysecretary-100
# mysecretary-100/461762501 62.80.200.53 5060 OK (10 ms)
# sip:~#
#
#

if [ $# == 0 -o &quot;$1&quot; == &quot;-h&quot; -o  $# -gt 1 ]; then
	echo &quot;Usage: $0&quot;
	exit 3
fi

LINE=`asterisk -r -x &quot;sip show peers&quot; | grep $1 | grep &quot;OK (&quot;`

#
# This is a uggly. Just to check that the expression above does not match more
# then one line.
#
HITS=`asterisk -r -x &quot;sip show peers&quot; | grep $1 | grep &quot;OK (&quot; | wc -l`

if [ $HITS -gt 1 ]; then
	echo &quot;ERROR: Multiple match, tweak your arguments or fix $0 <img src='http://www.it-slav.net/blogs/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> &quot;
	exit 3
fi

if [ &quot;$LINE&quot; ]; then
	echo -n &quot;OK: &quot;
	echo -n $LINE
	#Create perdata
	echo -n &quot;|time=&quot;
	echo $LINE | awk '{gsub(/\(/,&quot;&quot;)};{gsub(/\)/,&quot;&quot;)};{print $(NF-1)$NF}'
	exit 0
elif [ -z &quot;$LINE&quot; ]; then
	echo &quot;CRITICAL: Something is wrong with $1&quot;;
	exit 2
else
	echo $LINE
	exit 2
fi</pre>
<p>The command run by hand looks like this:</p>
<pre>
[root@dull /]# /opt/plugins/custom/check_asterisk_sip_peers.sh pulver
OK: pulver 69.90.155.70 5060 OK (166 ms)|time=166ms</pre>
<p>The plugin is started by nrpe at the asterisk server and configured in /etc/nrpe.d/mycommands.cfg</p>
<pre>
command[asterisk_peer_digisip]=sudo /opt/plugins/custom/check_asterisk_sip_peers.sh digisip
command[asterisk_peer_pulver]=sudo /opt/plugins/custom/check_asterisk_sip_peers.sh pulver
command[asterisk_peer_6002]=sudo /opt/plugins/custom/check_asterisk_sip_peers.sh 6002
command[asterisk_peer_6003]=sudo /opt/plugins/custom/check_asterisk_sip_peers.sh 6003
command[asterisk_peer_6004]=sudo /opt/plugins/custom/check_asterisk_sip_peers.sh 6004</pre>
<p>/opt/plugins/custom/check_asterisk_sip_peers.sh must run as a high privileged user so I&#8217;m using sudo, modify /etc/sudoers with visudo:</p>
<pre>
# visudo -f /etc/sudoers</pre>
<pre>
--snip--
nobody ALL= (root) NOPASSWD: /opt/plugins/custom/check_asterisk_sip_peers.sh
--snip--
Turn of requiretty, because it will run without a console
--snip--
#Defaults    requiretty
--snip--
</pre>
<p>The service checks are defined in services.cfg and also put into the same servicegroup</p>
<pre>
# service 'Asterisk Peer Pulver'
define service{
    use                            default-service
    host_name                      dull
    service_description            Asterisk Peer Pulver
    check_command                  check_nrpe!asterisk_peer_pulver
    servicegroups                  ip_telephony
    contact_groups                 it-slav_sms,it-slav_mail,call_it-slav
    }

I also defined the other peers, i.e. digisip, 6002, 6003, 6004</pre>
<p>The servicegroup is defined in servicegroups.cfg</p>
<pre>
# servicegroup 'ip_telephony'
define servicegroup{
    servicegroup_name              ip_telephony
    alias                          IP - Telephony
    }

This is the result, a screenshot from my op5 Monitor system:</pre>
<p><a href="http://www.it-slav.net/blogs/wp-content/uploads/2009/02/asterisk.png"><img height="169" width="716" alt="" src="http://www.it-slav.net/blogs/wp-content/uploads/2009/02/asterisk.png" title="asterisk" class="alignnone size-full wp-image-778" /></a>  I leave to the reader to define the standard checks for load, ping and total processes.  If you use op5 Monitor or pnp4nagios the graphs are automatically created:  <a href="http://www.it-slav.net/blogs/wp-content/uploads/2009/02/asterisk_graph.png"><img height="393" width="500" alt="" src="http://www.it-slav.net/blogs/wp-content/uploads/2009/02/asterisk_graph.png" title="asterisk_graph" class="alignnone size-full wp-image-780" /></a></p>
<h2>Links</h2>
<ul>
<li><a target="_blank" href="http://www.nagios.org">Nagios</a></li>
<li><a target="_blank" href="http://www.op5.com/op5/products/monitor">op5 Monitor</a></li>
<li><a target="_blank" href="http://sourceforge.net/projects/pnp4nagios/">pnp4nagios</a></li>
<li><a target="_blank" href="http://www.asterisk.org">Asterisk</a></li>
<li><a target="_blank" href="http://www.rejas.se/">Marcus Rej&aring;s</a></li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2009/02/13/asterisk-monitoring-with-nagios-or-op5-monitor/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Use Asterisk to call a number and read the errormessage from op5Monitor/Nagios</title>
		<link>http://www.it-slav.net/blogs/2008/10/31/use-aterisk-to-call-a-number-and-read-the-errormessage-from-op5monitornagios/</link>
		<comments>http://www.it-slav.net/blogs/2008/10/31/use-aterisk-to-call-a-number-and-read-the-errormessage-from-op5monitornagios/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 11:32:48 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Cool things]]></category>
		<category><![CDATA[Geek stuff]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[op5 Monitor]]></category>

		<guid isPermaLink="false">http://www.it-slav.net/blogs/?p=6</guid>
		<description><![CDATA[Do you want to integrate your perfectly working op5 Monitor or Nagios installation with Asterisk?
I&#8217;ve configured op5 Monitor to call me when it detects a problem, to listen to an example click on link below:
11880larm1
The text below is op5 Monitor centric. op5 Monitor is based on Nagios so the principle is the same the only [...]]]></description>
			<content:encoded><![CDATA[<p>Do you want to integrate your perfectly working op5 Monitor or Nagios installation with Asterisk?</p>
<p>I&#8217;ve configured <a href="http://www.op5.com/op5/products/monitor" target="_blank">op5 Monitor</a> to call me when it detects a problem, to listen to an example click on link below:</p>
<p><a href="http://www.it-slav.net/blogs/wp-content/uploads/2008/10/11880larm1.wav">11880larm1</a></p>
<p>The text below is op5 Monitor centric. op5 Monitor is based on Nagios so the principle is the same the only difference in this case is the possibility to test it from the op5 Monitor webconfig GUI.</p>
<p>Here is how I did it.</p>
<ol>
<li>Have a working asterisk with connected phones</li>
<li>Create a notify script on the op5 Monitor Server or Nagios server</li>
</ol>
<p>Add the following to misccommands.cfg<span style="font-family: Courier New;"><br />
 # command &#8216;host-notify-call&#8217;<br />
 define command{<br />
 command_name                   host-notify-call<br />
 command_line                   sudo -u monitor  /opt/monitor/op5/notify/call_asterisk_message.sh  &#8216;A\ message\ from\  Op5\ monitor.\ Host\ &#8220;$HOSTNAME$&#8221;\ is\ &#8220;$HOSTSTATE$&#8221;&#8216;<br />
 }<br />
 and<br />
 # command &#8217;service-notify-call&#8217;<br />
 define command{<br />
 command_name                   service-notify-call<br />
 command_line                   sudo -u monitor  /opt/monitor/op5/notify/call_asterisk_message.sh &#8216;A\ message\ from\ Op5\  monitor.\ &#8220;$SERVICESTATE$&#8221;.\ Service\ &#8220;$SERVICEDESC$&#8221;<br />
 \ on\ host\ &#8220;$HOSTNAME$&#8221;\ is\ $SERVICESTATE$&#8217;<br />
 }<br />
 </span><br />
 Comment: sudo to monitor is probably unnecessary but I had som problems with &#8216;test this service&#8217; in op5 Monitor webconfig GUI because it runs as apache and when the script is run when a problem occour it runs as monitor.</p>
<p>3. call_asterisk_message.sh<br />
 <span style="font-family: Courier New;"><br />
 ssh dull sudo /root/scripts/make_call3.sh $1<br />
 </span><br />
 i.e. run make_call3.sh with first argument, dull is my asterisk server.</p>
<p>4. On dull /root/scripts/make_call3.sh<br />
 <span style="font-family: Courier New;"><br />
 #!/bin/sh<br />
 #Creates a phone call via asterisk to a certian number and reads a message</span></p>
<p>#By Peter Andersson, peter@it-slav.net</p>
<p><span style="font-family: Courier New;"><br />
 echo &#8220;$1&#8243; | /usr/bin/text2wave -scale 1.5 -F 8000 -o /tmp/$$larm.wav<br />
 echo &#8220;$1&#8243; &gt;/tmp/$$larm.txt<br />
 cat &lt;&lt;EOF &gt; /tmp/$$monitorcall.call<br />
 Channel: SIP/6000<br />
 Callerid: Op5 Monitor<br />
 MaxRetries: 5<br />
 RetryTime: 60<br />
 WaitTime: 60<br />
 Application: Playback<br />
 Data: /tmp/$$larm<br />
 EOF<br />
 mv /tmp/$$monitorcall.call /var/spool/asterisk/outgoing<br />
 #rm /tmp/$$larm.wav<br />
 echo &#8220;rm /tmp/$$larm.*&#8221; |at now + 1 day #Removes the wav and txt file tomorrow<br />
 </span><br />
 Comment: 6000 is the phonenumber to call, in my case a softphone.</p>
<p>And now it should work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.it-slav.net/blogs/2008/10/31/use-aterisk-to-call-a-number-and-read-the-errormessage-from-op5monitornagios/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
<enclosure url="http://www.it-slav.net/blogs/wp-content/uploads/2008/10/11880larm1.wav" length="112372" type="audio/x-wav" />
<enclosure url="http://www.it-slav.net/blogs/wp-content/uploads/2008/10/11880larm1.wav" length="112372" type="audio/x-wav" />
		</item>
	</channel>
</rss>
