[Asterisk-Users] Asterisk to a Huawei softX3000

Steve Ducat steveducat at gmail.com
Thu Mar 30 04:46:58 MST 2006


Also have the same trouble connecting Asterisk with the Huawei
softX3000 softswitch via SIP.

Anyone have any experience with the Huawei switch. I am only in
control of the Asterisk server, Huawei softX3000 is controlled by
another company.

I have included the ouput from the SJPHONE which can regsiter
successfully and the Asterisk server which gets faced with 401
Unauthorized as below:

SJ PHONE

2006-03-30 11:39:44.908 UDP LOCAL->219.134.98.8:5060
REGISTER sip:219.134.98.8 SIP/2.0
Via: SIP/2.0/UDP
10.27.27.18;rport;branch=z9hG4bK0a1b1b1200000010442bc380000069860000041c
Content-Length: 0
Contact: <sip:2210XXXX at 10.27.27.18:5060>
Call-ID: D8C16D68-3F0D-4BEA-9CC5-9F79E7D28BEF at 10.27.27.18
CSeq: 12 REGISTER
From: <sip:2210XXXX at 219.134.98.8>;tag=118201716914
Max-Forwards: 70
To: <sip:2210XXXX at 219.134.98.8>
User-Agent: SJphone/1.60.289a (SJ Labs)
Authorization: Digest
username="2210XXXX",realm="huawei",nonce="387a3370c2354a042f4e519aac465739",uri="sip:219.134.98.8",response="023d39d9ec9417d4e1f285df758c8e27",algorithm="MD5"


12:39:45 DEBUG
2006-03-30 11:39:45.033 UDP 219.134.98.8:5060->LOCAL
SIP/2.0 200 OK
From: <sip:2210XXXX at 219.134.98.8>;tag=118201716914
To: <sip:2210XXXX at 219.134.98.8>;tag=9b4ff129
CSeq: 12 REGISTER
Call-ID: D8C16D68-3F0D-4BEA-9CC5-9F79E7D28BEF at 10.27.27.18
Via: SIP/2.0/UDP
10.27.27.18;branch=z9hG4bK0a1b1b1200000010442bc380000069860000041c;rport=5060
Contact: <sip:2210XXXX at 10.27.27.18:5060;user=phone>;expires=3600
Content-Length: 0

ASTERISK

--- (10 headers 0 lines)---
Responding to challenge, registration to domain/host name 219.134.98.8
REGISTER 13 headers, 0 lines
Reliably Transmitting (no NAT) to 219.134.98.8:5060:
REGISTER sip:219.134.98.8 SIP/2.0
Via: SIP/2.0/UDP 212.241.193.114:5060;branch=z9hG4bK77045b56;rport
From: <sip:2210XXXX at 219.134.98.8>;tag=as0519b6aa
To: <sip:2210XXXX at 219.134.98.8>
Call-ID: 6b7156b91de854f82fd9204e2e82768b at 127.0.0.1
CSeq: 105 REGISTER
User-Agent: Asterisk PBX
Max-Forwards: 70
Authorization: Digest username="2210XXXX", realm="huawei",
algorithm=MD5, uri="sip:219.134.98.8", nonce="",
response="7e0c56b053a18a956e6d26f21c934cb7", opaque=""
Expires: 600
Contact: <sip:2210XXXX at 212.241.193.114>
Event: registration
Content-Length: 0

---
Retransmitting #2 (no NAT) to 219.134.98.8:5060:
OPTIONS sip:219.134.98.8 SIP/2.0
Via: SIP/2.0/UDP 212.241.193.114:5060;branch=z9hG4bK41171f7a;rport
From: "asterisk" <sip:asterisk at 212.241.193.114>;tag=as1613e3ad
To: <sip:219.134.98.8>
Contact: <sip:asterisk at 212.241.193.114>
Call-ID: 41aba2b660edb77224fe9dc60e4df379 at 212.241.193.114
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Thu, 30 Mar 2006 11:40:41 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Length: 0

--- (0 headers 0 lines) Nat keepalive ---
lvps212-241-193-114*CLI>
<-- SIP read from 219.134.98.8:5060:
SIP/2.0 401 Unauthorized
From: <sip:2210XXXX at 219.134.98.8>;tag=as0519b6aa
To: <sip:2210XXXX at 219.134.98.8>;tag=b45efef2
CSeq: 105 REGISTER
Call-ID: 6b7156b91de854f82fd9204e2e82768b at 127.0.0.1
Via: SIP/2.0/UDP 212.241.193.114:5060;branch=z9hG4bK77045b56;rport=5060
WWW-Authenticate: Digest realm="huawei",
nonce="e5dc81651624597ba53a08df5042eaca",domain="sip:huawei.com",
stale=false,algorithm=MD5
Content-Length: 0

Any help is appreciated.

Kind Regards,

Steven Ducat.


On 3/4/06, Glen Browley <gbrowley at gmail.com> wrote:
>
> Greetings,
>
> I'm having a job getting asterisk to register with a Huawei softX3000
> softswitch via SIP. I keep getting 401 Unauthorized. Funny thing is I can
> successfully register SJPhone, a PA1688 IP Phone as well as a WiFi Phone
> against the switch without *any* problems. I think it's got to be something
> as simple as perhaps the register string which is currently
> <username><password>@<ip address> although I've tried a number of variations
> without success.
>
> Here's a snipit from sip.conf
>
> allow=ulaw
> auth=md5
> disallow=all
> dtmf=inband
> host=xxx.xxx.xxx.xxx
> insecure=very
> secret=xxxxxxx
> type=peer
> username=xxxxxxx
>
> Has anyone been able to register Asterisk against this Huawei switch?
> Normally I'd just muddle though it but I've spent the day working on this
> with NO success.
>
> I should also mention I've done ethereal dumps of devices that successfully
> register and I can't spot any differences.
>
> Thanks!
>
>
> Glen
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>



More information about the asterisk-users mailing list