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.