Asterisk 1.4.30 + UTM

Технические вопросы по UTM 5.0
Ответить
KirillKN
Сообщения: 1
Зарегистрирован: Пн апр 05, 2010 07:16

Asterisk 1.4.30 + UTM

Сообщение KirillKN »

Здравствуйте!
Установил Asterisk 1.4.30 использовал следующие статьи: http://www.lanbilling.ru/asterisk_solution.html#
http://asterisk.ru/knowledgebase/perl_acct
http://www.voip-info.org/wiki/index.php ... adius+auth
http://voip.rus.net/tiki-index.php?page=asterisk-utm

Звонки в UTM отчете присутствуют, длительность, начало сессии окончание, но не присутствует информация о вызывающем и вызываемом абоненте. Может кто сталкивался и посоветует на что обратить внимание.

extensions.conf:
[general]
static=yes
writeprotect=no

[globals]
RADIUS_Server=192.168.1.25
RADIUS_Secret=test
RADIUS_Auth_Port=1812
RAIUS_Acct_Port=1813
Acct_Update_Timeout=5
NAS_IP_Address=192.168.1.25

[sip_auth]

exten => _X.,1,Set(SIP_Authorization=${SIP_HEADER(Proxy-Authorization)})
exten => _X.,n,AGI(agi-rad-auth.agi|Mode=SIP)
exten => _X.,n,Goto(default,${EXTENSION},1)
exten => _X.,n,Hangup()

[default]
exten => 101,1,Dial(SIP/101)
exten => 102,1,Dial(SIP/102)

sip.conf:
[general]
port=5060
bindaddr=0.0.0.0
srvlookup=yes
language=en
dtmfmode=RFC2833
promiscredir = no
nat=no
disallow=all
allow=alaw

[101]
type=friend
username=101
secret=101
context=sip_auth
host=dynamic
disallow=all
allow=ulaw
allow=alaw
qualify=yes


[102]
type=friend
username=102
secret=102
context=sip_auth
host=dynamic
disallow=all
allow=ulaw
allow=alaw
qualify=yes

Лог астерикса:
-- Executing [102@sip_auth:1] Set("SIP/101-00000013", "SIP_Authorization=Digest username="101",realm="asterisk",nonce="1d56ef0d",uri="sip:102@192.168.1.99",response="3eaaf5d7d2fad6b48525afa69003d5cb",algorithm=MD5") in new stack
-- Executing [102@sip_auth:2] AGI("SIP/101-00000013", "agi-rad-auth.agi|Mode=SIP") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-rad-auth.agi
-- agi-rad-auth.agi|Mode=SIP: AGI Environment Dump:
-- agi-rad-auth.agi|Mode=SIP: -- accountcode =
-- agi-rad-auth.agi|Mode=SIP: -- callerid = 101
-- agi-rad-auth.agi|Mode=SIP: -- calleridname = 101
-- agi-rad-auth.agi|Mode=SIP: -- callingani2 = 0
-- agi-rad-auth.agi|Mode=SIP: -- callingpres = 0
-- agi-rad-auth.agi|Mode=SIP: -- callingtns = 0
-- agi-rad-auth.agi|Mode=SIP: -- callington = 0
-- agi-rad-auth.agi|Mode=SIP: -- channel = SIP/101-00000013
-- agi-rad-auth.agi|Mode=SIP: -- context = sip_auth
-- agi-rad-auth.agi|Mode=SIP: -- dnid = 102
-- agi-rad-auth.agi|Mode=SIP: -- enhanced = 0.0
-- agi-rad-auth.agi|Mode=SIP: -- extension = 102
-- agi-rad-auth.agi|Mode=SIP: -- language = en
-- agi-rad-auth.agi|Mode=SIP: -- priority = 2
-- agi-rad-auth.agi|Mode=SIP: -- rdnis = unknown
-- agi-rad-auth.agi|Mode=SIP: -- request = agi-rad-auth.agi
-- agi-rad-auth.agi|Mode=SIP: -- type = SIP
-- agi-rad-auth.agi|Mode=SIP: -- uniqueid = 1270447394.19
-- agi-rad-auth.agi|Mode=SIP: RADIUS server response type = 2
-- agi-rad-auth.agi|Mode=SIP: attr: name=User-Service-Type value=Framed
-- agi-rad-auth.agi|Mode=SIP: attr: name=Framed-Protocol value=PPP
-- agi-rad-auth.agi|Mode=SIP: attr: name=Acct-Interim-Interval value=62
-- agi-rad-auth.agi|Mode=SIP: attr: name=h323-credit-amount value=1.63
-- agi-rad-auth.agi|Mode=SIP: attr: name=h323-credit-time value=72000
-- agi-rad-auth.agi|Mode=SIP: attr: name=h323-return-code value=0
-- agi-rad-auth.agi|Mode=SIP: attr: name=h323-currency value=USD
-- AGI Script Executing Application: (UserEvent) Options: (_SIP_Auth|User-Name: 101|DNID: |Channel: SIP/101-00000013)
-- AGI Script agi-rad-auth.agi completed, returning 0
-- Executing [102@sip_auth:3] Goto("SIP/101-00000013", "default||1") in new stack
-- Goto (default,102,1)
-- Executing [102@default:1] Dial("SIP/101-00000013", "SIP/102") in new stack
-- Called 102
-- SIP/102-00000014 is ringing
-- SIP/102-00000014 answered SIP/101-00000013
-- Native bridging SIP/101-00000013 and SIP/102-00000014

Лог радиуса UTM:
?Debug : Apr 05 10:17:32 RadiusSocket: RADIUS packet successfully received
?Debug : Apr 05 10:17:32 RadiusSocket: RADIUS raw data obtained
?Debug : Apr 05 10:17:32 RADIUS Packet: Size <253>; HDR.Size <253>
?Debug : Apr 05 10:17:32 AuthServer: Recv...
?Debug : Apr 05 10:17:32 AuthServer: Packet from NAS <192.168.1.99>
?Debug : Apr 05 10:17:32 RADIUS DBA: NAS found. Data size <0>
?Debug : Apr 05 10:17:32 AuthServer: Packet from <192.168.1.99> packet dump: RPacket:
?Debug : Apr 05 10:17:32 AuthServer: User <101> connecting
?Debug : Apr 05 10:17:32 AuthServer: Session for <101> found in <192.168.1.99> cache
?Debug : Apr 05 10:17:32 AuthServer: Session timeout for <101> exceeded.
?Debug : Apr 05 10:17:32 RADIUS DBA: Info for login <101> found. type <3>
?Debug : Apr 05 10:17:32 RADIUS DBA: Password found for tel login:101
?Debug : Apr 05 10:17:32 AuthServer: Auth scheme: Digest
?Debug : Apr 05 10:17:32 AuthServer: Digest-Attributes value <101> type <10> length <5>
?Debug : Apr 05 10:17:32 AuthServer: Digest-Attributes value <asterisk> type <1> length <10>
?Debug : Apr 05 10:17:32 AuthServer: Digest-Attributes value <1d56ef0d> type <2> length <10>
?Debug : Apr 05 10:17:32 AuthServer: Digest-Attributes value <sip:102@192.168.1.99> type <4> length <22>
?Debug : Apr 05 10:17:32 AuthServer: Digest-Attributes value <INVITE> type <3> length <8>
?Debug : Apr 05 10:17:32 AuthServer: Digest-Attributes value <MD5> type <6> length <5>
?Debug : Apr 05 10:17:32 AuthServer: Hash1 <cdd467c295528dac7121c6d3f3d9cdc1>
?Debug : Apr 05 10:17:32 AuthServer: Hash2 <0a68c091822ee4e1676bafd71010d6e5>
?Debug : Apr 05 10:17:32 AuthServer: kd <cdd467c295528dac7121c6d3f3d9cdc1:1d56ef0d:0a68c091822ee4e1676bafd71010d6e5>
?Debug : Apr 05 10:17:32 AuthServer: kd hash <3eaaf5d7d2fad6b48525afa69003d5cb>
?Debug : Apr 05 10:17:32 AuthServer: Digest-Responce <3eaaf5d7d2fad6b48525afa69003d5cb>
?Debug : Apr 05 10:17:32 AuthServer: Digest-Responce success!
?Debug : Apr 05 10:17:32 AuthServer: Tel session limit:0 session count:0 for user:101
?Debug : Apr 05 10:17:32 AuthServer: No Called-Station-Id present in radius packet! Registration request ? Using login string and sending Accept!
?Debug : Apr 05 10:17:32 AuthServer: Tel num:<101>. Setting xpgk-ep-number/h323-ivr-in ...
?Debug : Apr 05 10:17:32 AuthServer: Tel num:<102>. Setting xpgk-ep-number/h323-ivr-in ...
?Debug : Apr 05 10:17:32 AuthServer: Sending timeout h323-credit-time=72000
?Debug : Apr 05 10:17:32 AuthServer: Sending h323-credit-amount=1.63
?Debug : Apr 05 10:17:32 AuthServer: Calling fill radius attributes for service. Attr storage size <0>
?Debug : Apr 05 10:17:32 AuthServer: Calling fill radius attributes for slink. Attr storage size <0>
?Debug : Apr 05 10:17:32 AuthServer: Calling fill radius attributes for NAS. Attr storage size <0>
Notice: Apr 05 10:17:32 AuthServer: Login OK <101> from NAS <192.168.1.99> CLID <> Calling-station <101>
?Debug : Apr 05 10:17:32 AuthServer: Setting interim update interval from config
?Debug : Apr 05 10:17:32 AuthServer: Auth reply: RPacket:
?Debug : Apr 05 10:17:32 RADIUS Packet: raw data constructed! size <150>
?Debug : Apr 05 10:17:32 RadiusSocket: Moving RADIUS packet into send queue
?Debug : Apr 05 10:17:32 RadiusSocket: RADIUS raw data sent
?Debug : Apr 05 10:17:32 AuthServer: Next...
?Trace : Apr 05 10:17:32 AuthServer: Process loop step
?Debug : Apr 05 10:17:32 RadiusSocket: Waiting for RADIUS raw data
?Debug : Apr 05 10:17:32 RadiusSocket: RADIUS packet successfully received
?Debug : Apr 05 10:17:32 RadiusSocket: RADIUS raw data obtained
?Debug : Apr 05 10:17:32 RADIUS Packet: Size <343>; HDR.Size <343>
?Debug : Apr 05 10:17:32 AcctServer: Recv...
?Debug : Apr 05 10:17:32 AcctServer: Packet from <192.168.1.99> packet dump: RPacket:
?Debug : Apr 05 10:17:32 RADIUS DBA: NAS found. Data size <0>
?Debug : Apr 05 10:17:32 AcctServer: Acct packet with session ID: SIP/101-00000013
?Debug : Apr 05 10:17:32 RADIUS DBA: NAS found. Data size <0>
?Debug : Apr 05 10:17:32 AcctServer: Acct-Start packet
?Debug : Apr 05 10:17:32 AcctServer: Acct-Start: User <101>
?Debug : Apr 05 10:17:32 AcctServer: Acct-Session-Time (46) not present in accounting packet.
?Debug : Apr 05 10:17:32 RADIUS DBA: Info for login <101> found. type <3>
?Debug : Apr 05 10:17:32 RADIUS DBA: Password found for tel login:101
?Debug : Apr 05 10:17:32 RADIUS DBA: info for user found. type <3> info addr <-189105200>
?Debug : Apr 05 10:17:32 RADIUS DBA: search_user_info return info <-189105200>
?Debug : Apr 05 10:17:32 RADIUS DBA: search_user_info return valid info
?Debug : Apr 05 10:17:32 RADIUS DBA: Setting interim interval <62> for session id <SIP/101-00000013>
?Debug : Apr 05 10:17:32 RADIUS DBA: TELTARIFF: called number <> calling number <> direction id <0> zone id <0>
?Debug : Apr 05 10:17:32 RADIUS DBA: tel.session_count incremented. value <1>
?Debug : Apr 05 10:17:32 RADIUS DBA: Calling send_session_log_init_sync ...
?Debug : Apr 05 10:17:32 RADIUS Stream[plugin]: send_session_log_init_sync
?Debug : Apr 05 10:17:32 RADIUS Stream[plugin]: init log id <2171>
?Debug : Apr 05 10:17:32 AcctServer: Reply packet dump: RPacket:
?Debug : Apr 05 10:17:32 RadiusSocket: Moving RADIUS packet into send queue
?Debug : Apr 05 10:17:32 RadiusSocket: RADIUS raw data sent
?Debug : Apr 05 10:17:32 AcctServer: Next...
?Debug : Apr 05 10:17:32 RadiusSocket: Waiting for RADIUS raw data

Ответить