Using pjsip in daemon mode with python twisted
<p>I am trying to run simple pjsip application in daemon mode. I have combined this library with python twisted. Script works fine when I run it in shell &amp; can make call. But when I use it with twisted's Application framework, I get following error.</p>

<pre><code>Object: {Account &lt;sip:192.168.0.200:5060&gt;}, operation=make_call(), error=Unknown error from audio driver (PJMEDIA_EAUD_SYSERR)
</code></pre>

<p>Most of example applications from documents do not run in daemon mode - <a href="https://trac.pjsip.org/repos/wiki/Python_SIP_Tutorial" rel="nofollow">pjsip examples</a>.</p>

<p>Looks like even pjsua doesn't run in background - <a href="http://www.pjsip.org/pjsua.htm" rel="nofollow">pjsua</a></p>

<p>I am wondering, does it work in background. I am not getting exactly what "Unknown error" meant to. Is there any better way to debug ?  </p>

<p>Architecture of my application is as follows -</p>

<ol>
<li>Start pjsip lib, initiate pjsip lib, create transport &amp; create userless account.</li>
<li>Create UDP protocol which listens for incoming requests.</li>
<li>Once app gets request, it makes calls to particular sip uri.</li>
</ol>

<p>Everything goes well when I run app with <a href="https://twistedmatrix.com/documents/16.3.1/api/twisted.internet.interfaces.IReactorUDP.listenUDP.html" rel="nofollow">listenUDP</a> &amp; <code>reactor.run()</code> but when I tries with typical twisted application setup - <a href="http://twistedmatrix.com/documents/12.2.0/core/howto/application.html#auto4" rel="nofollow">twistd</a>( either <code>listenUPD</code> or <code>UDPServer</code>) above error pops up.</p>

<p>Am I doing anything wrong ? Any info will be welcomed. </p>

<p>thank you.</p>

<p>This issue resolved after I set sound devices.</p>

python twisted sip daemon pjsip