RADIUSCall() почему-то не шлёт атрибут User-Name. По крайней мере, в
запросах Access-Request. Вот CG/PL сценарий:
radius.sppr:
entry main is
req = newDictionary();
req.Type = "authenticate";
req.Secret = "secret";
req.Username = "test";
req.("1") = "test";
req.Password = "test";
resp = RADIUSCall(IPAddress("[10.2.131.12]:1812"), req);
RejectCall(484);
end entry;
Вот логи звонка:
19:53:03.357 2 SIGNAL-011004 INVITE sip:123@absolut1.srv.cboss.ru via
sip:123@absolut1.srv.cboss.ru
19:53:03.357 2 ROUTER 123@absolut1.srv.cboss.ru accepted by LOCAL as
<#radius> at <pbx> (can relay)
19:53:03.357 2 PBXLEG-000014 enqueued
19:53:03.357 2 PBXLEG-000014 'radius' created for pbx@absolut1.srv.cboss.ru
19:53:03.357 2 SIGNAL-011004 {1} sent to NODE-000014: INVITE
sip:123@absolut1.srv.cboss.ru
19:53:03.357 2 PBXLEG-000014 dialog started with
512810030005@absolut1.srv.cboss.ru(sip:512810030005@10.2.129.2),
refresh=300(active)(canTransfer)
19:53:03.357 2 PBXLEG-000014 peer authenticated as
'iliyap0005@absolut1.srv.cboss.ru'
19:53:03.357 2 PBXLEG-000014 started(main)
19:53:03.357 5 RADIUS [0.0.0.0]:1645 -> [10.2.131.12]:1812 out(26): 01
04 00 1A AC 6C 3C 3C FC 1C DE 28 CD 48 8E 3B 9A 02 9F 72 02 06 51 EC 71 43
19:53:08.002 2 SIPS-019220 dequeued
19:53:08.002 5 RADIUS [0.0.0.0]:1645 -> [10.2.131.12]:1812 out(26): 01
04 00 1A AC 6C 3C 3C FC 1C DE 28 CD 48 8E 3B 9A 02 9F 72 02 06 51 EC 71 43
19:53:08.002 5 RADIUS [0.0.0.0]:1645 <- [10.2.131.12]:1812 inp(20): 03
04 00 14 BA 8E FD C6 4E C8 46 91 D7 F3 FD BB 05 4C 31 14
19:53:08.002 3 RADIUS-000001 [10.2.131.12]:1812 rsp-4(3) posted
19:53:08.002 2 PBXLEG-000014 rejecting done
19:53:08.002 2 SIGNAL-011004 484 received from NODE-000014
19:53:08.002 2 PBXLEG-000014 program stopped
Вот что пишет мой RADIUS-сервер:
Packet-Type = Access-Request
Tue Feb 6 19:53:03 2007
User-Password = "test"
NAS-IP-Address = 10.3.4.43
Client-IP-Address = 10.3.4.43
Получено Tue Feb 06 17:09:43 2007