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

<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

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

<div class=Section1>

<p class=MsoNormal><span style='color:#1F497D'>I have a solution to the unimrcpserver
daemon mode! strace helped me narrow it down (also turning on unimrcp’s
logger.xml settings to full DEBUG).<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Final solution was to execute
with:<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>./unimrcpserver –r /usr/local/unimrcp/
-d<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Why? I noticed that
unimrcpserver failed whenever I started it from elsewhere when using the full
path (/usr/local/unimrcp/bin/unimrcpserver ). It couldn’t find various relative
config files. So I downloaded the unimrcp source to see where it was looking  (“../”).
It turns out there is a startup switch called –r which allows you to put the
full path to the default starting directory.  <o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>It always worked in SSH because
I was always starting it from in the bin directory with ./unimrcpserver. The “../”
that it defaults with found the correct directories. However, by starting it in
daemon mode it was not able to reach the same directory structure from the same
starting point. The fully qualified path made it work.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>-Jason Moran<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Steven Ayre
[mailto:steveayre@gmail.com] <br>
<b>Sent:</b> Tuesday, June 28, 2011 2:47 PM<br>
<b>To:</b> FreeSWITCH Users Help<br>
<b>Subject:</b> Re: [Freeswitch-users] UniMRCP Server as daemon won't connect
RTSP<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal>Have you tried doing a strace or gcore of it when it's
running with --daemon?<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal>If it's running but not listening/responding it could be
sonething like a locking problem. Tracing might show you what it is (or isnt)
doing. Pid file could be one culprit.<br>
<br>
Steve on iPhone<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
On 27 Jun 2011, at 22:52, &quot;Jason Moran&quot; &lt;<a
href="mailto:jmoran@secureachsystems.com">jmoran@secureachsystems.com</a>&gt;
wrote:<o:p></o:p></p>

</div>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'>

<div>

<p class=MsoNormal>I’ve been playing around with IVONA’s new unimrcp plugin
with unimrcp 1.0.0 (r1725) on OpenSuse 11.4<o:p></o:p></p>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<p class=MsoNormal>Anyway, when I start it up with the following, it stays in
the foreground of my SSH w/ the following command:<o:p></o:p></p>

<p class=MsoNormal>./unimrcpserver<o:p></o:p></p>

<p class=MsoNormal>That works! However, since it’s in the foreground when I
close the SSH window, it kills the process.<o:p></o:p></p>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<p class=MsoNormal>If I use the so-called daemon mode (-d or --daemon) it says
it is going into daemon mode, but FS will immediately return that it “Failed to
Connect to RTSP Server...” at the IP:port I specified. The unimrcpserver
process is running, but doesn’t seem to respond to anything.<o:p></o:p></p>

<p class=MsoNormal>./unimrcpserver –d<o:p></o:p></p>

<p class=MsoNormal>./unimrcpserver --daemon<o:p></o:p></p>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<p class=MsoNormal>If I attempt to background it by either using “&amp;” or
ctrl-z it says [1]+&nbsp; Stopped&nbsp; ./unimrcpserver and FS will
successfully make the RTSP connection but then nothing will happen. Mod_unimrcp
will spit out a warning about “MRCP session has not opened after 5000 ms”<o:p></o:p></p>

<p class=MsoNormal>./unimrcpserver &amp;<o:p></o:p></p>

<p class=MsoNormal>Those are hard to kill. But when I kill -9 it then FS will
finally remove the MRCP handle and tell me that it couldn’t allocate the speech
engine.<o:p></o:p></p>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<p class=MsoNormal>Lastly, I can nohup it, but then unimrcpserver eats up 95%+
of the CPU (instead of 1-3% as it does when I have it in the foreground), which
it does not do when it runs in any other modes. It also makes a very, very
large nohup.out file that keeps on growing. Even if I tell it to not log.<o:p></o:p></p>

<p class=MsoNormal>nohup ./unimrcpserver &amp;<o:p></o:p></p>

<p class=MsoNormal>nohup ./unimrcpserver –o 0 &amp;<o:p></o:p></p>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<p class=MsoNormal>Ideas??<br>
Thanks,<o:p></o:p></p>

<p class=MsoNormal>Jason Moran<o:p></o:p></p>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

</blockquote>

<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'>

<div>

<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><o:p></o:p></span></p>

</div>

</blockquote>

</div>

</body>

</html>