OPS list_active_calls
You could get the list of active calls with the aid of the list_active_calls instance method.
def list_active_calls |
Return value
If the answer is parsable, and an error occures (for example Authentication required, and no authentication data has been provided) it will return a Response object. Otherwise it will return an array of active calls, filled with Call objects.
Example
ops = OPS.new '192.168.0.1', nil, '9999', 'admin', 'password' puts calls = ops.list_active_calls |