Forums
« Back to APIs

How to configure IM settings in sample.html

Combination View Flat View Tree View
Threads [ Previous | Next ]
How to configure IM settings in sample.html
presence im presence integrated wiht voicevideo issue server configuration
Answer
3/19/13 7:46 PM
Hi all,
I have successfully implemented and logged on to Jabber SDK Voice&Video latest release. However, whenever I log in, it alerts 'Cannot connect to IM server!' I changed the httpbinding configuration and set domain name and httpbinding address in the caxl function in sample.html and jabberwerx.js! On which parts of the code do I need to set the CUP server address? In the FAQ section, it says we need to configure the jid and remotejid in sample.html, how is it achieved? Any advice will be appreciated. The changes I made for httpbinding and function call are as shown below :
------from sample.html----------------
var calls = multiCallContainer('call', 'calllist');
 
        var videoObject = null;
        var previewVideoObject = null;
        var pinpVideoObject = null;
 
        var showLocalVideo = false;
 
        var caxl = caxlHelper("fw.garanti.com.tr", "https://10.231.103.120:7335/httpbinding", incomingMsgCallback, settings);
 
--------------from jabberwerx.js------------------
 var jabberwerx;
    jabberwerx = {
        version: '8.6.1',
        _config: {
            persistDuration: 30,
            unsecureAllowed: false,
            capabilityFeatures: [],
            httpBindingURL: "https://10.231.103.120:7335/httpbinding",
            httpBindingURL_secondary: "https://10.231.103.120:7335/httpbinding",
            baseReconnectCountdown: 30,
            bindRetryCountdown: 30,
            enabledMechanisms: ["DIGEST-MD5", "PLAIN"],
            serviceDiscoveryEnabled: false
----------------------------------------------------------------------------------------------------------

Hi Fikri,
Are you testing on shared sandbox? You can try http://10.10.20.9:7335/httpbinding or http://cup02:7335/httpbinding as your XMPP server
Thanks,
Howard