Random Project

Works great for me

If you send the right parameters and configure asterisk manager account it works great. It broke after an upgrade to asterisk 1.8.9 because they take out the word “Provisioned” in “pri show spans”, so had to add the following code:

else if( strpos( $segment, “Up, Active” ) !== FALSE )
$lines[$count][‘up’] = 1;

Just after the existing section/code:

if( strpos( $segment, “Provisioned, Up, Active” ) !== FALSE )
$lines[$count][‘up’] = 1;