search for: ami_connect

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

Did you mean: ads_connect
2012 May 03
1
AMI disconnects
...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 ($ami->get_event(1) && $watchdog--) { if ($watchdog < 2) { print "Watchdog timer too short.\n"; } $change++; } Do other stuff from here. if ($change...