I'm trying to configure a broadvoice account with SipXezPhone but could not do so because of some problems.
I tried configuring the same account using X-Lite and it works. But when I tried the same usinf SipXezPhone it fails. The problem is because of a 410 Unauthorized error message that is getting posted from the BroadVoice server.
1. SipXezPhone------------------------------------>BroadVoice Server
REGISTER (realm=sip.broadvoice.com)
SipXezPhone<------------------------------------BroadVoice Server
401(realm=Broadworks)
2. SipXezPhone------------------------------------>BroadVoice Server
REGISTER with Credentials (realm=Broadworks)
SipXezPhone<------------------------------------BroadVoice Server
401(realm=Broadworks)
Actually the second request itself was not getting posted initially since a Line Object could not be found for realm=BroadWorks.
When we send the first REGISTER request, the realm value was sip.broadvoice.com and a Line Object, SipAccount entry in a list etc were created based on this realm value. When we try to find a LineObject for realm=Broadworks, NULL was returned and the REREGISTER (2nd REGISTER req) was not sent at all. I made some changes to the code and now I'm able to send the 2nd REGISTER request, but still get a 410 error back from the server.
I'm not sure where the problem is. It wud be really helpful if someone cud help me resolve this. I'm working on this issue for 4 days now, but without luck.
I'm pasting both the X-Lite and SipXezPhone Trace Snippets for reference and attaching the full SipXezPhone trace file as well for ur reference
TRACES:
************************************************X-Lite TRACE*************************************************************
SEND TIME: 82120616
SEND >> 147.135.0.128:5060
REGISTER sip:sip.broadvoice.com SIP/2.0
Via: SIP/2.0/UDP 172.42.172.91:5061;rport;branch=z9hG4bKDF8882420DA54FE5936DEB333B05EB5E
From: saisuresh <sip:
6094551627@sip.broadvoice.com>;tag=1262718156
To: saisuresh <sip:
6094551627@sip.broadvoice.com>
Contact: "saisuresh" <sip:
6094551627@172.42.172.91:5061>
Call-ID:
9CF04C446DA3484E99E33DD1EB1C327C@sip.broadvoice.com
CSeq: 4117 REGISTER
Expires: 1800
Max-Forwards: 70
User-Agent: X-Lite release 1105x
Content-Length: 0
RECEIVE TIME: 82120952
RECEIVE << 147.135.0.128:5060
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 172.42.172.91:5061;received=203.76.142.2;branch=z9hG4bKDF8882420DA54FE5936DEB333B05EB5E;rport=55175
From: saisuresh <sip:
6094551627@sip.broadvoice.com>;tag=1262718156
To: saisuresh <sip:
6094551627@sip.broadvoice.com>;tag=SD40dvf99-
Call-ID:
9CF04C446DA3484E99E33DD1EB1C327C@sip.broadvoice.com
CSeq: 4117 REGISTER
WWW-Authenticate: DIGEST realm="BroadWorks",qop="auth",algorithm=MD5,nonce="BroadWorksXepnxcg61Tjvjq3cBW"
Content-Length: 0
SEND TIME: 82120955
SEND >> 147.135.0.128:5060
REGISTER sip:sip.broadvoice.com SIP/2.0
Via: SIP/2.0/UDP 172.42.172.91:5061;rport;branch=z9hG4bK4687AA10283E42AD866D6873F9B1A9BC
From: saisuresh <sip:
6094551627@sip.broadvoice.com>;tag=1262718156
To: saisuresh <sip:
6094551627@sip.broadvoice.com>
Contact: "saisuresh" <sip:
6094551627@172.42.172.91:5061>
Call-ID:
9CF04C446DA3484E99E33DD1EB1C327C@sip.broadvoice.com
CSeq: 4118 REGISTER
Expires: 1800
Authorization: Digest username="6094551627",realm="BroadWorks",nonce="BroadWorksXepnxcg61Tjvjq3cBW",response="c215f7f2f64be1c9f106bcfbed32f269",uri="sip:sip.broadvoice.com",algorithm=MD5,qop=auth,cnonce="DE4A72D88D144C54BE7BDB041D15B181",nc=00000001
Max-Forwards: 70
User-Agent: X-Lite release 1105x
Content-Length: 0
RECEIVE TIME: 82121303
RECEIVE << 147.135.0.128:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.42.172.91:5061;received=203.76.142.2;branch=z9hG4bK4687AA10283E42AD866D6873F9B1A9BC;rport=55175
From: saisuresh <sip:
6094551627@sip.broadvoice.com>;tag=1262718156
To: saisuresh <sip:
6094551627@sip.broadvoice.com>;tag=SD40dvf99-
Call-ID:
9CF04C446DA3484E99E33DD1EB1C327C@sip.broadvoice.com
CSeq: 4118 REGISTER
Contact: <sip:
6094551627@172.42.172.91:5061>;expires=20;q=0.5
Content-Length: 0
***************************************************END X-Lite TACE****************************************************************
**************************************************SipXezPhone Trace: (SIP Msgs Alone)******************************************
----OUTGOING
Remote Host:147.135.0.128----
Port: 5060----\n
REGISTER sip:sip.broadvoice.com SIP/2.0\r\n
From: sip:
6094551627@sip.broadvoice.com;tag=67c557d1\r\n
To: sip:
6094551627@sip.broadvoice.com\r\n
Call-Id: 649c6e627f749db9bb63589b3772443f\r\n
Cseq: 1 REGISTER\r\n
Contact: <sip:
6094551627@172.42.172.91;LINEID=25321e6280f4efdf14b3d84524183cd2>\r\n
Expires: 300\r\n
Date: Mon, 17 Jul 2006 11:50:28 GMT\r\n
Max-Forwards: 20\r\n
User-Agent: sipXezPhone\r\n
Accept-Language: en\r\n
Supported: replaces\r\n
Via: SIP/2.0/UDP 172.42.172.91;branch=z9hG4bK-57a5df8b95868629fc17571d77487ac1;rport\r\n
Content-Length: 0\r\n\r\n--------------------END--------------------\n"
----INCOMING
Remote Host:147.135.0.128----
Port: 5060----\nSIP/2.0 401 Unauthorized\r\n
From: sip:
6094551627@sip.broadvoice.com;tag=67c557d1\r\n
To: sip:
6094551627@sip.broadvoice.com;tag=SD28khd99-\r\n
Call-Id: 649c6e627f749db9bb63589b3772443f\r\n
Cseq: 1 REGISTER\r\n
Via: SIP/2.0/UDP 172.42.172.91;received=203.76.142.2;branch=z9hG4bK-57a5df8b95868629fc17571d77487ac1;rport=48047\r\n
WWW-Authenticate: DIGEST
realm=\"BroadWorks\",
qop=\"auth\",
algorithm=MD5,
nonce=\"BroadWorksXepqs0ek1TbktcqxBW\"\r\n
Content-Length: 0\r\n\r\n====================END====================\n"
----OUTGOING
Remote Host:147.135.0.128----
Port: 5060----\n
REGISTER sip:sip.broadvoice.com SIP/2.0\r\n
From: sip:
6094551627@sip.broadvoice.com;tag=67c557d1\r\n
To: sip:
6094551627@sip.broadvoice.com\r\n
Call-Id: 649c6e627f749db9bb63589b3772443f\r\n
Cseq: 2 REGISTER\r\n
Contact: <sip:
6094551627@172.42.172.91;LINEID=25321e6280f4efdf14b3d84524183cd2>\r\n
Expires: 300\r\n
Date: Mon, 17 Jul 2006 11:50:28 GMT\r\n
Max-Forwards: 20\r\n
User-Agent: sipXezPhone\r\n
Accept-Language: en\r\n
Supported: replaces\r\n
Authorization: Digest
username=\"6094551627\",
realm=\"BroadWorks\",
nonce=\"BroadWorksXepqs0ek1TbktcqxBW\",
uri=\"sip:sip.broadvoice.com\",
response=\"c6fbe00c223c25551173b1174eef9bf0\",
algorithm=MD5,
cnonce=\"bd09dacd30328b66ce0af7b1e2089cd0\",
qop=auth,
nc=00000001\r\n
Via: SIP/2.0/UDP 172.42.172.91;branch=z9hG4bK-67d4dab5a56c0dd099b630092b79c05b;rport\r\n
Content-Length: 0\r\n\r\n--------------------END--------------------\n"
----INCOMING
Remote Host:147.135.0.128----
Port: 5060----\n
SIP/2.0 401 Unauthorized\r\n
From: sip:
6094551627@sip.broadvoice.com;tag=67c557d1\r\n
To: sip:
6094551627@sip.broadvoice.com;tag=SD28khd99-\r\n
Call-Id: 649c6e627f749db9bb63589b3772443f\r\n
Cseq: 2 REGISTER\r\n
Via: SIP/2.0/UDP 172.42.172.91;received=203.76.142.2;branch=z9hG4bK-67d4dab5a56c0dd099b630092b79c05b;rport=48047\r\n
WWW-Authenticate: DIGEST
realm=\"BroadWorks\",
qop=\"auth\",
algorithm=MD5,
nonce=\"BroadWorksXepqs0g5yTup5mg2BW\"\r\n
Content-Length: 0\r\n\r\n====================END====================\n"
***********************************************End of SipXezPhone TRACE********************************************************
Do let me know if you need any clarification.
Thanks,
Vijay
Just now found out the issue. The issue was with the realm.
Thye realm should be "BroadWorks" in the config file. When I gave that things worked without a hitch.
This is just a config issue and not a bug.
Please close this issue.
Thanks,
Vijay