<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sun, 19 May 2013 19:11:24 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Marcelo Gornstein's Blog: Making your ivr nodes (call) flow with PAGI]]></title>
      <guid>http://www.phpdeveloper.org/news/17955</guid>
      <link>http://www.phpdeveloper.org/news/17955</link>
      <description><![CDATA[<p>
<i>Marcelo Gornstein</i> has returned to his "IVR with PHP" series in <a href="http://marcelog.github.com/articles/making_your_ivr_nodes_call_flow_with_pagi_and_php_asterisk.html">this latest post</a> (see others <a href="http://phpdeveloper.org/news/17776">here</a> and <a href="http://phpdeveloper.org/news/17613">here</a>). In this new post he shows you how to create a full flow of interaction for your callers:
</p>
<blockquote>
The <a href="http://marcelog.github.com/articles/pagi_node_call_flow_easy_telephony_application_for_asterisk_php.html">last article</a> was about how to create call flow nodes for asterisk, using pagi and php, to easily create telephony applications. It's now time to add a layer on top of it, and create a complete call flow with several nodes.
</blockquote>
<p>
He talks about NodeControllers to control execution flow, results from their execution, available actions and an example of creating a controller and adding nodes. He builds on this simple controller and shows how to handle a few actions including responding to user feedback, adding multiple menu options and some more complex logic using a closure to contain the functionality.
</p>]]></description>
      <pubDate>Mon, 14 May 2012 12:09:50 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Marcelo Gornstein's Blog: Unit test your PHP IVR applications with PAGI]]></title>
      <guid>http://www.phpdeveloper.org/news/17613</guid>
      <link>http://www.phpdeveloper.org/news/17613</link>
      <description><![CDATA[<p>
<i>Marcelo Gornstein</i> has a recent post to his blog about a method he's come up with to test your PHP-based IVR ("interactive voice response" systems for telephony) applications <a href="http://marcelog.github.com/articles/pagi_mock_client_unit_test_ivr_application_telephony_asterisk_agi.html">with the help of PAGI</a>.
</p>
<blockquote>
Since version 1.9.2, <A href="http://marcelog.github.com/PAGI/">PAGI</a> comes with a mock of a pagi client, suitable to be used in your own unit tests, so you can test your telephony applications, like IVRs. The idea behind the mocked client is to let you test the callflow side of your application, the user interaction and the exact sequence an ivr application should obey. Let's see how to use it.
</blockquote>
<p>
He shows how to test a <a href="http://marcelog.github.com/articles/pagi_tutorial_create_voip_telephony_application_for_asterisk_with_agi_and_php.html">basic PAGI application</a> by hooking in the PAGI client into his <a href="https://github.com/marcelog/Pagi-App-And-Test-Example/blob/master/test/php/App/AppTest.php">PHPUnit test</a> for the app and the <a href="http://marcelog.github.com/articles/pagiexamplecoverage.png">code coverage</a> of the result. The <a href="http://ci.marcelog.name:8080/job/PAGI/javadoc/db_Client_Impl_MockedClientImpl.html#%5CPAGI%5CClient%5CImpl%5CMockedClientImpl">MockedClientImpl</a> client lets you test the application without having the external dependency of actually running it. He includes some examples of commands and how they'd be mocked out with this client as well as a handy list of the "on*" methods available (like "onDial" or "onSayAlpha").
</p>
<p>
You can find the complete source for everything in the article <a href="https://github.com/marcelog/Pagi-App-And-Test-Example">on his github account</a>.
</p>]]></description>
      <pubDate>Thu, 01 Mar 2012 13:25:49 -0600</pubDate>
    </item>
  </channel>
</rss>
