showrav017 / jain-sip

Automatically exported from code.google.com/p/jain-sip
0 stars 0 forks source link

SipURI getUserAtHost and getUseratHostPort returning wrong values #107

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

What is the expected output? What do you see instead?

missing user and a ":@<host" is returned instead

What version of the product are you using? On what operating system?
Latest svn

Please provide any additional information below.

s = ":"+this.AT; seems wrong

SipUri.prototype.getUserAtHost =function(){
    if(logger!=undefined) logger.debug("SipUri:getUserAtHost()");
    var user = "";
    if (this.authority.getUserInfo() != null)
    {
        user = this.authority.getUserInfo().getUser();
    }
    var host = this.authority.getHost().encode();
    var s = null;
    if (user=="") {
        s = null;
    } else {
        s = ":"+this.AT;
    }
    s=s+host;
    return s;
}

Original issue reported on code.google.com by sergio.g...@gmail.com on 30 Apr 2013 at 10:18

GoogleCodeExporter commented 8 years ago

Original comment by laurent.strullu.orange@gmail.com on 6 May 2013 at 3:04

GoogleCodeExporter commented 8 years ago
Not sure if this is related, but sometimes I get  :

Parser:host():Via: SIP/2.0/WS 
192.168.0.45:54946;branch=z9hG4bK-353038-30173d7287ceb1463af3e104acb45add;rport=
54946;received=192.168.0.45
 missing host name 16 jain-sip.js:2837
StringMsgParser:processHeader(): catched exception:Parser:host(): Missing host 
name jain-sip.js:17368
Parser:host():From: <sip:alice@telestax.com>;tag=1381421705554
 missing host name 17 jain-sip.js:2837
AddressParametersParser:parse(): address Error jain-sip.js:17536
StringMsgParser:processHeader(): catched exception:Parser:host(): Missing host 
name jain-sip.js:17368
Parser:host():Contact: <sip:alice@192.168.0.45:54946;transport=ws>;expires=3600
 missing host name 20 jain-sip.js:2837
AddressParametersParser:parse(): address Error jain-sip.js:17536
StringMsgParser:processHeader(): catched exception:Parser:host(): Missing host 
name jain-sip.js:17368
PrivateJainSipClientConnector:processTimeout(): catched exception:TypeError: 
Cannot call method 'getCallId' of undefined WebRTComm.js:1955
PrivateJainSipClientConnector:processTimeout(): SIP registration failed, 
request timeout, no response from SIP server 

Original comment by jean.deruelle on 10 Oct 2013 at 4:19