Приветствую! имею Asterisk 1.6.2.9-2+squeeze1 (из пакетов debian stable)
Хотел подключиться к localphone.com, пытался следовать инструкциям на их сайте. Искал просто в интернете (google: asterisk localphone - вообще крайне мало информации)
Статью на офф. сайте уже вдоль и поперек изучил. Написал даже им в суппорт, но пока ничего не получается.
Имею:
register => 80434###:HIDE@localphone.com/8043###
[localphone]
secret=HIDE
username=8043###
host=localphone.com
fromdomain=localphone.com
context = from-localphone
insecure=invite
type = friend
disallow = all
allow = alaw,ulaw,g729
nat = no
canreinvite = no
dtmfmode = rfc2833 ; info
authuser=8043###
fromuser=8043###
qualify=yes
еще в [general]
context=default
allowguest=no
allowoverlap=no
udpbindaddr=0.0.0.0
defaultexpiry=360
callevents=yes
limitonpeer=yes
rtptimeout=60
language=ru
cos_sip=3
cos_audio=5
disallow=all
allow=alaw
allow=g729
allow=g723
allow=ulaw
canreinvite=no
dtmfmode = rfc2833
alwaysauthreject = yes
в логах:
chan_sip.c:18149 handle_response_register: Failed to authenticate on REGISTER to '80434###@localphone.com' (Tries 3)
Really destroying SIP dialog '5f783fac591708ae550a0c163287d78a@#.#.#.211' Method: REGISTER
debug:
REGISTER 12 headers, 0 lines
Reliably Transmitting (no NAT) to 94.75.247.45:5060:
REGISTER sip:localphone.com SIP/2.0
Via: SIP/2.0/UDP #.#.#.211:5060;branch=z9hG4bK27c4ce9f;rport
Max-Forwards: 70
From: <sip:80434###@localphone.com>;tag=as1ef0b3a1
To: <sip:80434###@localphone.com>
Call-ID: 5f783fac591708ae550a0c163287d78a@#.#.#.211
CSeq: 186 REGISTER
User-Agent: Asterisk PBX 1.6.2.9-2+squeeze1
Authorization: Digest username="80434###", realm="localphone.com", algorithm=MD5, uri="sip:localphone.com", nonce="4decd970f6bb48c68312c94aef6ba21cf4d2ae22", response="8c92daf33bd63bc8b0ae12f7fcc7799a"
Expires: 360
Contact: <sip:8043414@#.#.#.211>
Content-Length: 0
<--- SIP read from UDP:94.75.247.45:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP #.#.#.211:5060;branch=z9hG4bK27c4ce9f;rport=5060
From: <sip:80434###@localphone.com>;tag=as1ef0b3a1
To: <sip:80434###@localphone.com>;tag=9399de1ef8c379d4c914a855a096e8ba.3bc1
Call-ID: 5f783fac591708ae550a0c163287d78a@#.#.#.211
CSeq: 186 REGISTER
WWW-Authenticate: Digest realm="localphone.com", nonce="4decd984a17aa2ff7ff86ad2be6cc675bc5b8a3a"
Server: OpenSER (1.2.2-notls (i386/linux))
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
Responding to challenge, registration to domain/host name localphone.com
REGISTER 12 headers, 0 lines
Reliably Transmitting (no NAT) to 94.75.247.45:5060:
REGISTER sip:localphone.com SIP/2.0
Via: SIP/2.0/UDP #.#.#.211:5060;branch=z9hG4bK5c08bb46;rport
Max-Forwards: 70
From: <sip:80434###@localphone.com>;tag=as14286288
To: <sip:80434###@localphone.com>
Call-ID: 5f783fac591708ae550a0c163287d78a@#.#.#.211
CSeq: 187 REGISTER
User-Agent: Asterisk PBX 1.6.2.9-2+squeeze1
Authorization: Digest username="80434###", realm="localphone.com", algorithm=MD5, uri="sip:localphone.com", nonce="4decd984a17aa2ff7ff86ad2be6cc675bc5b8a3a", response="79b44ef73c1760a2d8885f5950cca20a"
Expires: 360
Contact: <sip:8043###@#.#.#.211>
Content-Length: 0
<--- SIP read from UDP:94.75.247.45:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP #.#.#.211:5060;branch=z9hG4bK5c08bb46;rport=5060
From: <sip:80434###@localphone.com>;tag=as14286288
To: <sip:80434###@localphone.com>;tag=9399de1ef8c379d4c914a855a096e8ba.b64d
Call-ID: 5f783fac591708ae550a0c163287d78a@#.#.#.211
CSeq: 187 REGISTER
WWW-Authenticate: Digest realm="localphone.com", nonce="4decd984a17aa2ff7ff86ad2be6cc675bc5b8a3a"
Server: OpenSER (1.2.2-notls (i386/linux))
Content-Length: 0
<-------------> --- (9 headers 0 lines) ---
Responding to challenge, registration to domain/host name localphone.com
REGISTER 12 headers, 0 lines
Reliably Transmitting (no NAT) to 94.75.247.45:5060:
REGISTER sip:localphone.com SIP/2.0
Via: SIP/2.0/UDP #.#.#.211:5060;branch=z9hG4bK6dc43ccb;rport
Max-Forwards: 70
From: <sip:80434###@localphone.com>;tag=as56202d6e
To: <sip:80434###@localphone.com>
Call-ID: 5f783fac591708ae550a0c163287d78a@#.#.#.211
CSeq: 188 REGISTER
User-Agent: Asterisk PBX 1.6.2.9-2+squeeze1
Authorization: Digest username="80434###", realm="localphone.com", algorithm=MD5, uri="sip:localphone.com", nonce="4decd984a17aa2ff7ff86ad2be6cc675bc5b8a3a", response="79b44ef73c1760a2d8885f5950cca20a"
Expires: 360
Contact: <sip:8043###@#.#.#.211>
Content-Length: 0
<--- SIP read from UDP:94.75.247.45:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP #.#.#.211:5060;branch=z9hG4bK6dc43ccb;rport=5060
From: <sip:80434###@localphone.com>;tag=as56202d6e
To: <sip:80434###@localphone.com>;tag=9399de1ef8c379d4c914a855a096e8ba.0abb
Call-ID: 5f783fac591708ae550a0c163287d78a@#.#.#.211
CSeq: 188 REGISTER
WWW-Authenticate: Digest realm="localphone.com", nonce="4decd984a17aa2ff7ff86ad2be6cc675bc5b8a3a"
Server: OpenSER (1.2.2-notls (i386/linux))
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
Responding to challenge, registration to domain/host name localphone.com
REGISTER 12 headers, 0 lines
Reliably Transmitting (no NAT) to 94.75.247.45:5060:
REGISTER sip:localphone.com SIP/2.0
Via: SIP/2.0/UDP #.#.#.211:5060;branch=z9hG4bK74a54843;rport
Max-Forwards: 70
From: <sip:80434###@localphone.com>;tag=as2ddcbab7
To: <sip:80434###@localphone.com>
Call-ID: 5f783fac591708ae550a0c163287d78a@#.#.#.211
CSeq: 189 REGISTER
User-Agent: Asterisk PBX 1.6.2.9-2+squeeze1
Authorization: Digest username="80434###", realm="localphone.com", algorithm=MD5, uri="sip:localphone.com", nonce="4decd984a17aa2ff7ff86ad2be6cc675bc5b8a3a", response="79b44ef73c1760a2d8885f5950cca20a"
Expires: 360
Contact: <sip:8043###@#.#.#.211>
Content-Length: 0
<--- SIP read from UDP:94.75.247.45:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP #.#.#.211:5060;branch=z9hG4bK74a54843;rport=5060
From: <sip:80434###@localphone.com>;tag=as2ddcbab7
To: <sip:80434###@localphone.com>;tag=9399de1ef8c379d4c914a855a096e8ba.55b6
Call-ID: 5f783fac591708ae550a0c163287d78a@#.#.#.211
CSeq: 189 REGISTER
WWW-Authenticate: Digest realm="localphone.com", nonce="4decd984a17aa2ff7ff86ad2be6cc675bc5b8a3a"
Server: OpenSER (1.2.2-notls (i386/linux))
Content-Length: 0
попробуй убрать
authuser=8043### fromuser=8043### А простой софтфон с теми же данными регистрируется?
я бы лично начал копать в сторону разделения контекстов на входящие и исходящие, вставил раздельные настройки.. Еще покопать строку register: там можно добавить authuser кроме логина и пароля.
Формат:
register => user [:secret[:authuser]] @host [:port] [/extension]
Задан: 2011-06-06 17:45:44 +0400
Просмотрен: 2,862 раз
Обновлен: Dec 20 '11
Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании
Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией
GNU GPL.