Class OPS
Class OPS is used to connect your application to Ozeki Phone System.
Properties
- call_id - Get the identifier of the call.
- call_state - call state at the moment of calling the list_active_calls method.
- source - Get the source of the call.
- caller_id - Get the caller identifier.
- destination - Get the dialed number.
- start_time - Get the call start time.
- ring_duration - Get the ring duration at the moment of calling the list_active_calls method.
- talk_duration - Get the talk duration at the moment of calling the list_active_calls method.
Methods
- 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.
- blind_transfer_callee - Transfer the call during the conversation, and the callee will leave the conversation.
- blind_transfer_caller - Transfer the call during the conversation, and the caller will leave the conversation.
- forward - Forward a call by ID to another number if it can't be answered.
- hangup - Terminates a call in progress by ID.
- hold - Puts both legs of the call from InCall state to Hold state by ID.
- play_file - Plays an audio file (local or downloaded from URL) in an existing call for both party.
- play_file_to_callee - Plays an audio file (local or downloaded from URL) in an existing call for the callee.
- play_file_to_caller - Plays an audio file (local or downloaded from URL) in an existing call for the caller.
- record_mp3 - Records a call in mp3 format.
- record_wav - Records a call in wav format.
- dtmf - Sends a DTMF message for both party.
- dtmf_to_callee - Sends a DTMF message for the callee.
- dtmf_to_caller - Sends a DTMF message for the caller.
- speak - Reads a text for both party using the text to speech engine into a call in progress.
- speak_to_callee - Reads a text for callee using the text to speech engine into a call in progress.
- speak_to_caller - Reads a text for caller using the text to speech engine into a call in progress.
- unhold - Puts both legs of the call to InCall state by ID.