Hello,
My name is Paulo Silva and i am new to Jabber SDK.
I have been playing with some sample code and am stuck with a registerPhone call that doesn't seem to do anything. Bellow is my jQuery code attached to a very simple html page.
$(document).ready(function(){
$('#lbldebug').html('init....');
var videoObject = null;
$('#container').cwic('init', {
ready: function() {
$('#lbldebug').html('init success');
$(this).cwic('registerPhone', {
user: 'smacks'
, password: 'C1sco12345'
, cucm: '198.18.133.3'
, mode: 'SoftPhone'
, forceRegistration: true
, devicesAvailable: function (devices, phoneMode, callback){$('#lbldebug').html('register success: device');}
, success: function(registration) {$('#lbldebug').html('register success:' + registration.mode);}
, error: function(err) {$('#lbldebug').html('register failed:' + err.message);}
});
}
,serviceDiscovery: false});
$('#callbtn').click(function() {
var num = $('#numtodial').val();
$('#container').cwic('startConversation', {participant: {recipient: num}, videoDirection:
'sendrecv', remoteVideoWindow: videoObject});
});
$('#container').bind('conversationStart.cwic', function(event,conversation) {
$('#callcontainer').show();
$('#container').cwic('updateConversation', {'addRemoteVideoWindow':'videocallobject'});
});
$('#callcontainer.endbtn').click(function() {
$('#container').cwic('endConversation');
});
$('#container').bind('conversationEnd.cwic', function(event,conversation) {
$('#callcontainer').hide();
});
});
I get to init success no problem, indicating that the plug in was successfully initialized.
Please note that the user name, password and UCM ipaddress are from a dCloud session.
I get two different outcomes:
#1 - Typing an invalid cucm IP address fires the error function with an Authorization failed message error.
#2 - With the right cucm IP address in there, i can pretty much type whatever i want for the user name and password; nothing
Any help appreciated!
Paulo Silva