<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> </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’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 => 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 => 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 => 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> </o:p></span></font></p>
<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'><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> </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 –l –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> </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…<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 => 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 => 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 => 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> </o:p></span></font></p>
<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'><o:p> </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. The output is
showing…<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> </o:p></span></font></p>
<p class=MsoNormal><font size=4 face=Arial><span style='font-size:14.0pt;
font-family:Arial'> -- Executing [101@phones:3]
ExternalIVR("SIP/1000-00000000", "ivr://localhost:2949") 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 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'> == 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'> <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> </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> </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>