<?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>Straw Dogs&#187; Category List @ Straw Dogs</title>
	<atom:link href="http://www.straw-dogs.co.uk/category/asterisk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.straw-dogs.co.uk</link>
	<description>The Tao of Ruby, Python, and....Straw Dogs?</description>
	<lastBuildDate>Thu, 22 Apr 2010 22:10:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Open Source Asterisk CRM Platform</title>
		<link>http://www.straw-dogs.co.uk/11/14/open-source-asterisk-crm-platform/</link>
		<comments>http://www.straw-dogs.co.uk/11/14/open-source-asterisk-crm-platform/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 08:34:11 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[asterisk]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.straw-dogs.co.uk/11/14/open-source-asterisk-crm-platform/</guid>
		<description><![CDATA[Built in PHP this Asterisk CRM looks pretty wicked.  Its an open source Customer Relationship Management application which hooks into an Asterisk PBX.  It looks nicer than I sound though so I&#8217;ll shut up and slap you with some pretty pictures&#8230;


The Info Link
]]></description>
			<content:encoded><![CDATA[<p>Built in PHP this Asterisk CRM looks pretty wicked.  Its an open source Customer Relationship Management application which hooks into an Asterisk PBX.  It looks nicer than I sound though so I&#8217;ll shut up and slap you with some pretty pictures&#8230;</p>
<p><img style="max-width: 800px;" title="Asterisk PBX CRM" src="http://www.straw-dogs.co.uk/wp-content/uploads/2008/11/confirm-1.jpg" alt="Asterisk PBX CRM" width="457" height="255" /></p>
<p><img style="max-width: 800px;" src="http://www.straw-dogs.co.uk/wp-content/uploads/2008/11/astercrm-add.jpg" alt="Asterisk PBX CRM" width="459" height="240" /></p>
<p><strong><a href="http://www.voip-info.org/wiki/view/asterCRM">The Info Link</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.straw-dogs.co.uk/11/14/open-source-asterisk-crm-platform/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using the Asterisk Manager PHP API</title>
		<link>http://www.straw-dogs.co.uk/07/19/using-the-asterisk-manager-php-api/</link>
		<comments>http://www.straw-dogs.co.uk/07/19/using-the-asterisk-manager-php-api/#comments</comments>
		<pubDate>Sat, 19 Jul 2008 14:47:58 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[asterisk]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[pear]]></category>
		<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://www.straw-dogs.co.uk/?p=148</guid>
		<description><![CDATA[Well it&#8217;s been a while since the PHP Asterisk Manager API was released and I&#8217;ve yet to produce a clear and definitive example of its use.  So here goes.
Prerequisites
Your Asterisk server must be set up correctly before this API can &#8217;speak&#8217; to the server.

 First you&#8217;ll need to ensure the Manager interface is active and [...]]]></description>
			<content:encoded><![CDATA[<p>Well it&#8217;s been a while since the <a href="http://code.google.com/p/asterisk-php-api/">PHP Asterisk Manager API</a> was released and I&#8217;ve yet to produce a clear and definitive example of its use.  So here goes.</p>
<h2>Prerequisites</h2>
<p>Your Asterisk server must be set up correctly before this API can &#8217;speak&#8217; to the server.</p>
<ul>
<li> First you&#8217;ll need to ensure the Manager interface is active and you&#8217;ve set the correct permissions (If you&#8217;d like this explaining please leave a comment).</li>
<li>Secondly make sure you are setup with the ability for two endpoints to call each other.  This won&#8217;t work if you have one phone on the server.</li>
</ul>
<h2>Install</h2>
<p>Firstly you&#8217;ll need to get hold of the library and there&#8217;s two routes to take.  You can either install via <a href="http://pear.php.net">PEAR</a> or simply checkout the source from the <a href="http://code.google.com/p/asterisk-php-api/">Google Project</a>:</p>
<p><tt>svn checkout <strong><em>http</em></strong>://asterisk-php-api.googlecode.com/svn/trunk/ asterisk-php-api</tt></p>
<h2>Originating a Call</h2>
<p>Once you&#8217;ve got it all ready you need to start your new file thats going to make use of it.  In this example I&#8217;m creating a simple dialler called: &#8220;call.php&#8221; which will take two GET variables, with one being the callee and one the caller.</p>
<pre lang="php">
<?php
/**
* To use this simply call it directly or via an Ajax call.  E.g.
* http://192.168.1.5/call.php?no=07943233397&#038;from=229
*/

require 'AsteriskManager.php';

$number   = str_replace(array(' ', '(', ')', '.', ','), '', $_GET['no']);  //I'm just cleaning the input here.
$from      = 'SIP/'.$_GET['from']; //The SIP handset of who's dialling the outside line
$context  = 'asteriskcontent'; //This is the context in your Asterisk dial plan that this call is made to
$cid        = $number;

//Setup basic parameters for the connection
$params = array(
  'server' => '192.168.1.5',
  'port' => '5038',
  'auto_connect' => true
);

//Initialise
$am = new Net_AsteriskManager($params);

//Login to the Asterisk Manager interface
$am->login('user', 'pass');

//Originate Call is one of the commands available and it causes a call to be made and connected between two endpoints.
$am->originateCall($number, $from, $context, $cid, 1, 30000);
?>
</pre>
<p>By looking at the comments above you should see how this works and the steps required.  If not then leave any comments and I&#8217;ll build on the above.  It&#8217;s sometimes difficult to know what people already know so apologies if this is too simple or complex.  <img src='http://www.straw-dogs.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Later on I&#8217;ll show how to work with queues &#8211; adding, removing, listing, etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.straw-dogs.co.uk/07/19/using-the-asterisk-manager-php-api/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Ruby Asterisk: 2 Libraries &amp; 2 Docs</title>
		<link>http://www.straw-dogs.co.uk/03/31/ruby-asterisk/</link>
		<comments>http://www.straw-dogs.co.uk/03/31/ruby-asterisk/#comments</comments>
		<pubDate>Mon, 31 Mar 2008 22:47:43 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[asterisk]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[ragi]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.straw-dogs.co.uk/03/31/ruby-asterisk/</guid>
		<description><![CDATA[Just so the Asterisk-Ruby&#8217;ists don&#8217;t feel left out after my PHP Asterisk post here&#8217;s a useful list if you&#8217;re wanting to integrate Asterisk with your Ruby (on Rails) app:

Adhearsion &#8211; Its a full framework on top of Asterisk built in Ruby.  Think &#8216;RAGI-on-steroids&#8217;.
RAGI &#8211; Ruby Asterisk Gateway Interface provides a Ruby interface to Asterisks [...]]]></description>
			<content:encoded><![CDATA[<p><img style="margin: 10px 10px 0pt 0pt; float: left" title="Asterisk" src="http://www.straw-dogs.co.uk/wp-content/asterisk.gif" alt="Asterisk" />Just so the <a href="http://www.asterisk.org">Asterisk</a>-Ruby&#8217;ists don&#8217;t feel left out after my PHP Asterisk post here&#8217;s a useful list if you&#8217;re wanting to integrate Asterisk with your Ruby (on Rails) app:</p>
<ul>
<li><a href="http://adhearsion.com/">Adhearsion</a> &#8211; Its a full framework on top of Asterisk built in Ruby.  Think &#8216;RAGI-on-steroids&#8217;.</li>
<li><a href="http://www.snapvine.com/code/ragi/">RAGI</a> &#8211; Ruby Asterisk Gateway Interface provides a Ruby interface to Asterisks manager.  Similar to my PHP library.</li>
<li><a href="http://www.oreillynet.com/pub/a/etel/2005/12/19/hacking-in-asterisk-and-rails.html">RAGI Tutorial</a> &#8211; Quick intro at O&#8217;Reilly on getitng started with RAGI.</li>
<li><a href="http://docs.adhearsion.com/codex/show/Getting+Started">Adhearsion Tutorial</a> &#8211; Aaaand another one for Adhearsion.</li>
</ul>
<p><!-- technorati tags begin --></p>
<p style="font-size: 10px; text-align: right"><a rel="tag" href="http://technorati.com/tag/%20voip"></a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.straw-dogs.co.uk/03/31/ruby-asterisk/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Asterisk Manager API [PHP]</title>
		<link>http://www.straw-dogs.co.uk/03/15/asterisk-manager-api-php/</link>
		<comments>http://www.straw-dogs.co.uk/03/15/asterisk-manager-api-php/#comments</comments>
		<pubDate>Sat, 15 Mar 2008 18:41:42 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[asterisk]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[pear]]></category>

		<guid isPermaLink="false">http://www.straw-dogs.co.uk/03/15/asterisk-manager-api-php/</guid>
		<description><![CDATA[Again with the PHP code!  This time its a bit more exciting than a CakePHP component.  If you&#8217;ve ever used Asterisk &#8211; an open source PBX &#8211; then you&#8217;ll know it comes with a manager interface which enables developers to send commands to the server to help administer the system and its connected [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.straw-dogs.co.uk/wp-content/asterisk.gif" alt="Asterisk Logo" align="left" height="96" width="174" />Again with the PHP code!  This time its a bit more exciting than a <a href="http://www.straw-dogs.co.uk/03/03/cakephp-sms-component/">CakePHP component</a>.  If you&#8217;ve ever used <a href="http://www.asterisk.org">Asterisk</a> &#8211; an open source PBX &#8211; then you&#8217;ll know it comes with a manager interface which enables developers to send commands to the server to help administer the system and its connected peers and channels.</p>
<p><a href="http://www.straw-dogs.co.uk/asterisk-api-php/">Visit the blog page for more info on the new PHP interface.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.straw-dogs.co.uk/03/15/asterisk-manager-api-php/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Asterisk PBX</title>
		<link>http://www.straw-dogs.co.uk/09/28/asterisk-pbx/</link>
		<comments>http://www.straw-dogs.co.uk/09/28/asterisk-pbx/#comments</comments>
		<pubDate>Thu, 28 Sep 2006 14:27:26 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[asterisk]]></category>

		<guid isPermaLink="false">http://www.straw-dogs.co.uk/index.php/09/28/asterisk-pbx/</guid>
		<description><![CDATA[I’m currently sat on the first floor of an old manor house in Surrey, England having a lunch break on the second day of training in Asterisk setup and configuration. Much has been learned but the course could have been organised better from the start with numerous hiccups and poor preperation from the course tutor.
Asterisk [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.straw-dogs.co.uk/wp-content/uploads/2007/10/img-303-96x96.png" title="Asterisk PBX"><img src="http://www.straw-dogs.co.uk/wp-content/uploads/2007/10/img-303-96x96.png" alt="Asterisk PBX" align="left" border="0" /></a>I’m currently sat on the first floor of an old manor house in Surrey, England having a lunch break on the second day of training in <a href="http://www.asterisk.org/">Asterisk</a> setup and configuration. Much has been learned but the course could have been organised better from the start with numerous hiccups and poor preperation from the course tutor.</p>
<p><a href="http://www.asterisk.org/">Asterisk</a> is an open source software PBX for use (mainly) on Linux operating systems. You can use it to manage your VoIP telephone network and connect it to the outside world enabling many nice features such as call recording, voicemail, dialling plans, IVR, etc.</p>
<p>We had to use Fedora Core 4 instead of 5 due to an issue getting Asterisk running on FC5. I’ve also discovered Cisco phones are worse than naff and South Africans are all friendly Communists.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.straw-dogs.co.uk/09/28/asterisk-pbx/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
