IAD2430 + Asterisk registration problem

denjs
Joined: Fri 03 of Dec, 2010

IAD2430 + Asterisk registration problem

Posted:Fri 03 of Dec, 2010 (04:45 UTC)
Hello!
Please help me to solve my problem:
I have Cisco IAD2430 with dial-peers configured like this one:


dial-peer voice 1 pots
service dsapp
destination-pattern 222
supplementary-service pass-through
port 2/0
forward-digits all
authentication username testfax password 7 testpassword realm asterisk.domain.ru


On the Asterisk 1.8.0 side:


[testfax]
type=peer
secret=testpassword
qualify=2000                     ; Qualify peer is no more than 200ms away
host=192.168.1.7                    ; This device registers with us
context=default
auth=testfax@asterisk.domain.ru
defaultuser=222

So, then i try to register this peer receive these messages:


Dec  3 04:39:15.430: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent: 
REGISTER sip:asterisk.domain.ru:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK7012005
From: <sip:222@asterisk.domain.ru>;tag=F3AF9B8-1C31
To: <sip:222@asterisk.domain.ru>
Date: Fri, 03 Dec 2010 04:39:15 GMT
Call-ID: 1E16206D-FDCE11DF-9C2FF44D-B79870F8
User-Agent: Cisco-SIPGateway/IOS-12.x
Max-Forwards: 70
Timestamp: 1291351155
CSeq: 2 REGISTER
Contact: <sip:222@192.168.1.7:5060>
Expires:  3600
Content-Length: 0


Dec  3 04:39:15.438: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received: 
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK7012005;received=192.168.1.7
From: <sip:222@asterisk.domain.ru>;tag=F3AF9B8-1C31
To: <sip:222@asterisk.domain.ru>
Call-ID: 1E16206D-FDCE11DF-9C2FF44D-B79870F8
CSeq: 2 REGISTER
Server: Asterisk PBX 1.8.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


Dec  3 04:39:15.438: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received: 
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK7012005;received=192.168.1.7
From: <sip:222@asterisk.domain.ru>;tag=F3AF9B8-1C31
To: <sip:222@asterisk.domain.ru>;tag=as65d111c1
Call-ID: 1E16206D-FDCE11DF-9C2FF44D-B79870F8
CSeq: 2 REGISTER
Server: Asterisk PBX 1.8.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk.domain.ru", nonce="4c08a7a6"
Content-Length: 0


Dec  3 04:39:15.442: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent: 
REGISTER sip:asterisk.domain.ru:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK702235C
From: <sip:222@asterisk.domain.ru>;tag=F3AF9B8-1C31
To: <sip:222@asterisk.domain.ru>
Date: Fri, 03 Dec 2010 04:39:15 GMT
Call-ID: 1E16206D-FDCE11DF-9C2FF44D-B79870F8
User-Agent: Cisco-SIPGateway/IOS-12.x
Max-Forwards: 70
Timestamp: 1291351155
CSeq: 3 REGISTER
Contact: <sip:222@192.168.1.7:5060>
Expires: 3600
Authorization: Digest username="testfax",realm="asterisk.domain.ru",uri="sip:asterisk.domain.ru:5060",response="fcc4647bb8a07e62a20a561eb9c0361a",nonce="4c08a7a6",algorithm=MD5
Content-Length: 0


Dec  3 04:39:15.450: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received: 
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK702235C;received=192.168.1.7
From: <sip:222@asterisk.domain.ru>;tag=F3AF9B8-1C31
To: <sip:222@asterisk.domain.ru>
Call-ID: 1E16206D-FDCE11DF-9C2FF44D-B79870F8
CSeq: 3 REGISTER
Server: Asterisk PBX 1.8.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


Dec  3 04:39:15.450: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received: 
SIP/2.0 403 Forbidden (Bad auth)
Via: SIP/2.0/UDP 192.168.1.7:5060;branch=z9hG4bK702235C;received=192.168.1.7
From: <sip:222@asterisk.domain.ru>;tag=F3AF9B8-1C31
To: <sip:222@asterisk.domain.ru>;tag=as65d111c1
Call-ID: 1E16206D-FDCE11DF-9C2FF44D-B79870F8
CSeq: 3 REGISTER
Server: Asterisk PBX 1.8.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0



Please help me, I'm stuck in this marsh. :(