Tworzenie połączenia
$conpeek.dialog.connect("<<parameters>>", "<<success_callback>>", "<<failure_callback>>");
Dependency
The session must be connected.
Info
Connect to destination. If no destination specified - connect to saved target $conpeek.util.getTarget() .
If no media specified - connect to all available media from $conpeek.connect.getVideoEnabled() , $conpeek.connect.getAudioEnabled() and $conpeek.connect.getChatEnabled() .
Fire success callback if request has been accepted to permit a call. Fire failure callback if request to call has been rejected.
Arguments
| Name | Type |
|---|---|
parameters |
OBJECT |
success_callback |
FUNCTION |
failure_callback |
FUNCTION |
Parameters
| Name | Type |
|---|---|
media |
LIST |
presentation |
STRING |
destination |
STRING |
Example
Connect to target
$conpeek.dialog.connect();
$conpeek.dialog.connect({ media: ["video", "chat"], presentation: "Anonymous", destination: "helpdesk"
});
$conpeek.dialog.connect({ media: ["audio"], presentation: "Anonymous", destination: "helpdesk"
}, function () {
alert("the request has been accepted");
}, function () {
alert("the request has been rejected");
});