<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:10pt"><div>hej Alexandre,</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">somthing like:</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">1- Add this to failure_route (this for 408 locally generated)<br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">if(t_check_status("408") &amp;&amp;
 (t_local_replied("all"))</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">&nbsp;&nbsp;&nbsp; //cache here</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">2- To get something like global variable , use cache_store from localcache module </div><pre class="escaped"><br>//Binan<br></pre><div style="font-family: times new roman, new york, times, serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b>
 alexandre Moutot &lt;a.moutot@alphalink.fr&gt;<br> <b><span style="font-weight: bold;">To:</span></b> OpenSIPS users mailling list &lt;users@lists.opensips.org&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, September 20, 2012 2:20 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [OpenSIPS-Users] Drouting and gateway monitoring<br> </font> </div> <br>
Hi<br><br>With probing mode a gateway could go down without failure_route processing.<br>When you write "save in cache then number of timeouts", do you mean to save it into an AVP var ? AVP var aren't shared with different opensips process, isn'it ?<br><br>Regards,<br><br>MOUTOT Alexandre<br><br>----- Original Message -----<br>&gt; From: "Flavio Goncalves" &lt;<a ymailto="mailto:flavio@asteriskguide.com" href="mailto:flavio@asteriskguide.com">flavio@asteriskguide.com</a>&gt;<br>&gt; To: "OpenSIPS users mailling list" &lt;<a ymailto="mailto:users@lists.opensips.org" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>&gt;<br>&gt; Sent: Thursday, September 20, 2012 1:33:08 AM<br>&gt; Subject: Re: [OpenSIPS-Users] Drouting and gateway monitoring<br>&gt; Hi<br>&gt; <br>&gt; <br>&gt; You can use failure_route to generate events for gateway timeouts<br>&gt; (Internal 408), save in cache the number of timeouts and after a<br>&gt; certain
 thershold raise an event. Seems simpler and more effective<br>&gt; than checking all the time using fifo.<br>&gt; <br>&gt; <br>&gt; Flavio E. Goncalves<br>&gt; CEO - SipPulse, <a target="_blank" href="http://www.sippulse.com/">www.sippulse.com</a><br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; 2012/9/15 Engineer voip &lt; <a ymailto="mailto:forvoip4@gmail.com" href="mailto:forvoip4@gmail.com">forvoip4@gmail.com</a> &gt;<br>&gt; <br>&gt; <br>&gt; Hi,<br>&gt; I think the easiest way is to use a script with cron and send an email<br>&gt; following the result of the command fifo opensipsctl dr_status<br>&gt; GatewayID without using the databases.<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; 2012/9/14 alexandre Moutot &lt; <a ymailto="mailto:a.moutot@alphalink.fr" href="mailto:a.moutot@alphalink.fr">a.moutot@alphalink.fr</a> &gt;<br>&gt; <br>&gt; <br>&gt; Hi,<br>&gt; <br>&gt; Thank you for your answer. Yes i can actively check via fifo<br>&gt; interface. To have
 some alert, i need to keep all gateways status in a<br>&gt; cache and check all the time through the fifo. I can do that with a<br>&gt; simple script, a little database and cron. I'm looking for the other<br>&gt; way to do that.<br>&gt; <br>&gt; <br>&gt; Regards,<br>&gt; <br>&gt; MOUTOT Alexandre<br>&gt; <a ymailto="mailto:a.moutot@alphalink.fr" href="mailto:a.moutot@alphalink.fr">a.moutot@alphalink.fr</a><br>&gt; +33 (0)6 62 91 95 14<br>&gt; <br>&gt; <br>&gt; <br>&gt; ----- Original Message -----<br>&gt; &gt; From: "Max Mühlbronner" &lt; <a ymailto="mailto:mm@42com.com" href="mailto:mm@42com.com">mm@42com.com</a> &gt;<br>&gt; &gt; To: "OpenSIPS users mailling list" &lt; <a ymailto="mailto:users@lists.opensips.org" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a> &gt;<br>&gt; &gt; Sent: Friday, September 14, 2012 3:39:13 PM<br>&gt; &gt; Subject: Re: [OpenSIPS-Users] Drouting and gateway monitoring<br>&gt; &gt; Hello,<br>&gt;
 &gt;<br>&gt; &gt; Afaik there is no option for logging the disabled gateways (except<br>&gt; &gt; at<br>&gt; &gt; higher debug levels?).<br>&gt; &gt;<br>&gt; &gt; But you can actively check via fifo interface: "opensipsctl fifo<br>&gt; &gt; dr_status GatewayID" which shows current status of the queried<br>&gt; &gt; gateway.<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Best Regards<br>&gt; &gt;<br>&gt; &gt; Max M.<br>&gt; &gt;<br>&gt; &gt; On 09/14/2012 02:14 PM, alexandre Moutot wrote:<br>&gt; &gt; &gt; Hello,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I'm using Opensips with the drouting module. All is ok and works<br>&gt; &gt; &gt; good. I'm using the probe_mode for several gateways : it works<br>&gt; &gt; &gt; good<br>&gt; &gt; &gt; but i don't have any feedback about gateways status. Is there a<br>&gt; &gt; &gt; capability to have a log or to execute an action when a gateway<br>&gt; &gt; &gt; status is modified or otherwise when a gateway goes down.<br>&gt; &gt;
 &gt;<br>&gt; &gt; &gt; Regards,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; MOUTOT Alexandre<br>&gt; &gt; &gt; <a ymailto="mailto:a.moutot@alphalink.fr" href="mailto:a.moutot@alphalink.fr">a.moutot@alphalink.fr</a><br>&gt; &gt; &gt; +33 (0)6 62 91 95 14<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; Users mailing list<br>&gt; &gt; &gt; <a ymailto="mailto:Users@lists.opensips.org" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>&gt; &gt; &gt; http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; --<br>&gt; &gt; Max Mühlbronner<br>&gt; &gt;<br>&gt; &gt; 42com Telecommunication GmbH<br>&gt; &gt; Straße der Pariser Kommune 12-16<br>&gt; &gt; 10243 Berlin<br>&gt; &gt;<br>&gt; &gt; E-Mail: <a ymailto="mailto:mm@42com.com" href="mailto:mm@42com.com">mm@42com.com</a><br>&gt; &gt; Web: <a target="_blank"
 href="http://www.42com.com/">www.42com.com</a><br>&gt; &gt;<br>&gt; &gt; Firmenangaben/Company information:<br>&gt; &gt; Handelsregister/Commercial register: Amtsgericht Berlin HRB 99071 B<br>&gt; &gt; Umsatzsteuer-ID/VAT-ID: DE223812306<br>&gt; &gt; Geschäftsführer/CEO: Thomas Reinig, Alexander Reinig<br>&gt; &gt;<br>&gt; &gt; Diese E-Mail enthält Informationen von 42com Telecommunication GmbH.<br>&gt; &gt; Diese sind möglicherweise vertraulich und ausschließlich für den<br>&gt; &gt; Adressaten bestimmt. Sollten Sie diese elektronische Nachricht<br>&gt; &gt; irrtümlicherweise erhalten haben, so informieren Sie uns bitte<br>&gt; &gt; unverzüglich telefonisch oder per E-Mail.<br>&gt; &gt;<br>&gt; &gt; This message is intended only for the use of the individual or<br>&gt; &gt; entity<br>&gt; &gt; to which it is addressed. If you have received this message by<br>&gt; &gt; mistake, please notify us immediately.<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;
 _______________________________________________<br>&gt; &gt; Users mailing list<br>&gt; &gt; <a ymailto="mailto:Users@lists.opensips.org" 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><br>&gt; <br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; <a ymailto="mailto:Users@lists.opensips.org" 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><br>&gt; <br>&gt; <br>&gt; <br>&gt; --<br>&gt; <br>&gt; Best Regards<br>&gt; <br>&gt; <br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; <a ymailto="mailto:Users@lists.opensips.org"
 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><br>&gt; <br>&gt; <br>&gt; <br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; <a ymailto="mailto:Users@lists.opensips.org" 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><br><br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@lists.opensips.org" 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><br><br><br> </div>
 </div>  </div></body></html>