Call attended_transfer

If getting a call, you can put it on hold and call a 2nd number, then connect the call with the 2nd number using AttendedTransfer.

def attended_transfer target_call_id

Code example 1 - Definition

Method parameters

Parameter name Value Description Default value Mandatory
target_call_id string value
e.g. '1JxJfp'
The ID of the call where the participant will be transferred to. (None) Yes

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)
puts call.attended_transfer calls[1].call_id
end

Code example 2 - Attended transfer

More information