Hi, <br><span id="result_box" class="" lang="en"><span class="hps">I think</span> <span class="hps">the</span> <span class="hps">easiest way</span> <span class="hps">is to use a</span> <span class="hps">script</span> <span class="hps">with</span> <span class="hps">cron</span> <span class="hps">and</span> <span class="hps">send an email</span> <span class="hps">following the</span> <span class="hps">result of the command</span> <span class="hps">fifo</span> <span class="hps">opensipsctl</span> <span class="hps">dr_status</span> <span class="hps">GatewayID</span></span> without using the databases.<br>
<br><div class="gmail_quote">2012/9/14 alexandre Moutot <span dir="ltr">&lt;<a href="mailto:a.moutot@alphalink.fr" target="_blank">a.moutot@alphalink.fr</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Thank you for your answer. Yes i can actively check via fifo interface. To have some alert, i need to keep all gateways status in a cache and check all the time through the fifo. I can do that with a simple script, a little database and cron. I&#39;m looking for the other way to do that.<br>

<div class="im HOEnZb"><br>
Regards,<br>
<br>
MOUTOT Alexandre<br>
<a href="mailto:a.moutot@alphalink.fr">a.moutot@alphalink.fr</a><br>
<a href="tel:%2B33%20%280%296%2062%2091%2095%2014" value="+33662919514">+33 (0)6 62 91 95 14</a><br>
<br>
</div><div class="HOEnZb"><div class="h5">----- Original Message -----<br>
&gt; From: &quot;Max Mühlbronner&quot; &lt;<a href="mailto:mm@42com.com">mm@42com.com</a>&gt;<br>
&gt; To: &quot;OpenSIPS users mailling list&quot; &lt;<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>&gt;<br>
&gt; Sent: Friday, September 14, 2012 3:39:13 PM<br>
&gt; Subject: Re: [OpenSIPS-Users] Drouting and gateway monitoring<br>
&gt; Hello,<br>
&gt;<br>
&gt; Afaik there is no option for logging the disabled gateways (except at<br>
&gt; higher debug levels?).<br>
&gt;<br>
&gt; But you can actively check via fifo interface: &quot;opensipsctl fifo<br>
&gt; dr_status GatewayID&quot; which shows current status of the queried<br>
&gt; gateway.<br>
&gt;<br>
&gt;<br>
&gt; Best Regards<br>
&gt;<br>
&gt; Max M.<br>
&gt;<br>
&gt; On 09/14/2012 02:14 PM, alexandre Moutot wrote:<br>
&gt; &gt; Hello,<br>
&gt; &gt;<br>
&gt; &gt; I&#39;m using Opensips with the drouting module. All is ok and works<br>
&gt; &gt; good. I&#39;m using the probe_mode for several gateways : it works good<br>
&gt; &gt; but i don&#39;t have any feedback about gateways status. Is there a<br>
&gt; &gt; capability to have a log or to execute an action when a gateway<br>
&gt; &gt; status is modified or otherwise when a gateway goes down.<br>
&gt; &gt;<br>
&gt; &gt; Regards,<br>
&gt; &gt;<br>
&gt; &gt; MOUTOT Alexandre<br>
&gt; &gt; <a href="mailto:a.moutot@alphalink.fr">a.moutot@alphalink.fr</a><br>
&gt; &gt; <a href="tel:%2B33%20%280%296%2062%2091%2095%2014" value="+33662919514">+33 (0)6 62 91 95 14</a><br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Users mailing list<br>
&gt; &gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt; &gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><span onmouseout="cancel = false; window.setTimeout(WRCHideContent, 1000); clearTimeout(showTimer);" onmouseover=" var self = this; showTimer = window.setTimeout(function(){WRCShowContent({&#39;rating&#39;:{&#39;value&#39;:-1,&#39;weight&#39;:-1},&#39;flags&#39;:{&#39;shopping&#39;:null,&#39;social&#39;:null,&#39;news&#39;:null,&#39;it&#39;:null,&#39;corporate&#39;:null,&#39;pornography&#39;:null,&#39;violence&#39;:null,&#39;gambling&#39;:null,&#39;drugs&#39;:null,&#39;illegal&#39;:null},&#39;single&#39;:true,&#39;ttl&#39;:null}, self.className)},600);" class="wrc0" style="padding-right:16px;width:16px;height:16px"></span><br>

&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Max Mühlbronner<br>
&gt;<br>
&gt; 42com Telecommunication GmbH<br>
&gt; Straße der Pariser Kommune 12-16<br>
&gt; 10243 Berlin<br>
&gt;<br>
&gt; E-Mail: <a href="mailto:mm@42com.com">mm@42com.com</a><br>
&gt; Web: <a href="http://www.42com.com" target="_blank">www.42com.com</a><span onmouseout="cancel = false; window.setTimeout(WRCHideContent, 1000); clearTimeout(showTimer);" onmouseover=" var self = this; showTimer = window.setTimeout(function(){WRCShowContent({&#39;rating&#39;:{&#39;value&#39;:-1,&#39;weight&#39;:-1},&#39;flags&#39;:{&#39;shopping&#39;:null,&#39;social&#39;:null,&#39;news&#39;:null,&#39;it&#39;:null,&#39;corporate&#39;:null,&#39;pornography&#39;:null,&#39;violence&#39;:null,&#39;gambling&#39;:null,&#39;drugs&#39;:null,&#39;illegal&#39;:null},&#39;single&#39;:true,&#39;ttl&#39;:null}, self.className)},600);" class="wrc0" style="padding-right:16px;width:16px;height:16px"></span><br>

&gt;<br>
&gt; Firmenangaben/Company information:<br>
&gt; Handelsregister/Commercial register: Amtsgericht Berlin HRB 99071 B<br>
&gt; Umsatzsteuer-ID/VAT-ID: DE223812306<br>
&gt; Geschäftsführer/CEO: Thomas Reinig, Alexander Reinig<br>
&gt;<br>
&gt; Diese E-Mail enthält Informationen von 42com Telecommunication GmbH.<br>
&gt; Diese sind möglicherweise vertraulich und ausschließlich für den<br>
&gt; Adressaten bestimmt. Sollten Sie diese elektronische Nachricht<br>
&gt; irrtümlicherweise erhalten haben, so informieren Sie uns bitte<br>
&gt; unverzüglich telefonisch oder per E-Mail.<br>
&gt;<br>
&gt; This message is intended only for the use of the individual or entity<br>
&gt; to which it is addressed. If you have received this message by<br>
&gt; mistake, please notify us immediately.<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><span onmouseout="cancel = false; window.setTimeout(WRCHideContent, 1000); clearTimeout(showTimer);" onmouseover=" var self = this; showTimer = window.setTimeout(function(){WRCShowContent({&#39;rating&#39;:{&#39;value&#39;:-1,&#39;weight&#39;:-1},&#39;flags&#39;:{&#39;shopping&#39;:null,&#39;social&#39;:null,&#39;news&#39;:null,&#39;it&#39;:null,&#39;corporate&#39;:null,&#39;pornography&#39;:null,&#39;violence&#39;:null,&#39;gambling&#39;:null,&#39;drugs&#39;:null,&#39;illegal&#39;:null},&#39;single&#39;:true,&#39;ttl&#39;:null}, self.className)},600);" class="wrc0" style="padding-right:16px;width:16px;height:16px"></span><br>

<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><span onmouseout="cancel = false; window.setTimeout(WRCHideContent, 1000); clearTimeout(showTimer);" onmouseover=" var self = this; showTimer = window.setTimeout(function(){WRCShowContent({&#39;rating&#39;:{&#39;value&#39;:-1,&#39;weight&#39;:-1},&#39;flags&#39;:{&#39;shopping&#39;:null,&#39;social&#39;:null,&#39;news&#39;:null,&#39;it&#39;:null,&#39;corporate&#39;:null,&#39;pornography&#39;:null,&#39;violence&#39;:null,&#39;gambling&#39;:null,&#39;drugs&#39;:null,&#39;illegal&#39;:null},&#39;single&#39;:true,&#39;ttl&#39;:null}, self.className)},600);" class="wrc0" style="padding-right:16px;width:16px;height:16px"></span><br>

</div></div></blockquote></div><br><br clear="all"><br>-- <br><br>Best Regards<br><br>