Сообщений: 15
|
Re: Установка Asterisk на Fedora Core 5
После отключения брэндмауэра все счастливо соединилось, и клиенты получили свои номера: 200,201,202, но друг другу они не звонят, хотя я прописал в extensions.conf:
[office]
exten => 200,1, Macro(stdexten,200,SIP/200)
exten => user1, 1, Goto(200|1)
exten => 201,1, Macro(stdexten,201,SIP/201)
exten => user2, 1, Goto(201|1)
exten => 202,1, Macro(stdexten,202,SIP/202)
exten => user3, 1, Goto(202|1)
include => demo
Астериск выдает при регистрации следующее:
Asterisk Ready.
*CLI> Oct 16 12:05:35
-- Unregistered SIP '201'
-- Registered SIP '201' at 192.168.0.16 port 8412 expires 3600
-- Saved useragent "eyeBeam release 3006o stamp 17551" for peer 201
-- Unregistered SIP '202'
-- Registered SIP '202' at 192.168.0.33 port 6288 expires 3600
-- Saved useragent "eyeBeam release 3006o stamp 17551" for peer 202
После набора на одном из клиентов, какого-нибудь номера, например: на 201 набираю 202. В ответ же получаю:
Call Failed: 404 Not Found
202@192.168.0.84
В логах EyeBeam'a:
12:04:32.3 Call (l:'201' r:'sip:202@192.168.0.84') - Placing call.
12:04:32.4
SENDING TO: 192.168.0.84:5060
INVITE sip:202@192.168.0.84 SIP/2.0
To: <sip:202@192.168.0.84>
From: 201<sip:201@192.168.0.84>;tag=2a33275f
Via: SIP/2.0/UDP 192.168.0.16:8412;branch=z9hG4bK-d87543-561077347-1--d87543-;rport
Call-ID: 783dec22a60cc968
CSeq: 1 INVITE
Contact: <sip:201@192.168.0.16:8412>
Max-Forwards: 70
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Content-Type: application/sdp
User-Agent: eyeBeam release 3006o stamp 17551
Content-Length: 269
v=0
o=- 7199103 7199156 IN IP4 192.168.0.16
s=eyeBeam
c=IN IP4 192.168.0.16
t=0 0
m=audio 8414 RTP/AVP 100 6 0 8 3 18 5 101
a=alt:1 1 : 76A65970 0000004A 192.168.0.16 8414
a=fmtp:101 0-15
a=rtpmap:100 speex/16000
a=rtpmap:101 telephone-event/8000
a=sendrecv
12:04:32.4
RECEIVING FROM: 192.168.0.84:5060
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 192.168.0.16:8412;branch=z9hG4bK-d87543-561077347-1--d87543-;rport;received=192.168.0.16
From: 201<sip:201@192.168.0.84>;tag=2a33275f
To: <sip:202@192.168.0.84>;tag=as0342c9bf
Call-ID: 783dec22a60cc968
CSeq: 1 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:202@192.168.0.84>
Proxy-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="7f51406e"
Content-Length: 0
12:04:32.4
SENDING TO: 192.168.0.84:5060
ACK sip:202@192.168.0.84 SIP/2.0
To: <sip:202@192.168.0.84>;tag=as0342c9bf
From: 201<sip:201@192.168.0.84>;tag=2a33275f
Via: SIP/2.0/UDP 192.168.0.16:8412;branch=z9hG4bK-d87543-561077347-1--d87543-;rport
Call-ID: 783dec22a60cc968
CSeq: 1 ACK
Content-Length: 0
12:04:32.4
SENDING TO: 192.168.0.84:5060
INVITE sip:202@192.168.0.84 SIP/2.0
To: <sip:202@192.168.0.84>
From: 201<sip:201@192.168.0.84>;tag=2a33275f
Via: SIP/2.0/UDP 192.168.0.16:8412;branch=z9hG4bK-d87543-191247905-1--d87543-;rport
Call-ID: 783dec22a60cc968
CSeq: 2 INVITE
Contact: <sip:201@192.168.0.16:8412>
Max-Forwards: 70
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Content-Type: application/sdp
Proxy-Authorization: Digest username="201",realm="asterisk",nonce="7f51406e",uri="sip:202@192.168.0.84",response="48c93de68a4e38c87a7f4f2df252b61d",algorithm=MD5
User-Agent: eyeBeam release 3006o stamp 17551
Content-Length: 269
v=0
o=- 7199103 7199156 IN IP4 192.168.0.16
s=eyeBeam
c=IN IP4 192.168.0.16
t=0 0
m=audio 8414 RTP/AVP 100 6 0 8 3 18 5 101
a=alt:1 1 : 76A65970 0000004A 192.168.0.16 8414
a=fmtp:101 0-15
a=rtpmap:100 speex/16000
a=rtpmap:101 telephone-event/8000
a=sendrecv
12:04:32.4
RECEIVING FROM: 192.168.0.84:5060
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 192.168.0.16:8412;branch=z9hG4bK-d87543-191247905-1--d87543-;rport;received=192.168.0.16
From: 201<sip:201@192.168.0.84>;tag=2a33275f
To: <sip:202@192.168.0.84>;tag=as0342c9bf
Call-ID: 783dec22a60cc968
CSeq: 2 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:202@192.168.0.84>
Content-Length: 0
12:04:32.4
SENDING TO: 192.168.0.84:5060
ACK sip:202@192.168.0.84 SIP/2.0
To: <sip:202@192.168.0.84>;tag=as0342c9bf
From: 201<sip:201@192.168.0.84>;tag=2a33275f
Via: SIP/2.0/UDP 192.168.0.16:8412;branch=z9hG4bK-d87543-191247905-1--d87543-;rport
Call-ID: 783dec22a60cc968
CSeq: 2 ACK
Content-Length: 0
12:04:32.4 Call (l:'201' r:'sip:202@192.168.0.84') - Call being terminated. Reasons: "Not Found", (code: 404)
Я уже отрубил все брэндмауэры на машинах с клиентами, и на машине с Asterisk'ом. И клиенты получают свои номера, то есть у них есть соединение с asterisk'ом. У кого-нибудь была похожая проблема?
|