There is an OpenSER proxy in front of Asterisk which handles the clients. The script is called by OpenSER whenever a client sends a SUBSCRIBE request for MWI. It uses php to connect to Asterisk like so: fsockopen(&quot;$mhost&quot;,&quot;5038&quot;, $errno, $errstr, 5) and gets the user&#39;s voicemail counts.<br>
<br>I&#39;m not sure how I would maintain this as a persistent connection that would live if I restart Asterisk. I&#39;d have to detect that somehow.<br><br>Adrian<br><br><div class="gmail_quote">On Thu, Apr 10, 2008 at 12:14 AM, Stefan Reuter &lt;<a href="mailto:stefan.reuter@reucon.com">stefan.reuter@reucon.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">Adrian A wrote:<br>
&gt; Is there any way of removing this line from showing on the console? I<br>
</div>&gt; have a script that logs in every few seconds to manager (...)<br>
<br>
Maybe a better solution is to rethink your architecture. The Manager API<br>
is well suited for long running connections, so there is no need to<br>
reconnect every few seconds.<br>
<br>
=Stefan<br>
<br>
--<br>
reuter network consulting<br>
Neusser Str. 110<br>
50760 Koeln<br>
Germany<br>
Telefon: +49 221 1305699-0<br>
Telefax: +49 221 1305699-90<br>
E-Mail: &nbsp;<a href="mailto:stefan.reuter@reucon.com">stefan.reuter@reucon.com</a><br>
Jabber: &nbsp;<a href="mailto:stefan.reuter@reucon.com">stefan.reuter@reucon.com</a><br>
WWW: &nbsp; &nbsp; <a href="http://www.reucon.com" target="_blank">http://www.reucon.com</a><br>
<br>
Steuernummern 215/5140/1791 USt-IdNr. DE220701760<br>
<br>
<br>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
 &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>