linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-developers] Setting transport for linphone web


From: Saumil Gandhi
Subject: [Linphone-developers] Setting transport for linphone web
Date: Fri, 22 Aug 2014 00:15:32 +0530

Hi,

How can I set my transport to tcp when I am registering a user? The following is my registration function:

=====

function registration(username,password,server){
                var core = getCore();

                /*create proxy config*/        
                var proxy = core.newProxyConfig();

                /*create authentication structure from identity*/
                var authinfo = core.newAuthInfo(username, null,password,null,null);
                /*add authentication info to LinphoneCore*/
                core.addAuthInfo(authinfo);

                /*configure proxy entries*/
                proxy.identity = 'sip:' + username + '@' + server; /*set identity with user name and domain*/
                proxy.serverAddr = 'sip:' + server; /* we assume domain = proxy server address*/
                proxy.registerEnabled = true; /*activate registration for this proxy config*/
                //proxy.expires=600;
                core.addProxyConfig(proxy); /*add proxy config to linphone core*/
                core.defaultProxy = proxy; /*set to default proxy*/
            }

=====

The linphone core object has a member called sipTransports, but I can't seem to find any information on how to use it. Any help would be appreciated.

Thanks,
Saumil

reply via email to

[Prev in Thread] Current Thread [Next in Thread]