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