search for: send_to_subscrib

Displaying 1 result from an estimated 1 matches for "send_to_subscrib".

2012 May 03
1
AMI disconnects
...ly, causing false alarms in my monitoring. Here's what the code looks like: ========================================================= while ($more) { $change = 0; while (!$ami->connected(5)) { Event::Shutdown(Event=>"Shutdown"); send_to_subscribers( {"Event" => "Shutdown", "customer_id" => 0}, "Connection to Asterisk lost on $server"); $change++; sleep(1); ami_connect(); next; } $watchdog = 10; while ($a...