1 | изначальная версия редактировать | |
Добрый день! Захотелось навести красоту, чтобы в имени клиента были не безликие цифры как здесь:
123/123 10.254.254.202 D 5060 OK (13 ms)
234/234 10.254.254.202 D 5062 OK (13 ms)
345/345 10.254.254.202 D 5063 OK (12 ms)
а разумное имя:
Kremlin/Kremlin 10.254.254.202 D 5064 OK (12 ms)
Smolny/Smolny 10.254.254.202 D 5065 OK (12 ms)
Для этого прописал следующее:
[Kremlin]
username=Kremlin
secret=12345
и т.д.
Железка в Кремле стоит Linksys/PAP2T-3.1.15(LS) В настройках соответственно прописал
User ID: 666
Auth ID: Kremlin
Use Auth ID: yes
Password: 12345
И имею такой диалог:
REGISTER sip:10.254.254.2 SIP/2.0
Via: SIP/2.0/UDP 10.254.254.205:5060;branch=z9hG4bK-dd4763d1
From: 666 <sip:666@10.254.254.2>;tag=ead8f941bbea235do0
To: 666 <sip:666@10.254.254.2>
Call-ID: b798d334-2de5595d@10.254.254.205
CSeq: 57674 REGISTER
Max-Forwards: 70
Contact: 666 <sip:666@10.254.254.205:5060>;expires=3600
User-Agent: Linksys/PAP2T-3.1.15(LS)
Content-Length: 0
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
Supported: x-sipura
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.254.254.205:5060;branch=z9hG4bK-dd4763d1;received=10.254.254.205;rport=5060
From: 666 <sip:666@10.254.254.2>;tag=ead8f941bbea235do0
To: 666 <sip:666@10.254.254.2>;tag=as1ead2866
Call-ID: b798d334-2de5595d@10.254.254.205
CSeq: 57674 REGISTER
Server: Asterisk PBX 1.8.15-cert2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="20b30fc0"
Content-Length: 0
REGISTER sip:10.254.254.2 SIP/2.0
Via: SIP/2.0/UDP 10.254.254.205:5060;branch=z9hG4bK-fc0c28e9
From: 666 <sip:666@10.254.254.2>;tag=ead8f941bbea235do0
To: 666 <sip:666@10.254.254.2>
Call-ID: b798d334-2de5595d@10.254.254.205
CSeq: 57675 REGISTER
Max-Forwards: 70
Authorization: Digest username="Kremlin",realm="asterisk",nonce="20b30fc0",uri="sip:10.254.254.2",algorithm=MD5,response="a4cc751983ae0205f4343147907e976f"
Contact: 666 <sip:666@10.254.254.205:5060>;expires=3600
User-Agent: Linksys/PAP2T-3.1.15(LS)
Content-Length: 0
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
Supported: x-sipura
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 10.254.254.205:5060;branch=z9hG4bK-fc0c28e9;received=10.254.254.205;rport=5060
From: 666 <sip:666@10.254.254.2>;tag=ead8f941bbea235do0
To: 666 <sip:666@10.254.254.2>;tag=as1ead2866
Call-ID: b798d334-2de5595d@10.254.254.205
CSeq: 57675 REGISTER
Server: Asterisk PBX 1.8.15-cert2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
Традиционный вопрос - почему так происходит? Спасибо!
2 | No.2 Revision редактировать |
Добрый день! Захотелось навести красоту, чтобы в имени клиента были не безликие цифры как здесь:
123/123 10.254.254.202 D 5060 OK (13 ms)
234/234 10.254.254.202 D 5062 OK (13 ms)
345/345 10.254.254.202 D 5063 OK (12 ms)
а разумное имя:
Kremlin/Kremlin 10.254.254.202 D 5064 OK (12 ms)
Smolny/Smolny 10.254.254.202 D 5065 OK (12 ms)
Для этого прописал следующее:
[Kremlin]
type=peer
host=dynamic
username=Kremlin
secret=12345
и т.д.
Железка в Кремле стоит Linksys/PAP2T-3.1.15(LS) В настройках соответственно прописал
User ID: 666
Auth ID: Kremlin
Use Auth ID: yes
Password: 12345
И имею такой диалог:
REGISTER sip:10.254.254.2 SIP/2.0
Via: SIP/2.0/UDP 10.254.254.205:5060;branch=z9hG4bK-dd4763d1
From: 666 <sip:666@10.254.254.2>;tag=ead8f941bbea235do0
To: 666 <sip:666@10.254.254.2>
Call-ID: b798d334-2de5595d@10.254.254.205
CSeq: 57674 REGISTER
Max-Forwards: 70
Contact: 666 <sip:666@10.254.254.205:5060>;expires=3600
User-Agent: Linksys/PAP2T-3.1.15(LS)
Content-Length: 0
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
Supported: x-sipura
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.254.254.205:5060;branch=z9hG4bK-dd4763d1;received=10.254.254.205;rport=5060
From: 666 <sip:666@10.254.254.2>;tag=ead8f941bbea235do0
To: 666 <sip:666@10.254.254.2>;tag=as1ead2866
Call-ID: b798d334-2de5595d@10.254.254.205
CSeq: 57674 REGISTER
Server: Asterisk PBX 1.8.15-cert2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="20b30fc0"
Content-Length: 0
REGISTER sip:10.254.254.2 SIP/2.0
Via: SIP/2.0/UDP 10.254.254.205:5060;branch=z9hG4bK-fc0c28e9
From: 666 <sip:666@10.254.254.2>;tag=ead8f941bbea235do0
To: 666 <sip:666@10.254.254.2>
Call-ID: b798d334-2de5595d@10.254.254.205
CSeq: 57675 REGISTER
Max-Forwards: 70
Authorization: Digest username="Kremlin",realm="asterisk",nonce="20b30fc0",uri="sip:10.254.254.2",algorithm=MD5,response="a4cc751983ae0205f4343147907e976f"
Contact: 666 <sip:666@10.254.254.205:5060>;expires=3600
User-Agent: Linksys/PAP2T-3.1.15(LS)
Content-Length: 0
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
Supported: x-sipura
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 10.254.254.205:5060;branch=z9hG4bK-fc0c28e9;received=10.254.254.205;rport=5060
From: 666 <sip:666@10.254.254.2>;tag=ead8f941bbea235do0
To: 666 <sip:666@10.254.254.2>;tag=as1ead2866
Call-ID: b798d334-2de5595d@10.254.254.205
CSeq: 57675 REGISTER
Server: Asterisk PBX 1.8.15-cert2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
Традиционный вопрос - почему так происходит? Спасибо!
Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании
Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией
GNU GPL.