<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'>I am running Asterisk 1.6.2.0 release.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'>I am able to get the dialplan to execute an external IVR
that&#8217;s in a file.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'>exten =&gt; 101,1,Verbose(1,Test)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'>exten =&gt; 101,2,Answer()<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'>exten =&gt; 101,n,ExternalIVR(/root/play_beep.sh)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'>However, when I try to have ExternalIVR connect to a socket
it is not working.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'>For the server, I execute<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'>netcat &#8211;l &#8211;p 2949<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'>The dialplan looks like&#8230;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'>exten =&gt; 101,1,Verbose(1,Test)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'>exten =&gt; 101,2,Answer()<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'>exten =&gt; 101,n,ExternalIVR(ivr://localhost:2949)<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'>It successfully answers the call.&nbsp; The output is
showing&#8230;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp; -- Executing [101@phones:3]
ExternalIVR(&quot;SIP/1000-00000000&quot;, &quot;ivr://localhost:2949&quot;) in
new stack<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'>[Mar&nbsp; 2 14:09:41] WARNING[3396]: app_externalivr.c:402
app_exec: SIP/1000-00000000: Answering channel and starting generator<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'>&nbsp; == Spawn extension (phones, 101, 3) exited non-zero
on 'SIP/1000-00000000'<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'>Does socket ExternalIVR require some additional modules or
settings?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'>Have a great day!<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'>Dan Cropp<o:p></o:p></span></font></p>

</div>

</body>

</html>