Call hold

Puts both legs of the call from InCall state to Hold state by ID.

def hold

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.hold
end

Code example 2 - Hold a call

More information