Никак не получается заставить авторизоваться ap200b на SIP сервере.
На сервер посылается
Код:
REGISTER sip:172.40.9.20 SIP/2.0
Via: SIP/2.0/UDP 172.40.0.246:5060;branch=z9hG4bK894a6a00a452
From: <sip:209193@172.40.9.20>;tag=894a6a00a4
To: sip:209193@172.40.9.20
Call-ID: 8961aa4a-a57e-6a00-8000-0002a4053e70@172.40.0.246
CSeq: 52 REGISTER
Date: Fri, 11 Sep 2009 14:58:05 GMT
User-Agent: AddPac SIP Gateway
Contact: <sip:209193@172.40.0.246>;expires=300
Expires: 300
Content-Length: 0
Max-Forwards: 70
в ответ получаем отказ
Код:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 172.40.0.246:5060;branch=z9hG4bK894a6a00a452
Call-ID: 8961aa4a-a57e-6a00-8000-0002a4053e70@172.40.0.246
From: <sip:209193@172.40.9.20>;tag=894a6a00a4
To: <sip:209193@172.40.9.20>;tag=d178d588
CSeq: 52 REGISTER
WWW-Authenticate: Digest realm="Huawei",
nonce="54920ae457d884104ce794af84fa4c59",domain="Huawei.com",
stale=false,algorithm=MD5
Server: Huawei SoftX3000 V300R006B06D061
Content-Length: 0
И так до бесконечности, хотя AP200B должна зарегистрироваться с аутентификацией.
Конфигурация:
Код:
!
version 8.237
!
hostname AP200
!
dhcp-list 0 type server
dhcp-list 0 address server interface ether0.0
dhcp-list 0 option dhcp-lease-time 600
!
dhcp-list 1 type server
dhcp-list 1 address server 10.1.1.2 10.1.1.126 255.255.255.128
!
!
ip-share enable
ip-share interface net-side ether0.0
ip-share interface local-side ether1.0
!
interface ether0.0
ip address 172.40.0.246 255.255.255.252
description link_to_Softx3000
!
interface ether1.0
no ip address
ip dhcp-group 0
!
snmp name AP200B
!
no arp reset
!
route 0.0.0.0 0.0.0.0 172.40.0.245
!
!
!
!
!
! VoIP configuration.
!
!
! Voice service voip configuration.
!
voice service voip
fax protocol t38 redundancy 0
fax rate 9600
h323 call start fast
h323 call tunnel enable
busyout monitor gatekeeper
no busyout monitor callagent
busyout monitor voip-interface
!
!
! Voice port configuration.
!
! FXS
voice-port 0/0
!
!
! FXS
voice-port 0/1
!
!
!
!
!
voice service voip
minimize-voip-port multiply 1
!
! Pots peer configuration.
!
dial-peer voice 0 pots
destination-pattern 209193
port 0/0
user-password 209193
!
!
!
! Voip peer configuration.
!
dial-peer voice 1000 voip
destination-pattern T
session target sip-server
session protocol sip
dtmf-relay rtp-2833
!
!
!
!
!
!
! Gateway configuration.
!
gateway
h323-id voip.172.40.0.246
security proprietary-option dacom
!
!
! SIP UA configuration.
!
sip-ua
user-register
sip-username 209193
sip-password 209193
sip-server 172.40.9.20
timeout treg 300
min-se 1900
remote-party-id
register e164
!
!
! MGCP configuration.
!
mgcp
codec g711ulaw
!
!
! Tones
!
!
!
voip-interface ether0.0
!
Код: