Call hangup

Terminates a call in progress by ID.

def hangup

Code example 1 - Definition

Example

#get the active calls list
calls = OPS.list_active_calls '192.168.0.1', nil, 'admin', 'password'

#pick up the first call
call = calls[0]

if (call != nil)
call.hangup
end

Code example 2 - Hangup a call

More information