11.07.2015 Views

Mizu Webphone - Mizu Voip

Mizu Webphone - Mizu Voip

Mizu Webphone - Mizu Voip

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Disconnect incoming call. (API_Hangup will also work)boolean API_Forward(int line, String peer)Forward incoming call to peer (with 302 Moved Temporarily disconnect code)boolean API_Transfer(int line, String peer)Transfer current call to peer which is usually a phone number or a SIP username. (Will use the REFER method after SIP standards).You can set the mode of the transfer with the “transfertype” applet parameter.If the peer parameter is empty than will interconnect the currently running calls (should be used only if you have 2 simultaneous calls)boolean API_TransferDialog()Instead of calling the API_Transfer function and pass a number, with this function you can let the webphone to ask the C number from the user.boolean API_AddVideo(int line, int calltype)Add video media for an existing voice call.The calltype can have the following values:‣ 1: add video‣ 2: add screensharingboolean API_StopVideo(int line)Will stop the video stream at the specified line.boolean API_MuteEx(int line, boolean mute, int direction)Mute current call.The direction can have the following values:‣ 0: mute in and out‣ 1: mute out (speakers)‣ 2: mute in (microphone)‣ 3: mute in and out (same as 0)‣ 4: mute default (set by the “defmute” applet parameter, which is “mute microphone only” by default)int API_IsMuted(int line)Return if the selected line is muted or not.Return values:‣ -1: unknown‣ 0: not muted‣ 1: both muted (in/out)‣ 2: out muted (speaker)‣ 3: in muted (microphone)‣ 4: both muted (in/out; same as 1)boolean API_Hold(int line, boolean hold)Hold current call. This will issue an UPDATE or a reINVITE.Set the second parameter to true for hold and false to reload.boolean API_IsOnHold(int line)Query if the selected line is on hold or notReturn values:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!