Hello Asterisk People,

I am having trouble connecting asterisk to a huawei SoftX3000 Switch, i can succesfully connect other softphones like Zoiper, but when it comes to Asterisk SIP Client, the system doesn't authenticate, i have the following configuration:

peer: 10.220.0.2
username: 4857768
password: 4857768

the configuration is as follows:

in the general section:

register => 4857768:[EMAIL PROTECTED]

in the sip client / peers section:

[epmbog]
type=peer
host=10.220.0.2
secret=4857768
username=4857768
canreinvite=no

[Aug 19 06:48:28] NOTICE[7608]: chan_sip.c:12525 handle_response_register: Failed to authenticate on REGISTER to '[EMAIL PROTECTED]' (Tries 3)

i have tested numerous variants, but the huawei refuse to authenticate the asterisk.

i attache the logs producted with Zoiper, and the one produced with Asterisk.

Any help will be greatly apreciated.

Thanks.

--
Nestor A. Diaz
Ingeniero de Sistemas
Tel. +57 1-600-5490 x 211
Cel. +57 316-227-3593
Tel. SIP: sip:[EMAIL PROTECTED]
Email/MSN: [EMAIL PROTECTED]
http://www.tiendalinux.com/
Bogota, Colombia
REGISTER sip:10.220.0.2;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 
10.222.4.130:5060;branch=z9hG4bK-d8754z-2bc2d270485ea817-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:[EMAIL PROTECTED]:5060;rinstance=40f3e87db666ccb3>;transport=UDP
To: <sip:[EMAIL PROTECTED]>;transport=UDP
From: <sip:[EMAIL PROTECTED]>;transport=UDP;tag=9d083153
Call-ID: OWNlMzM5MzcyY2RjZWE3ODI5YmNjYzg1OGUyOGM0OWM.
CSeq: 1 REGISTER
Expires: 70
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO
User-Agent: Zoiper for Windows rev.650
Allow-Events: presence
Content-Length: 0

SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 
10.222.4.130:5060;branch=z9hG4bK-d8754z-2bc2d270485ea817-1---d8754z-;rport=5060
To: <sip:[EMAIL PROTECTED]>;tag=4d78afba;transport=UDP
From: <sip:[EMAIL PROTECTED]>;tag=9d083153;transport=UDP
Call-ID: OWNlMzM5MzcyY2RjZWE3ODI5YmNjYzg1OGUyOGM0OWM.
CSeq: 1 REGISTER
Server: Huawei SoftX3000 V300R006
WWW-Authenticate: Digest realm="huawei",
 nonce="2c5e846455ff57f351423612f73406c3",domain="sip:huawei.com",
 stale=false,algorithm=MD5
Content-Length: 0

REGISTER sip:10.220.0.2;transport=UDP SIP/2.0
Via: SIP/2.0/UDP ;branch=z9hG4bK-d8754z-30acd274a9144d25-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:4857768;rinstance=40f3e87db666ccb3>;transport=UDP
To: <sip:[EMAIL PROTECTED]>;transport=UDP
From: <sip:[EMAIL PROTECTED]>;transport=UDP;tag=9d083153
Call-ID: OWNlMzM5MzcyY2RjZWE3ODI5YmNjYzg1OGUyOGM0OWM.
CSeq: 2 REGISTER
Expires: 70
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO
User-Agent: Zoiper for Windows rev.650
Authorization: Digest 
username="4857768",realm="huawei",nonce="2c5e846455ff57f351423612f73406c3",uri="sip:10.220.0.2;transport=UDP",response="a1b246ef1363bf8592fb5114dcc32d1d",algorithm=MD5
Allow-Events: presence
Content-Length: 0

SIP/2.0 200 OK
Via: SIP/2.0/UDP 
10.222.4.130:5060;branch=z9hG4bK-d8754z-30acd274a9144d25-1---d8754z-;rport=5060
Contact: <sip:[EMAIL PROTECTED];user=phone>;expires=70
To: <sip:[EMAIL PROTECTED]>;tag=d7d9f98c;transport=UDP
From: <sip:[EMAIL PROTECTED]>;tag=9d083153;transport=UDP
Call-ID: OWNlMzM5MzcyY2RjZWE3ODI5YmNjYzg1OGUyOGM0OWM.
CSeq: 2 REGISTER
Expires: 70
Server: Huawei SoftX3000 V300R006
Content-Length: 0
REGISTER 12 headers, 0 lines
Reliably Transmitting (no NAT) to 10.220.0.2:5060:
REGISTER sip:epmbog SIP/2.0
Via: SIP/2.0/UDP 10.222.4.130:5060;branch=z9hG4bK637e5232;rport
From: <sip:[EMAIL PROTECTED]>;tag=as26053559
To: <sip:[EMAIL PROTECTED]>
Call-ID: [EMAIL PROTECTED]
CSeq: 102 REGISTER
User-Agent: Asterisk PBX
Max-Forwards: 70
Expires: 120
Contact: <sip:[EMAIL PROTECTED]>
Event: registration
Content-Length: 0


---
chamber*CLI>
<--- SIP read from 10.220.0.2:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.222.4.130:5060;branch=z9hG4bK637e5232;rport=5060
Call-ID: [EMAIL PROTECTED]
From: <sip:[EMAIL PROTECTED]>;tag=as26053559
To: <sip:[EMAIL PROTECTED]>;tag=3abcb6da
CSeq: 102 REGISTER
WWW-Authenticate: Digest realm="huawei",
 nonce="de2b14c186143b68324075e0939be2b7",domain="sip:huawei.com",
 stale=false,algorithm=MD5
Server: Huawei SoftX3000 V300R006
Content-Length: 0


<------------->
--- (11 headers 0 lines) ---
Responding to challenge, registration to domain/host name epmbog
REGISTER 13 headers, 0 lines
Reliably Transmitting (no NAT) to 10.220.0.2:5060:
REGISTER sip:epmbog SIP/2.0
Via: SIP/2.0/UDP 10.222.4.130:5060;branch=z9hG4bK33a68168;rport
From: <sip:[EMAIL PROTECTED]>;tag=as73522e9a
To: <sip:[EMAIL PROTECTED]>
Call-ID: [EMAIL PROTECTED]
CSeq: 103 REGISTER
User-Agent: Asterisk PBX
Max-Forwards: 70
Authorization: Digest username="4857768", realm="huawei", algorithm=MD5, 
uri="sip:epmbog", nonce="", response="9617be9b31db41c1742f43d72a9fba11"
Expires: 120
Contact: <sip:[EMAIL PROTECTED]>
Event: registration
Content-Length: 0


---
chamber*CLI>
<--- SIP read from 10.220.0.2:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.222.4.130:5060;branch=z9hG4bK33a68168;rport=5060
Call-ID: [EMAIL PROTECTED]
From: <sip:[EMAIL PROTECTED]>;tag=as73522e9a
To: <sip:[EMAIL PROTECTED]>;tag=34bc4254
CSeq: 103 REGISTER
WWW-Authenticate: Digest realm="huawei",
 nonce="8164f705a8718f1f181c789a798cb78e",domain="sip:huawei.com",
 stale=false,algorithm=MD5
Server: Huawei SoftX3000 V300R006
Content-Length: 0


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to