Hi
iam just working on openser+radius ( freeradius with mysql)
Openser 1.2.1 , freeradius 1.1.6, rtpproxy, FC6 all in one box
Iam able to make call and able to talk, both the side voice is OK but i dont see the accounting correct
any suggestion will be greate.
--------------------
here is my radacct;
+-----------+----------------------------------+------------------+----------+-------+--------------+-----------+-------------+---------------------+---------------------+-----------------+---------------+-------------------+------------------+-----------------+------------------+-----------------+------------------+--------------------+---------------+----------------+-----------------+----------------+---------------+ | RadAcctId | AcctSessionId | AcctUniqueId | UserName | Realm | NASIPAddress | NASPortId | NASPortType | AcctStartTime | AcctStopTime | AcctSessionTime | AcctAuthentic | ConnectInfo_start | ConnectInfo_stop | AcctInputOctets | AcctOutputOctets | CalledStationId | CallingStationId | AcctTerminateCause | ServiceType | FramedProtocol | FramedIPAddress | AcctStartDelay | AcctStopDelay | +-----------+----------------------------------+------------------+----------+-------+--------------+-----------+-------------+---------------------+---------------------+-----------------+---------------+-------------------+------------------+-----------------+------------------+-----------------+------------------+--------------------+---------------+----------------+-----------------+----------------+---------------+ | 1 | 813b4501b92f1425@c291dGhlcm4tYzJ | 2e5817b61b8f83d3 | | | 127.0.0.1 | 5060 | | 2007-08-16 13:01:45 | 2007-08-16 13:01:45 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 2 | 537a78508d427b5c@c291dGhlcm4tYzJ | 44d8e47ed26d3e7b | | | 127.0.0.1 | 5060 | | 2007-08-16 14:23:09 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 3 | 537a78508d427b5c@c291dGhlcm4tYzJ | 44d8e47ed26d3e7b | | | 127.0.0.1 | 5060 | | 2007-08-16 14:23:20 | 2007-08-16 14:23:20 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 4 | 537a78508d427b5c@c291dGhlcm4tYzJ | 44d8e47ed26d3e7b | | | 127.0.0.1 | 5060 | | 2007-08-16 14:23:20 | 2007-08-16 14:23:20 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 5 | 537a78508d427b5c@c291dGhlcm4tYzJ | 44d8e47ed26d3e7b | | | 127.0.0.1 | 5060 | | 2007-08-16 14:23:20 | 2007-08-16 14:23:20 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 6 | 537a78508d427b5c@c291dGhlcm4tYzJ | 44d8e47ed26d3e7b | | | 127.0.0.1 | 5060 | | 2007-08-16 14:23:20 | 2007-08-16 14:23:20 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 7 | 537a78508d427b5c@c291dGhlcm4tYzJ | 44d8e47ed26d3e7b | | | 127.0.0.1 | 5060 | | 2007-08-16 14:23:21 | 2007-08-16 14:23:21 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 8 | 537a78508d427b5c@c291dGhlcm4tYzJ | 44d8e47ed26d3e7b | | | 127.0.0.1 | 5060 | | 2007-08-16 14:23:21 | 2007-08-16 14:23:21 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 9 | a86473214956cc44@c291dGhlcm4tYzJ | 190b69a53cae5f33 | | | 127.0.0.1 | 5060 | | 2007-08-16 14:44:54 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 10 | a86473214956cc44@c291dGhlcm4tYzJ | 190b69a53cae5f33 | | | 127.0.0.1 | 5060 | | 2007-08-16 14:44:54 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 11 | 7a3c594386522c1f@c291dGhlcm4tYzJ | 5a9422a16bc2acbf | | | 127.0.0.1 | 5060 | | 2007-08-16 14:49:40 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 12 | 7a3c594386522c1f@c291dGhlcm4tYzJ | 5a9422a16bc2acbf | | | 127.0.0.1 | 5060 | | 2007-08-16 14:49:55 | 2007-08-16 14:49:55 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 13 | 0554504fd134d470@c291dGhlcm4tYzJ | f6432ce5eab2eda2 | | | 127.0.0.1 | 5060 | | 2007-08-16 15:01:50 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 14 | 0554504fd134d470@c291dGhlcm4tYzJ | f6432ce5eab2eda2 | | | 127.0.0.1 | 5060 | | 2007-08-16 15:01:50 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 15 | 0554504fd134d470@c291dGhlcm4tYzJ | f6432ce5eab2eda2 | | | 127.0.0.1 | 5060 | | 2007-08-16 15:01:58 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 16 | 0554504fd134d470@c291dGhlcm4tYzJ | f6432ce5eab2eda2 | | | 127.0.0.1 | 5060 | | 2007-08-16 15:02:17 | 2007-08-16 15:02:17 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 17 | 0554504fd134d470@c291dGhlcm4tYzJ | f6432ce5eab2eda2 | | | 127.0.0.1 | 5060 | | 2007-08-16 15:02:17 | 2007-08-16 15:02:17 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 18 | 235b5e52a955e35c@c291dGhlcm4tYzJ | c103c92194dae078 | | | 127.0.0.1 | 5060 | | 2007-08-16 16:46:54 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 19 | 235b5e52a955e35c@c291dGhlcm4tYzJ | c103c92194dae078 | | | 127.0.0.1 | 5060 | | 2007-08-16 16:46:54 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 20 | 62210477326ab30b@c291dGhlcm4tYzJ | 81e223864b22d27d | | | 127.0.0.1 | 5060 | | 2007-08-16 16:47:50 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 21 | 62210477326ab30b@c291dGhlcm4tYzJ | 81e223864b22d27d | | | 127.0.0.1 | 5060 | | 2007-08-16 16:47:50 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 22 | 62210477326ab30b@c291dGhlcm4tYzJ | 81e223864b22d27d | | | 127.0.0.1 | 5060 | | 2007-08-16 16:47:56 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 23 | 62210477326ab30b@c291dGhlcm4tYzJ | 81e223864b22d27d | | | 127.0.0.1 | 5060 | | 2007-08-16 16:48:16 | 2007-08-16 16:48:16 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 24 | 62210477326ab30b@c291dGhlcm4tYzJ | 81e223864b22d27d | | | 127.0.0.1 | 5060 | | 2007-08-16 16:48:17 | 2007-08-16 16:48:17 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | +-----------+----------------------------------+------------------+----------+-------+--------------+-----------+-------------+---------------------+---------------------+-----------------+---------------+-------------------+------------------+-----------------+------------------+-----------------+------------------+--------------------+---------------+----------------+-----------------+----------------+---------------+
here is my openser.cfg
------------
debug=9 fork=no #log_stderror=yes log_facility=LOG_LOCAL0 listen=udp:X.X.X6.10:5060 alias = home.b4pub.com children=4 dns=no rev_dns=no
loadmodule "/usr/local/lib/openser/modules/mysql.so" loadmodule "/usr/local/lib/openser/modules/mi_fifo.so" loadmodule "/usr/local/lib/openser/modules/sl.so" loadmodule "/usr/local/lib/openser/modules/tm.so" loadmodule "/usr/local/lib/openser/modules/rr.so" loadmodule "/usr/local/lib/openser/modules/maxfwd.so" loadmodule "/usr/local/lib/openser/modules/usrloc.so" loadmodule "/usr/local/lib/openser/modules/registrar.so" loadmodule "/usr/local/lib/openser/modules/acc.so" loadmodule "/usr/local/lib/openser/modules/auth.so" loadmodule "/usr/local/lib/openser/modules/auth_db.so" loadmodule "/usr/local/lib/openser/modules/uri.so" loadmodule "/usr/local/lib/openser/modules/uri_db.so" loadmodule "/usr/local/lib/openser/modules/domain.so" #loadmodule "/usr/local/lib/openser/modules/mediaproxy.so" loadmodule "/usr/local/lib/openser/modules/nathelper.so" loadmodule "/usr/local/lib/openser/modules/textops.so" loadmodule "/usr/local/lib/openser/modules/avpops.so" loadmodule "/usr/local/lib/openser/modules/permissions.so" loadmodule "/usr/local/lib/openser/modules/auth_radius.so" loadmodule "/usr/local/lib/openser/modules/group_radius.so" loadmodule "/usr/local/lib/openser/modules/avp_radius.so"
modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo")
modparam("usrloc", "db_mode", 2)
modparam("registrar|nathelper", "received_avp", "$avp(s:rcv)") modparam("avpops","avp_table","usr_preferences")
modparam("rr", "enable_full_lr", 1) modparam("tm", "fr_inv_timer", 27)
modparam("permissions", "db_url", "mysql://openser:openserrw@localhost /openser") modparam("permissions", "db_mode", 1) modparam("permissions", "trusted_table", "trusted")
modparam("usrloc", "db_mode", 2)
# -- acc params -- modparam("acc", "radius_flag", 1) modparam("acc", "radius_missed_flag", 2) modparam("acc", "log_flag", 1) modparam("acc", "log_missed_flag", 1) modparam("acc", "service_type", 15) modparam("acc", "radius_extra", "Sip-Src-IP=$si;Sip-Src-Port=$sp") modparam("acc|auth_radius|group_radius|avp_radius", "radius_config","/usr/local/etc/radiusclient-ng/radiusclient.conf")
# -- group_radius params -- modparam("group_radius", "use_domain", 1)
modparam("nathelper","natping_interval",60) modparam("nathelper","rtpproxy_sock","unix:/var/run/rtpproxy.sock")
# ------------------------- request routing logic -------------------
# main routing logic route {
# ----------------------------------------------------------------- # Sanity Check Section # ----------------------------------------------------------------- if (!mf_process_maxfwd_header("10")) { sl_send_reply("483", "Too Many Hops"); exit; };
if (msg:len > max_len) { sl_send_reply("513", "Message Overflow"); exit; }; # ----------------------------------------------------------------- # Record Route Section # ----------------------------------------------------------------- if (method=="INVITE" && nat_uac_test("3")) { # INSERT PROXY IP ADDRESS HERE setflag(1); record_route_preset("X.X.X6.10:5060;nat=yes"); log("--------------1 ------------- \n"); } else if (method!="REGISTER") { log("--------------2 ------------- \n");
record_route(); };
# ----------------------------------------------------------------- # Call Tear Down Section # ----------------------------------------------------------------- if (method=="BYE" || method=="CANCEL") { setflag(1); if(method=="CANCEL") { setflag(10); } else { acc_rad_request("200"); }; unforce_rtp_proxy(); };
# ----------------------------------------------------------------- # Loose Route Section # ----------------------------------------------------------------- if (loose_route()) { log("--------------3 ------------- \n");
if ((method=="INVITE" || method=="REFER") && !has_totag()) { setflag(1); sl_send_reply("403", "Use From=ID"); exit; }; if (method=="INVITE") { setflag(1); if (!allow_trusted()) { if (!radius_proxy_authorize("X.X.X6.10")) { proxy_challenge("X.X.X6.10","0"); exit; } else if (!check_from()) {
sl_send_reply("403", "user From=ID"); exit; };
consume_credentials(); };
if (nat_uac_test("3") || search("^Route:.*;nat=yes")){ setflag(6); force_rtp_proxy(); }; }; if(method == "CANCEL") { setflag(10); };
route(1); exit; };
# ----------------------------------------------------------------- # Call Type Processing Section # ----------------------------------------------------------------- if (!is_uri_host_local()) { if (is_from_local() || allow_trusted()) { route(4); route(1); } else { sl_send_reply("403", "Forbidden-two"); }; exit; };
if (method=="ACK") { #setflag(1); log("--------------4 ------------- \n"); route(1); # route(3); exit; } if (method=="CANCEL") { setflag(10); route(1); # exit; } else if (method=="INVITE") { # setflag(1); acc_rad_request("200"); route(3); exit; } else if (method=="REGISTER") { # setflag(1); route(2); exit; };
lookup("aliases");
if (!is_uri_host_local()) { route(4); route(1); exit; };
if (!lookup("location")) { sl_send_reply("404", "User Not Found"); exit; };
route(1); }
route[1] {
# ----------------------------------------------------------------- # Default Message Handler # -----------------------------------------------------------------
log("--------------5 ------------- \n");
t_on_reply("1");
if (!t_relay()) {
if (method=="INVITE" || method=="ACK") { setflag(1); # end_media_session();
};
sl_reply_error(); }; }
route[2] {
# ----------------------------------------------------------------- # REGISTER Message Handler # -----------------------------------------------------------------
# sl_send_reply("100", "Trying"); log("--------------6 ------------- \n");
if (!search("^Contact:[ ]**") && nat_uac_test("19")) {
log("--------------7 ------------- \n");
setflag(6); fix_nated_register(); force_rport(); };
if (!radius_www_authorize("X.X.X6.10")) { www_challenge("X.X.X6.10","0"); exit; };
if (!check_to()) { sl_send_reply("401", "Unauthorized"); exit; };
consume_credentials();
if (!save("location")) { sl_reply_error(); }; } route[3] {
# ----------------------------------------------------------------- # INVITE Message Handler # -----------------------------------------------------------------
if (nat_uac_test("3")) { setflag(7); log("--------------8 ------------- \n"); fix_nated_sdp("1"); force_rport(); fix_nated_contact(); };
if (!allow_trusted()) { if (!radius_proxy_authorize("X.X.X6.10")) { proxy_challenge("X.X.X6.10","1"); # exit; } else if (!check_from()) { sl_send_reply("403", "Use From=ID"); exit; };
consume_credentials();
};
lookup("aliases");
if (!is_uri_host_local()) { route(4); route(1); exit; };
if (uri=~"^sip:1[0-9]*@*") { route(4); route(5); exit; };
if (!lookup("location")) { sl_send_reply("404", "User Not Found"); exit; };
route(4); route(1); }
route[4] {
# ----------------------------------------------------------------- # NAT Traversal Section # -----------------------------------------------------------------
if (isflagset(6) || isflagset(7)) { if (!isflagset(8)) { setflag(8); log("--------------9 ------------- \n"); # use_media_proxy(); force_rtp_proxy("l"); }; }; }
route[5]{ rewritehostport("X.X.X6.193:5060"); $avp(i:30) = "inv_timeout"; route(1); } onreply_route[1] {
if ((isflagset(6) || isflagset(7)) && (status=~"(180)|(183)|2[0-9][0-9]")) {
if (!search("^Content-Length:[ ]*0")) { # use_media_proxy(); fix_nated_contact(); force_rtp_proxy("l"); }; }; if (status=~"(3|4)0[0-9]") { # end_media_session(); unforce_rtp_proxy(); exit; };
if (nat_uac_test("1")) { fix_nated_contact(); }; }
when i look at the log
---
more /usr/local/var/log/radius/radacct/127.0.0.1/detail-20070816
Thu Aug 16 16:47:50 2007 Acct-Status-Type = Start Service-Type = IAPP-Register Attr-102 = 0x000000c8 Error-Cause = 1 Event-Timestamp = "Aug 16 2007 16:47:50 IST" Attr-105 = 0x3563373537633738 Acct-Session-Id = "62210477326ab30b@c291dGhlcm4tYzJkOWVh" Attr-108 = 0x3230322e36332e39362e39 Attr-109 = 0x36393138 NAS-Port = 5060 Acct-Delay-Time = 0 NAS-IP-Address = 127.0.0.1 Client-IP-Address = 127.0.0.1 Acct-Unique-Session-Id = "81e223864b22d27d" Timestamp = 1187263070
Thu Aug 16 16:47:50 2007 Acct-Status-Type = Start Service-Type = IAPP-Register Attr-102 = 0x000000c8 Error-Cause = 1 Event-Timestamp = "Aug 16 2007 16:47:50 IST" Attr-105 = 0x3563373537633738 Acct-Session-Id = "62210477326ab30b@c291dGhlcm4tYzJkOWVh" Attr-108 = 0x3230322e36332e39362e39 Attr-109 = 0x36393138 NAS-Port = 5060 Acct-Delay-Time = 0 NAS-IP-Address = 127.0.0.1 Client-IP-Address = 127.0.0.1 Acct-Unique-Session-Id = "81e223864b22d27d" Timestamp = 1187263070
Thu Aug 16 16:47:56 2007 Acct-Status-Type = Start Service-Type = IAPP-Register Attr-102 = 0x000000c8 Error-Cause = 1 Event-Timestamp = "Aug 16 2007 16:47:56 IST" Attr-105 = 0x3563373537633738 Attr-104 = 0x61733165336262373635 Acct-Session-Id = "62210477326ab30b@c291dGhlcm4tYzJkOWVh" Attr-108 = 0x3230322e36332e39362e39 Attr-109 = 0x36393138 NAS-Port = 5060 Acct-Delay-Time = 0 NAS-IP-Address = 127.0.0.1 Client-IP-Address = 127.0.0.1 Acct-Unique-Session-Id = "81e223864b22d27d" Timestamp = 1187263076
Thu Aug 16 16:48:16 2007 Acct-Status-Type = Stop Service-Type = IAPP-Register Attr-102 = 0x000000c8 Error-Cause = 8 Event-Timestamp = "Aug 16 2007 16:48:16 IST" Attr-105 = 0x61733165336262373635 Attr-104 = 0x3563373537633738 Acct-Session-Id = "62210477326ab30b@c291dGhlcm4tYzJkOWVh" Attr-108 = 0x3230322e36332e39362e313933 Attr-109 = 0x35303630 NAS-Port = 5060 Acct-Delay-Time = 0 NAS-IP-Address = 127.0.0.1 Client-IP-Address = 127.0.0.1 Acct-Unique-Session-Id = "81e223864b22d27d" Timestamp = 1187263096
Thu Aug 16 16:48:17 2007 Acct-Status-Type = Stop Service-Type = IAPP-Register Attr-102 = 0x000000c8 Error-Cause = 8 Event-Timestamp = "Aug 16 2007 16:48:17 IST" Attr-105 = 0x61733165336262373635 Attr-104 = 0x3563373537633738 Acct-Session-Id = "62210477326ab30b@c291dGhlcm4tYzJkOWVh" Attr-108 = 0x3230322e36332e39362e313933 Attr-109 = 0x35303630 NAS-Port = 5060 Acct-Delay-Time = 0 NAS-IP-Address = 127.0.0.1 Client-IP-Address = 127.0.0.1 Acct-Unique-Session-Id = "81e223864b22d27d" Timestamp = 1187263097
here is my ngrep output.
-------------
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2007.08.16 23:59:48 =~=~=~=~=~=~=~=~=~=~=~= more dd2.log interface: eth0 (X.X.X.0/255.255.255.0) match: 12345 ######## U X.X.X.9:6918 -> X.X.X.10:5060 INVITE sip:17325824631@X.X.X.10 SIP/2.0. Via: SIP/2.0/UDP 192.168.1.101:6918 ;branch=z9hG4bK-d87543-80557a02b3325b61-1--d87543-;rport. Max-Forwards: 70. Contact: sip:12345@192.168.1.101:6918. To: sip:17325824631@X.X.X.10. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 1 INVITE. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO. Content-Type: application/sdp. Supported: eventlist. User-Agent: eyeBeam release 3010n stamp 19039. Content-Length: 238. . v=0. o=- 89492982 89493044 IN IP4 192.168.1.101. s=eyeBeam. c=IN IP4 192.168.1.101. t=0 0. m=audio 9206 RTP/AVP 0 18 5 101. a=alt:1 1 : 0CEDCA47 000000B1 192.168.1.101 9206. a=fmtp:101 0-15. a=rtpmap:101 telephone-event/8000. a=sendrecv.
#### U X.X.X.10:5060 -> X.X.X.9:6918 SIP/2.0 407 Proxy Authentication Required. Via: SIP/2.0/UDP 192.168.1.101:6918 ;branch=z9hG4bK-d87543-80557a02b3325b61-1--d87543-;rport=6918;received= X.X.X.9. To: sip:17325824631@X.X.X.10;tag=822fec8f80c7b67df20525d27b33a67c.3d70. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 1 INVITE. Proxy-Authenticate: Digest realm="X.X.X.10", nonce="46c417d040e3a187e01ee105963ebd3a96ec9bb0", qop="auth". Server: OpenSER (1.2.1-notls (i386/linux)). Content-Length: 0. .
########## U X.X.X.9:6918 -> X.X.X.10:5060 [7m--More--(5%)[27m ACK sip:17325824631@X.X.X.10 SIP/2.0. Via: SIP/2.0/UDP 192.168.1.101:6918 ;branch=z9hG4bK-d87543-80557a02b3325b61-1--d87543-;rport. To: sip:17325824631@X.X.X.10;tag=822fec8f80c7b67df20525d27b33a67c.3d70. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 1 ACK. Content-Length: 0. .
#### U X.X.X.9:6918 -> X.X.X.10:5060 INVITE sip:17325824631@X.X.X.10 SIP/2.0. Via: SIP/2.0/UDP 192.168.1.101:6918 ;branch=z9hG4bK-d87543-cf54aa309b795326-1--d87543-;rport. Max-Forwards: 70. Contact: sip:12345@192.168.1.101:6918. To: sip:17325824631@X.X.X.10. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 INVITE. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO. Content-Type: application/sdp. Proxy-Authorization: Digest username="12345",realm="X.X.X.10 ",nonce="46c417d040e3a187e01ee105963ebd3a96ec9bb0",uri="sip:17 325824631@X.X.X.10",response="2322718e81349b36b1ea7716448a97a3",cnonce="4d58e6b8124bd678",nc=00000001,qop=auth,algorithm=M<325824631@X.X.X.10%22,response=%222322718e81349b36b1ea7716448a97a3%22,cnonce=%224d58e6b8124bd678%22,nc=00000001,qop=auth,algorithm=M> D5. Supported: eventlist. User-Agent: eyeBeam release 3010n stamp 19039. Content-Length: 238. . v=0. o=- 89492982 89493044 IN IP4 192.168.1.101. s=eyeBeam. c=IN IP4 192.168.1.101. t=0 0. m=audio 9206 RTP/AVP 0 18 5 101. a=alt:1 1 : 0CEDCA47 000000B1 192.168.1.101 9206. a=fmtp:101 0-15. a=rtpmap:101 telephone-event/8000. a=sendrecv.
################# U X.X.X.10:5060 -> X.X.X.9:6918 SIP/2.0 100 Giving a try. Via: SIP/2.0/UDP 192.168.1.101:6918 ;branch=z9hG4bK-d87543-cf54aa309b795326-1--d87543-;rport=6918;received= X.X.X.9. To: sip:17325824631@X.X.X.10. [7m--More--(10%)[27m From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 INVITE. Server: OpenSER (1.2.1-notls (i386/linux)). Content-Length: 0. .
# U X.X.X.10:5060 -> X.X.X.193:5060 INVITE sip:17325824631@X.X.X.193:5060 SIP/2.0. Record-Route: sip:X.X.X.10:5060;nat=yes;ftag=af4ec95e;lr=on. Via: SIP/2.0/UDP X.X.X.10;branch=z9hG4bK79ae.743544a4.0. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-cf54aa309b795326-1--d87543-;rport=6918. Max-Forwards: 69. Contact: sip:12345@X.X.X.9:6918. To: sip:17325824631@X.X.X.10. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 INVITE. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO. Content-Type: application/sdp. Supported: eventlist. User-Agent: eyeBeam release 3010n stamp 19039. Content-Length: 258. . v=0. o=- 89492982 89493044 IN IP4 192.168.1.101. s=eyeBeam. c=IN IP4 192.168.1.101. t=0 0. m=audio 9206 RTP/AVP 0 18 5 101. a=alt:1 1 : 0CEDCA47 000000B1 192.168.1.101 9206. a=fmtp:101 0-15. a=rtpmap:101 telephone-event/8000. a=sendrecv. a=direction:active.
# U X.X.X.193:5060 -> X.X.X.10:5060 SIP/2.0 100 Trying. Via: SIP/2.0/UDP X.X.X.10;branch=z9hG4bK79ae.743544a4.0;received=X.X.X.10. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-cf54aa309b795326-1--d87543-;rport=6918. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. To: sip:17325824631@X.X.X.10. [7m--More--(16%)[27m Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 INVITE. User-Agent: Asterisk PBX. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY. Contact: sip:17325824631@X.X.X.193. Content-Length: 0. .
############## U X.X.X.193:5060 -> X.X.X.10:5060 SIP/2.0 180 Ringing. Via: SIP/2.0/UDP X.X.X.10;branch=z9hG4bK79ae.743544a4.0;received=X.X.X.10. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-cf54aa309b795326-1--d87543-;rport=6918. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. To: sip:17325824631@X.X.X.10;tag=as73734c92. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 INVITE. User-Agent: Asterisk PBX. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY. Contact: sip:17325824631@X.X.X.193. Content-Length: 0. .
############# U X.X.X.10:5060 -> X.X.X.9:6918 SIP/2.0 180 Ringing. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-cf54aa309b795326-1--d87543-;rport=6918. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. To: sip:17325824631@X.X.X.10;tag=as73734c92. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 INVITE. User-Agent: Asterisk PBX. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY. Contact: sip:17325824631@X.X.X.193. Content-Length: 0. .
######################### U X.X.X.193:5060 -> X.X.X.10:5060 SIP/2.0 200 OK. Via: SIP/2.0/UDP X.X.X.10;branch=z9hG4bK79ae.743544a4.0;received=X.X.X.10. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-cf54aa309b795326-1--d87543-;rport=6918. Record-Route: sip:X.X.X.10:5060;nat=yes;ftag=af4ec95e;lr=on. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. [7m--More--(22%)[27m To: sip:17325824631@X.X.X.10;tag=as73734c92. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 INVITE. User-Agent: Asterisk PBX. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY. Contact: sip:17325824631@X.X.X.193. Content-Type: application/sdp. Content-Length: 239. . v=0. o=root 3358 3358 IN IP4 X.X.X.193. s=session. c=IN IP4 X.X.X.193. t=0 0. m=audio 19038 RTP/AVP 18 101. a=rtpmap:18 G729/8000. a=fmtp:18 annexb=no. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-16. a=silenceSupp:off - - - -.
#### U X.X.X.10:5060 -> X.X.X.9:6918 SIP/2.0 200 OK. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-cf54aa309b795326-1--d87543-;rport=6918. Record-Route: sip:X.X.X.10:5060;nat=yes;ftag=af4ec95e;lr=on. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. To: sip:17325824631@X.X.X.10;tag=as73734c92. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 INVITE. User-Agent: Asterisk PBX. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY. Contact: sip:17325824631@X.X.X.193:5060. Content-Type: application/sdp. Content-Length: 239. . v=0. o=root 3358 3358 IN IP4 X.X.X.193. s=session. c=IN IP4 X.X.X.193. t=0 0. m=audio 19038 RTP/AVP 18 101. a=rtpmap:18 G729/8000. a=fmtp:18 annexb=no. [7m--More--(26%)[27m a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-16. a=silenceSupp:off - - - -.
#### U X.X.X.193:5060 -> X.X.X.10:5060 SIP/2.0 200 OK. Via: SIP/2.0/UDP X.X.X.10;branch=z9hG4bK79ae.743544a4.0;received=X.X.X.10. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-cf54aa309b795326-1--d87543-;rport=6918. Record-Route: sip:X.X.X.10:5060;nat=yes;ftag=af4ec95e;lr=on. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. To: sip:17325824631@X.X.X.10;tag=as73734c92. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 INVITE. User-Agent: Asterisk PBX. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY. Contact: sip:17325824631@X.X.X.193. Content-Type: application/sdp. Content-Length: 239. . v=0. o=root 3358 3358 IN IP4 X.X.X.193. s=session. c=IN IP4 X.X.X.193. t=0 0. m=audio 19038 RTP/AVP 18 101. a=rtpmap:18 G729/8000. a=fmtp:18 annexb=no. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-16. a=silenceSupp:off - - - -.
# U X.X.X.193:5060 -> X.X.X.10:5060 SIP/2.0 200 OK. Via: SIP/2.0/UDP X.X.X.10;branch=z9hG4bK79ae.743544a4.0;received=X.X.X.10. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-cf54aa309b795326-1--d87543-;rport=6918. Record-Route: sip:X.X.X.10:5060;nat=yes;ftag=af4ec95e;lr=on. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. To: sip:17325824631@X.X.X.10;tag=as73734c92. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 INVITE. User-Agent: Asterisk PBX. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY. [7m--More--(31%)[27m Contact: sip:17325824631@X.X.X.193. Content-Type: application/sdp. Content-Length: 239. . v=0. o=root 3358 3358 IN IP4 X.X.X.193. s=session. c=IN IP4 X.X.X.193. t=0 0. m=audio 19038 RTP/AVP 18 101. a=rtpmap:18 G729/8000. a=fmtp:18 annexb=no. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-16. a=silenceSupp:off - - - -.
# U X.X.X.193:5060 -> X.X.X.10:5060 SIP/2.0 200 OK. Via: SIP/2.0/UDP X.X.X.10;branch=z9hG4bK79ae.743544a4.0;received=X.X.X.10. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-cf54aa309b795326-1--d87543-;rport=6918. Record-Route: sip:X.X.X.10:5060;nat=yes;ftag=af4ec95e;lr=on. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. To: sip:17325824631@X.X.X.10;tag=as73734c92. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 INVITE. User-Agent: Asterisk PBX. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY. Contact: sip:17325824631@X.X.X.193. Content-Type: application/sdp. Content-Length: 239. . v=0. o=root 3358 3358 IN IP4 X.X.X.193. s=session. c=IN IP4 X.X.X.193. t=0 0. m=audio 19038 RTP/AVP 18 101. a=rtpmap:18 G729/8000. a=fmtp:18 annexb=no. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-16. a=silenceSupp:off - - - -.
[7m--More--(36%)[27m #[K U X.X.X.10:5060 -> X.X.X.9:6918 SIP/2.0 200 OK. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-cf54aa309b795326-1--d87543-;rport=6918. Record-Route: sip:X.X.X.10:5060;nat=yes;ftag=af4ec95e;lr=on. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. To: sip:17325824631@X.X.X.10;tag=as73734c92. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 INVITE. User-Agent: Asterisk PBX. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY. Contact: sip:17325824631@X.X.X.193:5060. Content-Type: application/sdp. Content-Length: 239. . v=0. o=root 3358 3358 IN IP4 X.X.X.193. s=session. c=IN IP4 X.X.X.193. t=0 0. m=audio 19038 RTP/AVP 18 101. a=rtpmap:18 G729/8000. a=fmtp:18 annexb=no. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-16. a=silenceSupp:off - - - -.
# U X.X.X.10:5060 -> X.X.X.9:6918 SIP/2.0 200 OK. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-cf54aa309b795326-1--d87543-;rport=6918. Record-Route: sip:X.X.X.10:5060;nat=yes;ftag=af4ec95e;lr=on. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. To: sip:17325824631@X.X.X.10;tag=as73734c92. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 INVITE. User-Agent: Asterisk PBX. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY. Contact: sip:17325824631@X.X.X.193:5060. Content-Type: application/sdp. Content-Length: 239. . v=0. o=root 3358 3358 IN IP4 X.X.X.193. [7m--More--(41%)[27m s=session.[K c=IN IP4 X.X.X.193. t=0 0. m=audio 19038 RTP/AVP 18 101. a=rtpmap:18 G729/8000. a=fmtp:18 annexb=no. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-16. a=silenceSupp:off - - - -.
# U X.X.X.10:5060 -> X.X.X.9:6918 SIP/2.0 200 OK. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-cf54aa309b795326-1--d87543-;rport=6918. Record-Route: sip:X.X.X.10:5060;nat=yes;ftag=af4ec95e;lr=on. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. To: sip:17325824631@X.X.X.10;tag=as73734c92. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 INVITE. User-Agent: Asterisk PBX. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY. Contact: sip:17325824631@X.X.X.193:5060. Content-Type: application/sdp. Content-Length: 239. . v=0. o=root 3358 3358 IN IP4 X.X.X.193. s=session. c=IN IP4 X.X.X.193. t=0 0. m=audio 19038 RTP/AVP 18 101. a=rtpmap:18 G729/8000. a=fmtp:18 annexb=no. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-16. a=silenceSupp:off - - - -.
# U X.X.X.193:5060 -> X.X.X.10:5060 SIP/2.0 200 OK. Via: SIP/2.0/UDP X.X.X.10;branch=z9hG4bK79ae.743544a4.0;received=X.X.X.10. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-cf54aa309b795326-1--d87543-;rport=6918. Record-Route: sip:X.X.X.10:5060;nat=yes;ftag=af4ec95e;lr=on. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. [7m--More--(46%)[27m To: sip:17325824631@X.X.X.10;tag=as73734c92. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 INVITE. User-Agent: Asterisk PBX. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY. Contact: sip:17325824631@X.X.X.193. Content-Type: application/sdp. Content-Length: 239. . v=0. o=root 3358 3358 IN IP4 X.X.X.193. s=session. c=IN IP4 X.X.X.193. t=0 0. m=audio 19038 RTP/AVP 18 101. a=rtpmap:18 G729/8000. a=fmtp:18 annexb=no. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-16. a=silenceSupp:off - - - -.
# U X.X.X.193:5060 -> X.X.X.10:5060 SIP/2.0 200 OK. Via: SIP/2.0/UDP X.X.X.10;branch=z9hG4bK79ae.743544a4.0;received=X.X.X.10. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-cf54aa309b795326-1--d87543-;rport=6918. Record-Route: sip:X.X.X.10:5060;nat=yes;ftag=af4ec95e;lr=on. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. To: sip:17325824631@X.X.X.10;tag=as73734c92. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 INVITE. User-Agent: Asterisk PBX. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY. Contact: sip:17325824631@X.X.X.193. Content-Type: application/sdp. Content-Length: 239. . v=0. o=root 3358 3358 IN IP4 X.X.X.193. s=session. c=IN IP4 X.X.X.193. t=0 0. m=audio 19038 RTP/AVP 18 101. a=rtpmap:18 G729/8000. [7m--More--(50%)[27m a=fmtp:18 annexb=no. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-16. a=silenceSupp:off - - - -.
# U X.X.X.193:5060 -> X.X.X.10:5060 SIP/2.0 200 OK. Via: SIP/2.0/UDP X.X.X.10;branch=z9hG4bK79ae.743544a4.0;received=X.X.X.10. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-cf54aa309b795326-1--d87543-;rport=6918. Record-Route: sip:X.X.X.10:5060;nat=yes;ftag=af4ec95e;lr=on. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. To: sip:17325824631@X.X.X.10;tag=as73734c92. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 INVITE. User-Agent: Asterisk PBX. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY. Contact: sip:17325824631@X.X.X.193. Content-Type: application/sdp. Content-Length: 239. . v=0. o=root 3358 3358 IN IP4 X.X.X.193. s=session. c=IN IP4 X.X.X.193. t=0 0. m=audio 19038 RTP/AVP 18 101. a=rtpmap:18 G729/8000. a=fmtp:18 annexb=no. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-16. a=silenceSupp:off - - - -.
################################ U X.X.X.9:6918 -> X.X.X.10:5060 ACK sip:17325824631@X.X.X.193:5060 SIP/2.0. Via: SIP/2.0/UDP 192.168.1.101:6918 ;branch=z9hG4bK-d87543-a233157897746242-1--d87543-;rport. Max-Forwards: 70. Route: sip:X.X.X.10:5060;lr;nat=yes;ftag=af4ec95e. Contact: sip:12345@192.168.1.101:6918. To: sip:17325824631@X.X.X.10;tag=as73734c92. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 ACK. [7m--More--(55%)[27m User-Agent: eyeBeam release 3010n stamp 19039. Content-Length: 0. .
# U X.X.X.9:6918 -> X.X.X.10:5060 ACK sip:17325824631@X.X.X.193:5060 SIP/2.0. Via: SIP/2.0/UDP 192.168.1.101:6918 ;branch=z9hG4bK-d87543-302b8a1a07393009-1--d87543-;rport. Max-Forwards: 70. Route: sip:X.X.X.10:5060;lr;nat=yes;ftag=af4ec95e. Contact: sip:12345@192.168.1.101:6918. To: sip:17325824631@X.X.X.10;tag=as73734c92. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 ACK. User-Agent: eyeBeam release 3010n stamp 19039. Content-Length: 0. .
# U X.X.X.9:6918 -> X.X.X.10:5060 ACK sip:17325824631@X.X.X.193:5060 SIP/2.0. Via: SIP/2.0/UDP 192.168.1.101:6918 ;branch=z9hG4bK-d87543-3b54ea1e2709d069-1--d87543-;rport. Max-Forwards: 70. Route: sip:X.X.X.10:5060;lr;nat=yes;ftag=af4ec95e. Contact: sip:12345@192.168.1.101:6918. To: sip:17325824631@X.X.X.10;tag=as73734c92. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 ACK. User-Agent: eyeBeam release 3010n stamp 19039. Content-Length: 0. .
# U X.X.X.9:6918 -> X.X.X.10:5060 ACK sip:17325824631@X.X.X.193:5060 SIP/2.0. Via: SIP/2.0/UDP 192.168.1.101:6918 ;branch=z9hG4bK-d87543-0637ce4875464712-1--d87543-;rport. Max-Forwards: 70. Route: sip:X.X.X.10:5060;lr;nat=yes;ftag=af4ec95e. Contact: sip:12345@192.168.1.101:6918. To: sip:17325824631@X.X.X.10;tag=as73734c92. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. [7m--More--(61%)[27m CSeq: 2 ACK.[K User-Agent: eyeBeam release 3010n stamp 19039. Content-Length: 0. .
######## U X.X.X.10:5060 -> X.X.X.9:6918 SIP/2.0 200 OK. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-cf54aa309b795326-1--d87543-;rport=6918. Record-Route: sip:X.X.X.10:5060;nat=yes;ftag=af4ec95e;lr=on. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. To: sip:17325824631@X.X.X.10;tag=as73734c92. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 INVITE. User-Agent: Asterisk PBX. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY. Contact: sip:17325824631@X.X.X.193:5060. Content-Type: application/sdp. Content-Length: 239. . v=0. o=root 3358 3358 IN IP4 X.X.X.193. s=session. c=IN IP4 X.X.X.193. t=0 0. m=audio 19038 RTP/AVP 18 101. a=rtpmap:18 G729/8000. a=fmtp:18 annexb=no. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-16. a=silenceSupp:off - - - -.
## U X.X.X.10:5060 -> X.X.X.193:5060 ACK sip:17325824631@X.X.X.193:5060 SIP/2.0. Record-Route: sip:X.X.X.10;lr=on;ftag=af4ec95e. Via: SIP/2.0/UDP X.X.X.10;branch=z9hG4bK79ae.743544a4.2. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-302b8a1a07393009-1--d87543-;rport=6918. Max-Forwards: 69. Contact: sip:12345@192.168.1.101:6918. To: sip:17325824631@X.X.X.10;tag=as73734c92. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 ACK. [7m--More--(66%)[27m User-Agent: eyeBeam release 3010n stamp 19039. Content-Length: 0. .
# U X.X.X.10:5060 -> X.X.X.193:5060 ACK sip:17325824631@X.X.X.193:5060 SIP/2.0. Record-Route: sip:X.X.X.10;lr=on;ftag=af4ec95e. Via: SIP/2.0/UDP X.X.X.10;branch=z9hG4bK79ae.743544a4.2. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-3b54ea1e2709d069-1--d87543-;rport=6918. Max-Forwards: 69. Contact: sip:12345@192.168.1.101:6918. To: sip:17325824631@X.X.X.10;tag=as73734c92. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 ACK. User-Agent: eyeBeam release 3010n stamp 19039. Content-Length: 0. .
########### U X.X.X.10:5060 -> X.X.X.193:5060 ACK sip:17325824631@X.X.X.193:5060 SIP/2.0. Record-Route: sip:X.X.X.10;lr=on;ftag=af4ec95e. Via: SIP/2.0/UDP X.X.X.10;branch=z9hG4bK79ae.743544a4.2. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-0637ce4875464712-1--d87543-;rport=6918. Max-Forwards: 69. Contact: sip:12345@192.168.1.101:6918. To: sip:17325824631@X.X.X.10;tag=as73734c92. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 ACK. User-Agent: eyeBeam release 3010n stamp 19039. Content-Length: 0. .
## U X.X.X.10:5060 -> X.X.X.9:6918 SIP/2.0 200 OK. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-cf54aa309b795326-1--d87543-;rport=6918. Record-Route: sip:X.X.X.10:5060;nat=yes;ftag=af4ec95e;lr=on. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. To: sip:17325824631@X.X.X.10;tag=as73734c92. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. [7m--More--(72%)[27m CSeq: 2 INVITE. User-Agent: Asterisk PBX. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY. Contact: sip:17325824631@X.X.X.193:5060. Content-Type: application/sdp. Content-Length: 239. . v=0. o=root 3358 3358 IN IP4 X.X.X.193. s=session. c=IN IP4 X.X.X.193. t=0 0. m=audio 19038 RTP/AVP 18 101. a=rtpmap:18 G729/8000. a=fmtp:18 annexb=no. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-16. a=silenceSupp:off - - - -.
# U X.X.X.10:5060 -> X.X.X.193:5060 ACK sip:17325824631@X.X.X.193:5060 SIP/2.0. Record-Route: sip:X.X.X.10;lr=on;ftag=af4ec95e. Via: SIP/2.0/UDP X.X.X.10;branch=z9hG4bK79ae.743544a4.2. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-a233157897746242-1--d87543-;rport=6918. Max-Forwards: 69. Contact: sip:12345@192.168.1.101:6918. To: sip:17325824631@X.X.X.10;tag=as73734c92. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 ACK. User-Agent: eyeBeam release 3010n stamp 19039. Content-Length: 0. .
############# U X.X.X.10:5060 -> X.X.X.9:6918 SIP/2.0 200 OK. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-cf54aa309b795326-1--d87543-;rport=6918. Record-Route: sip:X.X.X.10:5060;nat=yes;ftag=af4ec95e;lr=on. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. To: sip:17325824631@X.X.X.10;tag=as73734c92. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 INVITE. [7m--More--(77%)[27m User-Agent: Asterisk PBX. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY. Contact: sip:17325824631@X.X.X.193:5060. Content-Type: application/sdp. Content-Length: 239. . v=0. o=root 3358 3358 IN IP4 X.X.X.193. s=session. c=IN IP4 X.X.X.193. t=0 0. m=audio 19038 RTP/AVP 18 101. a=rtpmap:18 G729/8000. a=fmtp:18 annexb=no. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-16. a=silenceSupp:off - - - -.
############# U X.X.X.9:6918 -> X.X.X.10:5060 ACK sip:17325824631@X.X.X.193:5060 SIP/2.0. Via: SIP/2.0/UDP 192.168.1.101:6918 ;branch=z9hG4bK-d87543-e5138b4b5961e80c-1--d87543-;rport. Max-Forwards: 70. Route: sip:X.X.X.10:5060;lr;nat=yes;ftag=af4ec95e. Contact: sip:12345@192.168.1.101:6918. To: sip:17325824631@X.X.X.10;tag=as73734c92. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 ACK. User-Agent: eyeBeam release 3010n stamp 19039. Content-Length: 0. .
## U X.X.X.10:5060 -> X.X.X.193:5060 ACK sip:17325824631@X.X.X.193:5060 SIP/2.0. Record-Route: sip:X.X.X.10;lr=on;ftag=af4ec95e. Via: SIP/2.0/UDP X.X.X.10;branch=z9hG4bK79ae.743544a4.2. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-e5138b4b5961e80c-1--d87543-;rport=6918. Max-Forwards: 69. Contact: sip:12345@192.168.1.101:6918. To: sip:17325824631@X.X.X.10;tag=as73734c92. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. [7m--More--(82%)[27m CSeq: 2 ACK.[K User-Agent: eyeBeam release 3010n stamp 19039. Content-Length: 0. .
####### U X.X.X.9:6918 -> X.X.X.10:5060 ACK sip:17325824631@X.X.X.193:5060 SIP/2.0. Via: SIP/2.0/UDP 192.168.1.101:6918 ;branch=z9hG4bK-d87543-e71e860dc038c97f-1--d87543-;rport. Max-Forwards: 70. Route: sip:X.X.X.10:5060;lr;nat=yes;ftag=af4ec95e. Contact: sip:12345@192.168.1.101:6918. To: sip:17325824631@X.X.X.10;tag=as73734c92. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 ACK. User-Agent: eyeBeam release 3010n stamp 19039. Content-Length: 0. .
# U X.X.X.10:5060 -> X.X.X.193:5060 ACK sip:17325824631@X.X.X.193:5060 SIP/2.0. Record-Route: sip:X.X.X.10;lr=on;ftag=af4ec95e. Via: SIP/2.0/UDP X.X.X.10;branch=z9hG4bK79ae.743544a4.2. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-e71e860dc038c97f-1--d87543-;rport=6918. Max-Forwards: 69. Contact: sip:12345@192.168.1.101:6918. To: sip:17325824631@X.X.X.10;tag=as73734c92. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 ACK. User-Agent: eyeBeam release 3010n stamp 19039. Content-Length: 0. .
#### U X.X.X.9:6918 -> X.X.X.10:5060 ACK sip:17325824631@X.X.X.193:5060 SIP/2.0. Via: SIP/2.0/UDP 192.168.1.101:6918 ;branch=z9hG4bK-d87543-242df96a2433934b-1--d87543-;rport. Max-Forwards: 70. Route: sip:X.X.X.10:5060;lr;nat=yes;ftag=af4ec95e. Contact: sip:12345@192.168.1.101:6918. To: sip:17325824631@X.X.X.10;tag=as73734c92. [7m--More--(87%)[27m From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 ACK. User-Agent: eyeBeam release 3010n stamp 19039. Content-Length: 0. .
# U X.X.X.10:5060 -> X.X.X.193:5060 ACK sip:17325824631@X.X.X.193:5060 SIP/2.0. Record-Route: sip:X.X.X.10;lr=on;ftag=af4ec95e. Via: SIP/2.0/UDP X.X.X.10;branch=z9hG4bK79ae.743544a4.2. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-242df96a2433934b-1--d87543-;rport=6918. Max-Forwards: 69. Contact: sip:12345@192.168.1.101:6918. To: sip:17325824631@X.X.X.10;tag=as73734c92. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 2 ACK. User-Agent: eyeBeam release 3010n stamp 19039. Content-Length: 0. .
######################## U X.X.X.9:6918 -> X.X.X.10:5060 BYE sip:17325824631@X.X.X.193:5060 SIP/2.0. Via: SIP/2.0/UDP 192.168.1.101:6918 ;branch=z9hG4bK-d87543-c16d40693272e507-1--d87543-;rport. Max-Forwards: 70. Route: sip:X.X.X.10:5060;lr;nat=yes;ftag=af4ec95e. Contact: sip:12345@192.168.1.101:6918. To: sip:17325824631@X.X.X.10;tag=as73734c92. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 3 BYE. Proxy-Authorization: Digest username="12345",realm="X.X.X.10 ",nonce="46c417d040e3a187e01ee105963ebd3a96ec9bb0",uri="sip:17 325824631@X.X.X.193:5060",response="a27cc8ce4b3727250fad062e77232050",cnonce="c31f5fae774aadda",nc=00000002,qop=auth,algor<325824631@X.X.X.193:5060%22,response=%22a27cc8ce4b3727250fad062e77232050%22,cnonce=%22c31f5fae774aadda%22,nc=00000002,qop=auth,algor> ithm=MD5. User-Agent: eyeBeam release 3010n stamp 19039. Content-Length: 0. .
#### U X.X.X.10:5060 -> X.X.X.193:5060 BYE sip:17325824631@X.X.X.193:5060 SIP/2.0. [7m--More--(93%)[27m Record-Route: sip:X.X.X.10;lr=on;ftag=af4ec95e. Via: SIP/2.0/UDP X.X.X.10;branch=z9hG4bK89ae.fa0e36b5.0. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-c16d40693272e507-1--d87543-;rport=6918. Max-Forwards: 69. Contact: sip:12345@192.168.1.101:6918. To: sip:17325824631@X.X.X.10;tag=as73734c92. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 3 BYE. Proxy-Authorization: Digest username="12345",realm="X.X.X.10 ",nonce="46c417d040e3a187e01ee105963ebd3a96ec9bb0",uri="sip:17 325824631@X.X.X.193:5060",response="a27cc8ce4b3727250fad062e77232050",cnonce="c31f5fae774aadda",nc=00000002,qop=auth,algor<325824631@X.X.X.193:5060%22,response=%22a27cc8ce4b3727250fad062e77232050%22,cnonce=%22c31f5fae774aadda%22,nc=00000002,qop=auth,algor> ithm=MD5. User-Agent: eyeBeam release 3010n stamp 19039. Content-Length: 0. .
### U X.X.X.193:5060 -> X.X.X.10:5060 SIP/2.0 481 Call leg/transaction does not exist. Via: SIP/2.0/UDP X.X.X.10;branch=z9hG4bK89ae.fa0e36b5.0;received=X.X.X.10. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-c16d40693272e507-1--d87543-;rport=6918. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. To: sip:17325824631@X.X.X.10;tag=as73734c92. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 3 BYE. User-Agent: Asterisk PBX. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY. Content-Length: 0. .
# U X.X.X.10:5060 -> X.X.X.9:6918 SIP/2.0 481 Call leg/transaction does not exist. Via: SIP/2.0/UDP 192.168.1.101:6918;received=X.X.X.9 ;branch=z9hG4bK-d87543-c16d40693272e507-1--d87543-;rport=6918. From: "12345"sip:12345@X.X.X.10;tag=af4ec95e. To: sip:17325824631@X.X.X.10;tag=as73734c92. Call-ID: 7a3c594386522c1f@c291dGhlcm4tYzJkOWVh. CSeq: 3 BYE. User-Agent: Asterisk PBX. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY. Content-Length: 0. .
Hi Ram,
apparently you are not sending enough information to radius for accounting. Starting 1.2.0 you need to add extra attributes since basic info doesn't anymore contain the necessary fields to build a cdr.
You should have something similar: modparam("acc", "radius_extra", " Called-Station-Id=$tu; Calling-Station-Id=$fu; Canonical-URI=$tu; User-Name=$au; Sip-User-Realm=$ar; Source-IP=$si; Source-Port=$sp; From-Header=$hdr(from); User-Agent=$hdr(user-agent); Contact=$hdr(contact); Event=$hdr(event)")
Cheers, DanB
On 8/17/07, Dan-Cristian Bogos dan.bogos@gmail.com wrote:
Hi Ram,
apparently you are not sending enough information to radius for accounting. Starting 1.2.0 you need to add extra attributes since basic info doesn't anymore contain the necessary fields to build a cdr.
You should have something similar: modparam("acc", "radius_extra", " Called-Station-Id=$tu; Calling-Station-Id=$fu; Canonical-URI=$tu; User-Name=$au; Sip-User-Realm=$ar; Source-IP=$si; Source-Port=$sp; From-Header=$hdr(from); User-Agent=$hdr(user-agent); Contact=$hdr(contact); Event=$hdr(event)")
Hi
thats nice information let me add and see if i can get full information of accouting what i want to be
we will reply the status in few hours
ram
iam updating the new document for the openser with freeradius also, its quite old now. after my success installation.
On 8/17/07, Dan-Cristian Bogos dan.bogos@gmail.com wrote:
Hi Ram,
apparently you are not sending enough information to radius for accounting. Starting 1.2.0 you need to add extra attributes since basic info doesn't anymore contain the necessary fields to build a cdr.
You should have something similar: modparam("acc", "radius_extra", " Called-Station-Id=$tu; Calling-Station-Id=$fu; Canonical-URI=$tu; User-Name=$au; Sip-User-Realm=$ar; Source-IP=$si; Source-Port=$sp; From-Header=$hdr(from); User-Agent=$hdr(user-agent); Contact=$hdr(contact); Event=$hdr(event)")
Hi
after adding the above line, iam not able to start openser, its just quitting with the following errors, any suggestions
0(2848) fm_malloc_init: F_OPTIMIZE=16384, /ROUNDTO=2048 0(2848) fm_malloc_init: F_HASH_SIZE=2067, fm_block size=16560 0(2848) fm_malloc_init(0xb5f8c000, 33554432), start=0xb5f8c000 0(2848) shm_mem_init: success 0(2848) init_tcp: using epoll_lt as the io watch method (auto detected) 0(0) core dump limits set to 4294967295 0(0) DEBUG:add_avp_galias: registering <serial_branch> for avp id <16725044> 0(0) INFO: statistics manager successfully initialized 0(0) DEBUG: init_mod: mysql 0(0) mysql: MySQL client version is 5.0.27 0(0) DEBUG: init_mod: mi_fifo 0(0) DBG: mi_fifo: mi_mod_init: testing fifo existance ... 0(0) DEBUG: init_mod: sl 0(0) StateLess module - initializing 0(0) DEBUG: MD5 calculated: 822fec8f80c7b67df20525d27b33a67c 0(0) DEBUG: register_stats: sl 0(0) DEBUG: init_mod: tm 0(0) TM - initializing... 0(0) Call-ID initialization: '79effffd' 0(0) unixsock_register_cmd: New command (t_uac_dlg) registered 0(0) unixsock_register_cmd: New command (t_uac_cancel) registered 0(0) unixsock_register_cmd: New command (t_hash) registered 0(0) unixsock_register_cmd: New command (t_reply) registered 0(0) DEBUG: lock_initialize: lock initialization started [root@home openser]# 0(0) DEBUG: MD5 calculated: 7ac89abfaa5cc52cf9dfcc0d87c7c29f 0(0) DEBUG: MD5 calculated: 56a2d1a773791176622e5c3e54467ba1 0(0) DEBUG: register_stats: tm 0(0) DEBUG: register_mi: tm 0(0) DEBUG: init_mod: rr 0(0) rr - initializing 0(0) DEBUG: init_mod: maxfwd 0(0) Maxfwd module- initializing 0(0) DEBUG: init_mod: usrloc 0(0) usrloc - initializing 0(0) INFO:ul_init_locks: locks array size 512 0(0) unixsock_register_cmd: New command (ul_rm) registered 0(0) unixsock_register_cmd: New command (ul_rm_contact) registered 0(0) unixsock_register_cmd: New command (ul_dump) registered 0(0) unixsock_register_cmd: New command (ul_flush) registered 0(0) unixsock_register_cmd: New command (ul_add) registered 0(0) unixsock_register_cmd: New command (ul_show_contact) registered 0(0) find_mod_export: found <db_use_table> in module mysql [/usr/local/lib/openser/modules/mysql.so] 0(0) find_mod_export: found <db_init> in module mysql [/usr/local/lib/openser/modules/mysql.so] 0(0) find_mod_export: found <db_close> in module mysql [/usr/local/lib/openser/modules/mysql.so] 0(0) find_mod_export: found <db_query> in module mysql [/usr/local/lib/openser/modules/mysql.so] 0(0) find_mod_export: found <db_fetch_result> in module mysql [/usr/local/lib/openser/modules/mysql.so] 0(0) find_mod_export: found <db_raw_query> in module mysql [/usr/local/lib/openser/modules/mysql.so] 0(0) find_mod_export: found <db_free_result> in module mysql [/usr/local/lib/openser/modules/mysql.so] 0(0) find_mod_export: found <db_insert> in module mysql [/usr/local/lib/openser/modules/mysql.so] 0(0) find_mod_export: found <db_delete> in module mysql [/usr/local/lib/openser/modules/mysql.so] 0(0) find_mod_export: found <db_update> in module mysql [/usr/local/lib/openser/modules/mysql.so] 0(0) find_mod_export: found <db_replace> in module mysql [/usr/local/lib/openser/modules/mysql.so] 0(0) DEBUG: register_stats: usrloc 0(0) DEBUG: register_mi: usrloc 0(0) DEBUG: init_mod: registrar 0(0) registrar - initializing 0(0) find_cmd_export_t: found <load_sl>(0) in module sl [/usr/local/lib/openser/modules/sl.so] 0(0) xl_parse_name: name [s:rcv] index [0] 0(0) xl_parse_vname: avp [s:rcv] 0(0) find_cmd_export_t: found <ul_bind_usrloc>(1) in module usrloc [/usr/local/lib/openser/modules/usrloc.so] 0(0) DEBUG: register_stats: registrar 0(0) DEBUG: init_mod: acc 0(0) ACC - initializing 0(0) find_cmd_export_t: found <load_tm>(0) in module tm [/usr/local/lib/openser/modules/tm.so] 0(0) xl_lookup_spec_name: found [tu] [22] 0(0) xl_lookup_spec_name: found [fu] [18] 0(0) xl_lookup_spec_name: found [tu] [22] 0(0) xl_lookup_spec_name: found [au] [47] 0(0) xl_lookup_spec_name: found [ar] [48] 0(0) xl_lookup_spec_name: found [si] [34] 0(0) xl_lookup_spec_name: found [sp] [35] 0(0) xl_parse_name: name [from] index [0] 0(0) INFO:xl_parse_name: using hdr type (4) instead of <from> 0(0) xl_parse_name: name [user-agent] index [0] 0(0) INFO:xl_parse_name: using hdr type (27) instead of <user-agent> 0(0) xl_parse_name: name [contact] index [0] 0(0) INFO:xl_parse_name: using hdr type (7) instead of <contact> 0(0) xl_parse_name: name [event] index [0] 0(0) INFO:xl_parse_name: using hdr type (21) instead of <event> 0(0) ERROR: acc: can't get code for the anonical-URI attribute 0(0) ERROR:acc:mod_init: failed to init radius 0(0) init_mod(): Error while initializing module acc ERROR: error while initializing modules 0(0) XLOG: destroy module ... 0(0) DEBUG: tm_shutdown : start 0(0) DEBUG: unlink_timer_lists : emptying DELETE list 0(0) DEBUG: tm_shutdown : emptying hash table 0(0) DEBUG: tm_shutdown : releasing timers 0(0) DEBUG: tm_shutdown : removing semaphores 0(0) DEBUG: tm_shutdown : destroying tmcb lists 0(0) DEBUG: tm_shutdown : done 0(0) INFO:mi_fifo:mi_destroy: process hasn't been created -> nothing to kill 0(2850) shm_mem_destroy 0(2850) destroying the shared memory lock
ram
From your log listed below:
0(0) ERROR: acc: can't get code for the anonical-URI attribute 0(0) ERROR:acc:mod_init: failed to init radius 0(0) init_mod(): Error while initializing module acc
Was there perhaps a typo: "anonical-URI" instead of "Canonical-URI"
In addition, remember that ALL radius attributes you define MUST be able to be found in one of the radius dictionaries.
Regards, Norm
ram wrote:
On 8/17/07, *Dan-Cristian Bogos* <dan.bogos@gmail.com mailto:dan.bogos@gmail.com> wrote:
Hi Ram, apparently you are not sending enough information to radius for accounting. Starting 1.2.0 you need to add extra attributes since basic info doesn't anymore contain the necessary fields to build a cdr. You should have something similar: modparam("acc", "radius_extra", " Called-Station-Id=$tu; Calling-Station-Id=$fu; Canonical-URI=$tu; User-Name=$au; Sip-User-Realm=$ar; Source-IP=$si; Source-Port=$sp; From-Header=$hdr(from); User-Agent=$hdr(user-agent); Contact=$hdr(contact); Event=$hdr(event)")
Hi
after adding the above line, iam not able to start openser, its just quitting with the following errors, any suggestions
0(2848) fm_malloc_init: F_OPTIMIZE=16384, /ROUNDTO=2048 0(2848) fm_malloc_init: F_HASH_SIZE=2067, fm_block size=16560 0(2848) fm_malloc_init(0xb5f8c000, 33554432), start=0xb5f8c000 0(2848) shm_mem_init: success 0(2848) init_tcp: using epoll_lt as the io watch method (auto detected) 0(0) core dump limits set to 4294967295 0(0) DEBUG:add_avp_galias: registering <serial_branch> for avp id <16725044> 0(0) INFO: statistics manager successfully initialized 0(0) DEBUG: init_mod: mysql 0(0) mysql: MySQL client version is 5.0.27 0(0) DEBUG: init_mod: mi_fifo 0(0) DBG: mi_fifo: mi_mod_init: testing fifo existance ... 0(0) DEBUG: init_mod: sl 0(0) StateLess module - initializing 0(0) DEBUG: MD5 calculated: 822fec8f80c7b67df20525d27b33a67c 0(0) DEBUG: register_stats: sl 0(0) DEBUG: init_mod: tm 0(0) TM - initializing... 0(0) Call-ID initialization: '79effffd' 0(0) unixsock_register_cmd: New command (t_uac_dlg) registered 0(0) unixsock_register_cmd: New command (t_uac_cancel) registered 0(0) unixsock_register_cmd: New command (t_hash) registered 0(0) unixsock_register_cmd: New command (t_reply) registered 0(0) DEBUG: lock_initialize: lock initialization started [root@home openser]# 0(0) DEBUG: MD5 calculated: 7ac89abfaa5cc52cf9dfcc0d87c7c29f 0(0) DEBUG: MD5 calculated: 56a2d1a773791176622e5c3e54467ba1 0(0) DEBUG: register_stats: tm 0(0) DEBUG: register_mi: tm 0(0) DEBUG: init_mod: rr 0(0) rr - initializing 0(0) DEBUG: init_mod: maxfwd 0(0) Maxfwd module- initializing 0(0) DEBUG: init_mod: usrloc 0(0) usrloc - initializing 0(0) INFO:ul_init_locks: locks array size 512 0(0) unixsock_register_cmd: New command (ul_rm) registered 0(0) unixsock_register_cmd: New command (ul_rm_contact) registered 0(0) unixsock_register_cmd: New command (ul_dump) registered 0(0) unixsock_register_cmd: New command (ul_flush) registered 0(0) unixsock_register_cmd: New command (ul_add) registered 0(0) unixsock_register_cmd: New command (ul_show_contact) registered 0(0) find_mod_export: found <db_use_table> in module mysql [/usr/local/lib/openser/modules/mysql.so] 0(0) find_mod_export: found <db_init> in module mysql [/usr/local/lib/openser/modules/mysql.so] 0(0) find_mod_export: found <db_close> in module mysql [/usr/local/lib/openser/modules/mysql.so] 0(0) find_mod_export: found <db_query> in module mysql [/usr/local/lib/openser/modules/mysql.so] 0(0) find_mod_export: found <db_fetch_result> in module mysql [/usr/local/lib/openser/modules/mysql.so] 0(0) find_mod_export: found <db_raw_query> in module mysql [/usr/local/lib/openser/modules/mysql.so] 0(0) find_mod_export: found <db_free_result> in module mysql [/usr/local/lib/openser/modules/mysql.so] 0(0) find_mod_export: found <db_insert> in module mysql [/usr/local/lib/openser/modules/mysql.so] 0(0) find_mod_export: found <db_delete> in module mysql [/usr/local/lib/openser/modules/mysql.so] 0(0) find_mod_export: found <db_update> in module mysql [/usr/local/lib/openser/modules/mysql.so] 0(0) find_mod_export: found <db_replace> in module mysql [/usr/local/lib/openser/modules/mysql.so] 0(0) DEBUG: register_stats: usrloc 0(0) DEBUG: register_mi: usrloc 0(0) DEBUG: init_mod: registrar 0(0) registrar - initializing 0(0) find_cmd_export_t: found <load_sl>(0) in module sl [/usr/local/lib/openser/modules/sl.so] 0(0) xl_parse_name: name [s:rcv] index [0] 0(0) xl_parse_vname: avp [s:rcv] 0(0) find_cmd_export_t: found <ul_bind_usrloc>(1) in module usrloc [/usr/local/lib/openser/modules/usrloc.so] 0(0) DEBUG: register_stats: registrar 0(0) DEBUG: init_mod: acc 0(0) ACC - initializing 0(0) find_cmd_export_t: found <load_tm>(0) in module tm [/usr/local/lib/openser/modules/tm.so] 0(0) xl_lookup_spec_name: found [tu] [22] 0(0) xl_lookup_spec_name: found [fu] [18] 0(0) xl_lookup_spec_name: found [tu] [22] 0(0) xl_lookup_spec_name: found [au] [47] 0(0) xl_lookup_spec_name: found [ar] [48] 0(0) xl_lookup_spec_name: found [si] [34] 0(0) xl_lookup_spec_name: found [sp] [35] 0(0) xl_parse_name: name [from] index [0] 0(0) INFO:xl_parse_name: using hdr type (4) instead of <from> 0(0) xl_parse_name: name [user-agent] index [0] 0(0) INFO:xl_parse_name: using hdr type (27) instead of <user-agent> 0(0) xl_parse_name: name [contact] index [0] 0(0) INFO:xl_parse_name: using hdr type (7) instead of <contact> 0(0) xl_parse_name: name [event] index [0] 0(0) INFO:xl_parse_name: using hdr type (21) instead of <event> 0(0) ERROR: acc: can't get code for the anonical-URI attribute 0(0) ERROR:acc:mod_init: failed to init radius 0(0) init_mod(): Error while initializing module acc ERROR: error while initializing modules 0(0) XLOG: destroy module ... 0(0) DEBUG: tm_shutdown : start 0(0) DEBUG: unlink_timer_lists : emptying DELETE list 0(0) DEBUG: tm_shutdown : emptying hash table 0(0) DEBUG: tm_shutdown : releasing timers 0(0) DEBUG: tm_shutdown : removing semaphores 0(0) DEBUG: tm_shutdown : destroying tmcb lists 0(0) DEBUG: tm_shutdown : done 0(0) INFO:mi_fifo:mi_destroy: process hasn't been created -> nothing to kill 0(2850) shm_mem_destroy 0(2850) destroying the shared memory lock
ram
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
On 8/17/07, Norman Brandinger norm@goes.com wrote:
From your log listed below:
0(0) ERROR: acc: can't get code for the anonical-URI attribute 0(0) ERROR:acc:mod_init: failed to init radius 0(0) init_mod(): Error while initializing module acc
Was there perhaps a typo: "anonical-URI" instead of "Canonical-URI"
In addition, remember that ALL radius attributes you define MUST be able to be found in one of the radius dictionaries.
Hi
thanks for the pointing me the error,i have corrected, still iam getting this error
---------------- 0(0) INFO:xl_parse_name: using hdr type (21) instead of <event> 0(0) ERROR: acc: can't get code for the Canonical-URI attribute 0(0) ERROR:acc:mod_init: failed to init radius 0(0) init_mod(): Error while initializing module acc ERROR: error while initializing modules -------------------
as you suggested, i have looked at all dictionary files, but "Canonical-URI" not found this any of the dictionary files
what is the suggestions
ram
On 8/17/07, ram talk2ram@gmail.com wrote:
On 8/17/07, Norman Brandinger norm@goes.com wrote:
From your log listed below:
0(0) ERROR: acc: can't get code for the anonical-URI attribute 0(0) ERROR:acc:mod_init: failed to init radius 0(0) init_mod(): Error while initializing module acc
Was there perhaps a typo: "anonical-URI" instead of "Canonical-URI"
In addition, remember that ALL radius attributes you define MUST be able
to be found in one of the radius dictionaries.
Hi
thanks for the pointing me the error,i have corrected, still iam getting this error
iam getting all this attribute errors
Canonical-URI=$tu; User-Name=$au; Sip-User-Realm=$ar; Source-IP=$si; Source-Port=$sp; From-Header=$hdr(from); User-Agent=$hdr(user-agent); Contact=$hdr(contact); Event=$hdr(event)")
Are you using "continuation" backslashes "" on each line ?
Something like the following:
Source-IP=$si; \ Source-Port=$sp; \ Canonical-URI=$tu; \
Might want to give it a try.
Regards, Norm
ram wrote:
On 8/17/07, *ram* <talk2ram@gmail.com mailto:talk2ram@gmail.com> wrote:
On 8/17/07, *Norman Brandinger* <norm@goes.com <mailto:norm@goes.com>> wrote: From your log listed below: 0(0) ERROR: acc: can't get code for the anonical-URI attribute 0(0) ERROR:acc:mod_init: failed to init radius 0(0) init_mod(): Error while initializing module acc Was there perhaps a typo: "anonical-URI" instead of "Canonical-URI" In addition, remember that ALL radius attributes you define MUST be able to be found in one of the radius dictionaries. Hi thanks for the pointing me the error,i have corrected, still iam getting this error
iam getting all this attribute errors
Canonical-URI=$tu; User-Name=$au; Sip-User-Realm=$ar; Source-IP=$si; Source-Port=$sp; From-Header=$hdr(from); User-Agent=$hdr(user-agent); Contact=$hdr(contact); Event=$hdr(event)")
On 8/17/07, Norman Brandinger norm@goes.com wrote:
Are you using "continuation" backslashes "" on each line ?
Something like the following:
Source-IP=$si; \ Source-Port=$sp; \ Canonical-URI=$tu; \
Might want to give it a try.
its all continous.
modparam("acc", "radius_extra", "Called-Station-Id=$tu;Calling-Station-Id=$fu;canonical-URI=$tu;User-Name=$au;Sip-User-Realm=$ar;Source-IP=$si;Source-Port=$sp;From-Header=$hdr(from);User-Agent=$hdr(user-agent);Contact=$hdr(contact);Event=$hdr(event)")
ram
I see that you have "canonical-URI" instead of "Canonical-URI".
After making the above fix, can you post the error you are receiving ?
Personally, I find it much easier to read by breaking this into multiple lines.
Norm
ram wrote:
On 8/17/07, *Norman Brandinger* <norm@goes.com mailto:norm@goes.com> wrote:
Are you using "continuation" backslashes "\" on each line ? Something like the following: Source-IP=$si; \ Source-Port=$sp; \ Canonical-URI=$tu; \ Might want to give it a try.
its all continous.
modparam("acc", "radius_extra", "Called-Station-Id=$tu;Calling-Station-Id=$fu;canonical-URI=$tu;User-Name=$au;Sip-User-Realm=$ar;Source-IP=$si;Source-Port=$sp;From-Header=$hdr(from);User-Agent=$hdr(user-agent);Contact=$hdr(contact);Event=$hdr(event)")
ram
On 8/18/07, Norman Brandinger norm@goes.com wrote:
I see that you have "canonical-URI" instead of "Canonical-URI".
yes i have changed
After making the above fix, can you post the error you are receiving ?
modparam("acc", "radius_extra", "Called-Station-Id=$tu; \ Calling-Station-Id=$fu; \ Canonical-URI=$tu; \ User-Name=$au; \ Sip-User-Realm=$ar; \ Source-IP=$si; \ Source-Port=$sp; \ From-Header=$hdr(from); \ User-Agent=$hdr(user-agent); \ Contact=$hdr(contact); \ Event=$hdr(event)")
0(0) find_cmd_export_t: found <load_tm>(0) in module tm [/usr/local/lib/openser/modules/tm.so] 0(0) xl_lookup_spec_name: found [tu] [22] 0(0) xl_lookup_spec_name: found [fu] [18] 0(0) xl_lookup_spec_name: found [tu] [22] [root@home openser]# 0(0) xl_lookup_spec_name: found [au] [47] 0(0) xl_lookup_spec_name: found [ar] [48] 0(0) xl_lookup_spec_name: found [si] [34] 0(0) xl_lookup_spec_name: found [sp] [35] 0(0) xl_parse_name: name [from] index [0] 0(0) INFO:xl_parse_name: using hdr type (4) instead of <from> 0(0) xl_parse_name: name [user-agent] index [0] 0(0) INFO:xl_parse_name: using hdr type (27) instead of <user-agent> 0(0) xl_parse_name: name [contact] index [0] 0(0) INFO:xl_parse_name: using hdr type (7) instead of <contact> 0(0) xl_parse_name: name [event] index [0] 0(0) INFO:xl_parse_name: using hdr type (21) instead of <event> 0(0) ERROR: acc: can't get code for the Canonical-URI attribute 0(0) ERROR:acc:mod_init: failed to init radius 0(0) init_mod(): Error while initializing module acc ERROR: error while initializing modules 0(0) XLOG: destroy module ... 0(0) DEBUG: tm_shutdown : start 0(0) DEBUG: unlink_timer_lists : emptying DELETE list 0(0) DEBUG: tm_shutdown : emptying hash table 0(0) DEBUG: tm_shutdown : releasing timers 0(0) DEBUG: tm_shutdown : removing semaphores 0(0) DEBUG: tm_shutdown : destroying tmcb lists 0(0) DEBUG: tm_shutdown : done 0(0) INFO:mi_fifo:mi_destroy: process hasn't been created -> nothing to kill 0(2740) shm_mem_destroy 0(2740) destroying the shared memory lock
Personally, I find it much easier to read by breaking this into multiple
lines.
Ya i did as per recomendation
ram
This line is the key to your problem:
0(0) ERROR: acc: can't get code for the Canonical-URI attribute
Every attribute, for example Canonical-URI must be located in one of the RADIUS dictionaries.
You might have a line such as the following:
modparam("acc", "radius_config", "/usr/local/etc/radiusclient-ng/radiusclient.conf")
In this case, OpenSER will read the "dictionary" setting from /usr/local/etc/radiusclient-ng/radiusclient.conf.
For example:
# dictionary of allowed attributes and values # just like in the normal RADIUS distributions dictionary /usr/local/etc/radiusclient-ng/dictionary
So, off we go to /usr/local/etc/radiusclient-ng/dictionary
For example: # $INCLUDE /usr/local/etc/radiusclient-ng/dictionary.sip $INCLUDE /usr/local/etc/openser/dictionary.radius # # Following are the proper new names. Use these. # ATTRIBUTE User-Name 1 string ATTRIBUTE Password 2 string ATTRIBUTE CHAP-Password 3 string ATTRIBUTE NAS-IP-Address 4 ipaddr
The $INCLUDE files do exactly what you would expect.
Again, the root of your problem is that the Canonical-URI attribute cannot be located. You should follow the path to the radius dictionary to determine why the attribute cannot be found.
Regards, Norm
p.s. You did install radiusclient-ng didn't you ?
ram wrote:
On 8/18/07, *Norman Brandinger* <norm@goes.com mailto:norm@goes.com> wrote:
I see that you have "canonical-URI" instead of "Canonical-URI".
yes i have changed
After making the above fix, can you post the error you are receiving ?
modparam("acc", "radius_extra", "Called-Station-Id=$tu; \ Calling-Station-Id=$fu; \ Canonical-URI=$tu; \ User-Name=$au; \ Sip-User-Realm=$ar; \ Source-IP=$si; \ Source-Port=$sp; \ From-Header=$hdr(from); \ User-Agent=$hdr(user-agent); \ Contact=$hdr(contact); \ Event=$hdr(event)")
0(0) find_cmd_export_t: found <load_tm>(0) in module tm [/usr/local/lib/openser/modules/tm.so] 0(0) xl_lookup_spec_name: found [tu] [22] 0(0) xl_lookup_spec_name: found [fu] [18] 0(0) xl_lookup_spec_name: found [tu] [22] [root@home openser]# 0(0) xl_lookup_spec_name: found [au] [47] 0(0) xl_lookup_spec_name: found [ar] [48] 0(0) xl_lookup_spec_name: found [si] [34] 0(0) xl_lookup_spec_name: found [sp] [35] 0(0) xl_parse_name: name [from] index [0] 0(0) INFO:xl_parse_name: using hdr type (4) instead of <from> 0(0) xl_parse_name: name [user-agent] index [0] 0(0) INFO:xl_parse_name: using hdr type (27) instead of <user-agent> 0(0) xl_parse_name: name [contact] index [0] 0(0) INFO:xl_parse_name: using hdr type (7) instead of <contact> 0(0) xl_parse_name: name [event] index [0] 0(0) INFO:xl_parse_name: using hdr type (21) instead of <event> 0(0) ERROR: acc: can't get code for the Canonical-URI attribute 0(0) ERROR:acc:mod_init: failed to init radius 0(0) init_mod(): Error while initializing module acc ERROR: error while initializing modules 0(0) XLOG: destroy module ... 0(0) DEBUG: tm_shutdown : start 0(0) DEBUG: unlink_timer_lists : emptying DELETE list 0(0) DEBUG: tm_shutdown : emptying hash table 0(0) DEBUG: tm_shutdown : releasing timers 0(0) DEBUG: tm_shutdown : removing semaphores 0(0) DEBUG: tm_shutdown : destroying tmcb lists 0(0) DEBUG: tm_shutdown : done 0(0) INFO:mi_fifo:mi_destroy: process hasn't been created -> nothing to kill 0(2740) shm_mem_destroy 0(2740) destroying the shared memory lock
Personally, I find it much easier to read by breaking this into multiple lines.
Ya i did as per recomendation
ram
Hi check my replies inline.
You might have a line such as the following:
modparam("acc", "radius_config", "/usr/local/etc/radiusclient-ng/radiusclient.conf")
yes its correct.
In this case, OpenSER will read the "dictionary" setting from
/usr/local/etc/radiusclient-ng/radiusclient.conf.
yes
For example:
# dictionary of allowed attributes and values # just like in the normal RADIUS distributions dictionary /usr/local/etc/radiusclient-ng/dictionary
this line is there.
So, off we go to /usr/local/etc/radiusclient-ng/dictionary
For example: # $INCLUDE /usr/local/etc/radiusclient-ng/dictionary.sip $INCLUDE /usr/local/etc/openser/dictionary.radius # # Following are the proper new names. Use these. # ATTRIBUTE User-Name 1 string ATTRIBUTE Password 2 string ATTRIBUTE CHAP-Password 3 string ATTRIBUTE NAS-IP-Address 4 ipaddr
The $INCLUDE files do exactly what you would expect.
Again, the root of your problem is that the Canonical-URI attribute cannot be located. You should follow the path to the radius dictionary to determine why the attribute cannot be found.
my files
more /usr/local/etc/radiusclient-ng/dictionary
# $INCLUDE /usr/local/share/freeradius/dictionary.openser $INCLUDE /usr/local/etc/radiusclient-ng/dictionary.radius
# # Following are the proper new names. Use these. # ATTRIBUTE User-Name 1 string ATTRIBUTE Password 2 string ATTRIBUTE CHAP-Password 3 string ATTRIBUTE NAS-IP-Address 4 ipaddr ATTRIBUTE NAS-Port-Id 5 integer ATTRIBUTE Service-Type 6 integer ATTRIBUTE Framed-Protocol 7 integer ATTRIBUTE Framed-IP-Address 8 ipaddr ATTRIBUTE Framed-IP-Netmask 9 ipaddr ATTRIBUTE Framed-Routing 10 integer ATTRIBUTE Filter-Id 11 string ATTRIBUTE Framed-MTU 12 integer ATTRIBUTE Framed-Compression 13 integer ATTRIBUTE Login-IP-Host 14 ipaddr ATTRIBUTE Login-Service 15 integer ATTRIBUTE Login-TCP-Port 16 integer ATTRIBUTE Reply-Message 18 string ATTRIBUTE Callback-Number 19 string ATTRIBUTE Callback-Id 20 string ATTRIBUTE Framed-Route 22 string ATTRIBUTE Framed-IPX-Network 23 ipaddr ATTRIBUTE State 24 string ATTRIBUTE Class 25 string ATTRIBUTE Vendor-Specific 26 string ATTRIBUTE Session-Timeout 27 integer ATTRIBUTE Idle-Timeout 28 integer ATTRIBUTE Termination-Action 29 integer ATTRIBUTE Called-Station-Id 30 string ATTRIBUTE Calling-Station-Id 31 string ATTRIBUTE NAS-Identifier 32 string ATTRIBUTE Proxy-State 33 string ATTRIBUTE Login-LAT-Service 34 string ATTRIBUTE Login-LAT-Node 35 string ATTRIBUTE Login-LAT-Group 36 string ATTRIBUTE Framed-AppleTalk-Link 37 integer ATTRIBUTE Framed-AppleTalk-Network 38 integer ATTRIBUTE Framed-AppleTalk-Zone 39 string ATTRIBUTE Acct-Status-Type 40 integer ATTRIBUTE Acct-Delay-Time 41 integer ATTRIBUTE Acct-Input-Octets 42 integer ATTRIBUTE Acct-Output-Octets 43 integer ATTRIBUTE Acct-Session-Id 44 string ATTRIBUTE Acct-Authentic 45 integer ATTRIBUTE Acct-Session-Time 46 integer ATTRIBUTE Acct-Input-Packets 47 integer ATTRIBUTE Acct-Output-Packets 48 integer ATTRIBUTE Acct-Terminate-Cause 49 integer ATTRIBUTE Acct-Multi-Session-Id 50 string ATTRIBUTE Acct-Link-Count 51 integer ATTRIBUTE Event-Timestamp 55 integer ATTRIBUTE CHAP-Challenge 60 string ATTRIBUTE NAS-Port-Type 61 integer ATTRIBUTE Port-Limit 62 integer ATTRIBUTE Login-LAT-Port 63 integer ATTRIBUTE Connect-Info 77 string
# # RFC3162 IPv6 attributes # ATTRIBUTE NAS-IPv6-Address 95 string ATTRIBUTE Framed-Interface-Id 96 string ATTRIBUTE Framed-IPv6-Prefix 97 string ATTRIBUTE Login-IPv6-Host 98 string ATTRIBUTE Framed-IPv6-Route 99 string ATTRIBUTE Framed-IPv6-Pool 100 string
# # Experimental Non Protocol Attributes used by Cistron-Radiusd # ATTRIBUTE Huntgroup-Name 221 string ATTRIBUTE User-Category 1029 string ATTRIBUTE Group-Name 1030 string ATTRIBUTE Simultaneous-Use 1034 integer ATTRIBUTE Strip-User-Name 1035 integer ATTRIBUTE Fall-Through 1036 integer ATTRIBUTE Add-Port-To-IP-Address 1037 integer ATTRIBUTE Exec-Program 1038 string ATTRIBUTE Exec-Program-Wait 1039 string ATTRIBUTE Hint 1040 string
# # Non-Protocol Attributes # These attributes are used internally by the server # ATTRIBUTE Expiration 21 date ATTRIBUTE Auth-Type 1000 integer ATTRIBUTE Menu 1001 string ATTRIBUTE Termination-Menu 1002 string ATTRIBUTE Prefix 1003 string ATTRIBUTE Suffix 1004 string ATTRIBUTE Group 1005 string ATTRIBUTE Crypt-Password 1006 string ATTRIBUTE Connect-Rate 1007 integer
# # Integer Translations #
# User Types
VALUE Service-Type Login-User 1 VALUE Service-Type Framed-User 2 VALUE Service-Type Callback-Login-User 3 VALUE Service-Type Callback-Framed-User 4 VALUE Service-Type Outbound-User 5 VALUE Service-Type Administrative-User 6 VALUE Service-Type NAS-Prompt-User 7
# Framed Protocols
VALUE Framed-Protocol PPP 1 VALUE Framed-Protocol SLIP 2
# Framed Routing Values
VALUE Framed-Routing None 0 VALUE Framed-Routing Broadcast 1 VALUE Framed-Routing Listen 2 VALUE Framed-Routing Broadcast-Listen 3
# Framed Compression Types
VALUE Framed-Compression None 0 VALUE Framed-Compression Van-Jacobson-TCP-IP 1
# Login Services
VALUE Login-Service Telnet 0 VALUE Login-Service Rlogin 1 VALUE Login-Service TCP-Clear 2 VALUE Login-Service PortMaster 3
# Status Types
VALUE Acct-Status-Type Start 1 VALUE Acct-Status-Type Stop 2 VALUE Acct-Status-Type Alive 3 VALUE Acct-Status-Type Accounting-On 7 VALUE Acct-Status-Type Accounting-Off 8
# Authentication Types
VALUE Acct-Authentic RADIUS 1 VALUE Acct-Authentic Local 2 VALUE Acct-Authentic PowerLink128 100
# Termination Options
VALUE Termination-Action Default 0 VALUE Termination-Action RADIUS-Request 1
# NAS Port Types, available in 3.3.1 and later
VALUE NAS-Port-Type Async 0 VALUE NAS-Port-Type Sync 1 VALUE NAS-Port-Type ISDN 2 VALUE NAS-Port-Type ISDN-V120 3 VALUE NAS-Port-Type ISDN-V110 4
# Acct Terminate Causes, available in 3.3.2 and later
VALUE Acct-Terminate-Cause User-Request 1 VALUE Acct-Terminate-Cause Lost-Carrier 2 VALUE Acct-Terminate-Cause Lost-Service 3 VALUE Acct-Terminate-Cause Idle-Timeout 4 VALUE Acct-Terminate-Cause Session-Timeout 5 VALUE Acct-Terminate-Cause Admin-Reset 6 VALUE Acct-Terminate-Cause Admin-Reboot 7 VALUE Acct-Terminate-Cause Port-Error 8 VALUE Acct-Terminate-Cause NAS-Error 9 VALUE Acct-Terminate-Cause NAS-Request 10 VALUE Acct-Terminate-Cause NAS-Reboot 11 VALUE Acct-Terminate-Cause Port-Unneeded 12 VALUE Acct-Terminate-Cause Port-Preempted 13 VALUE Acct-Terminate-Cause Port-Suspended 14 VALUE Acct-Terminate-Cause Service-Unavailable 15 VALUE Acct-Terminate-Cause Callback 16 VALUE Acct-Terminate-Cause User-Error 17 VALUE Acct-Terminate-Cause Host-Request 18
# # Non-Protocol Integer Translations #
VALUE Auth-Type Local 0 VALUE Auth-Type System 1 VALUE Auth-Type SecurID 2 VALUE Auth-Type Crypt-Local 3 VALUE Auth-Type Reject 4
# # Cistron extensions # VALUE Auth-Type Pam 253 VALUE Auth-Type Accept 254
# # Experimental Non-Protocol Integer Translations for Cistron-Radiusd # VALUE Fall-Through No 0 VALUE Fall-Through Yes 1 VALUE Add-Port-To-IP-Address No 0 VALUE Add-Port-To-IP-Address Yes 1
# # Configuration Values # uncomment these two lines to turn account expiration on #
#VALUE Server-Config Password-Expiration 30 #VALUE Server-Config Password-Warning 5
more /usr/local/share/freeradius/dictionary.openser #$Id: dictionary.radius,v 1.1.1.1 2005/06/13 16:47:30 bogdan_iancu Exp $ # # SIP RADIUS attributes # # Schulzrinne indicates attributes according to # draft-schulzrinne-sipping-radius-accounting-00 # # Sterman indicates attributes according to # draft-sterman-aaa-sip-00 # # Proprietary indicates an attribute that hasn't # been standardized # # Check out http://www.iana.org/assignments/radius-types # for up-to-date list of standard RADIUS attributes # and values #
# # NOTE: All standard (IANA registered) attributes are # commented out except those that are missing in # the default dictionary of the radiusclient-ng # library. #
#### Attributes ### ATTRIBUTE User-Name 1 string # RFC2865 ATTRIBUTE Service-Type 6 integer # RFC2865 ATTRIBUTE Called-Station-Id 30 string # RFC2865, acc ATTRIBUTE Calling-Station-Id 31 string # RFC2865, acc ATTRIBUTE Acct-Status-Type 40 integer # RFC2865, acc ATTRIBUTE Acct-Session-Id 44 string # RFC2865, acc ATTRIBUTE Sip-Method 101 integer # Schulzrinne, acc ATTRIBUTE Sip-Response-Code 102 integer # Schulzrinne, acc ATTRIBUTE Sip-Cseq 103 string # Schulzrinne, acc ATTRIBUTE Sip-To-Tag 104 string # Schulzrinne, acc ATTRIBUTE Sip-From-Tag 105 string # Schulzrinne, acc ATTRIBUTE Sip-Translated-Request-URI 107 string # Proprietary, acc ATTRIBUTE Sip-Src-IP 108 string # Proprietary, acc ATTRIBUTE Sip-Src-Port 109 string # Proprietary, acc ATTRIBUTE Digest-Response 206 string # Sterman, auth_radius ATTRIBUTE Sip-Uri-User 208 string # Proprietary, auth_radius ATTRIBUTE Sip-Group 211 string # Proprietary, group_radius ATTRIBUTE Sip-Rpid 213 string # Proprietary, auth_radius ATTRIBUTE SIP-AVP 225 string # Proprietary, avp_radius ATTRIBUTE Digest-Realm 1063 string # Sterman, auth_radius ATTRIBUTE Digest-Nonce 1064 string # Sterman, auth_radius ATTRIBUTE Digest-Method 1065 string # Sterman, auth_radius ATTRIBUTE Digest-URI 1066 string # Sterman, auth_radius ATTRIBUTE Digest-QOP 1067 string # Sterman, auth_radius ATTRIBUTE Digest-Algorithm 1068 string # Sterman, auth_radius ATTRIBUTE Digest-Body-Digest 1069 string # Sterman, auth_radius ATTRIBUTE Digest-CNonce 1070 string # Sterman, auth_radius ATTRIBUTE Digest-Nonce-Count 1071 string # Sterman, auth_radius ATTRIBUTE Digest-User-Name 1072 string # Sterman, auth_radius
### CISCO Vendor Specific Attributes ### #VENDOR Cisco 9 #ATTRIBUTE Cisco-AVPair 1 string Cisco # VSA, auth_radius
### Acct-Status-Type Values ### VALUE Acct-Status-Type Start 1 # RFC2866, acc VALUE Acct-Status-Type Stop 2 # RFC2866, acc VALUE Acct-Status-Type Failed 15 # RFC2866, acc
### Service-Type Values ### VALUE Service-Type Call-Check 10 # RFC2865, uri_radius VALUE Service-Type Group-Check 12 # Proprietary, group_radius VALUE Service-Type Sip-Session 15 # Schulzrinne, acc, auth_radius VALUE Service-Type SIP-Caller-AVPs 30 # Proprietary, avp_radius VALUE Service-Type SIP-Callee-AVPs 31 # Proprietary, avp_radius
VALUE Sip-Method INVITE 1 # Proprietary, acc VALUE Sip-Method CANCEL 2 # Proprietary, acc VALUE Sip-Method ACK 4 # Proprietary, acc VALUE Sip-Method BYE 8 # Proprietary, acc # VALUE Sip-Method Info 16 VALUE Sip-Method Options 32 VALUE Sip-Method Update 64 VALUE Sip-Method Register 128 VALUE Sip-Method Message 256 VALUE Sip-Method Subscribe 512 VALUE Sip-Method Notify 1024 VALUE Sip-Method Prack 2048 VALUE Sip-Method Refer 4096 #VALUE Sip-Method Other 8192
more /usr/local/etc/radiusclient-ng/dictionary.radius # # SIP RADIUS attributes # # Schulzrinne indicates attributes according to # draft-schulzrinne-sipping-radius-accounting-00 # # Sterman indicates attributes according to # draft-sterman-aaa-sip-00 # # Proprietary indicates an attribute that hasn't # been standardized # # Check out http://www.iana.org/assignments/radius-types # for up-to-date list of standard RADIUS attributes # and values #
# # NOTE: All standard (IANA registered) attributes are # commented out except those that are missing in # the default dictionary of the radiusclient-ng # library. #
#### Attributes ### #ATTRIBUTE User-Name 1 string # RFC2865 #ATTRIBUTE Service-Type 6 integer # RFC2865 #ATTRIBUTE Called-Station-Id 30 string # RFC2865, acc #ATTRIBUTE Calling-Station-Id 31 string # RFC2865, acc #ATTRIBUTE Acct-Status-Type 40 integer # RFC2865, acc #ATTRIBUTE Acct-Session-Id 44 string # RFC2865, acc ATTRIBUTE Sip-Method 101 integer # Schulzrinne, acc ATTRIBUTE Sip-Response-Code 102 integer # Schulzrinne, acc ATTRIBUTE Sip-Cseq 103 string # Schulzrinne, acc ATTRIBUTE Sip-To-Tag 104 string # Schulzrinne, acc ATTRIBUTE Sip-From-Tag 105 string # Schulzrinne, acc ATTRIBUTE Sip-Translated-Request-URI 107 string # Proprietary, acc ATTRIBUTE Sip-Src-IP 108 string # Proprietary, acc ATTRIBUTE Sip-Src-Port 109 string # Proprietary, acc ATTRIBUTE Digest-Response 206 string # Sterman, auth_radius ATTRIBUTE Sip-Uri-User 208 string # Proprietary, auth_radius ATTRIBUTE Sip-Group 211 string # Proprietary, group_radius ATTRIBUTE Sip-Rpid 213 string # Proprietary, auth_radius ATTRIBUTE SIP-AVP 225 string # Proprietary, avp_radius ATTRIBUTE Digest-Realm 1063 string # Sterman, auth_radius ATTRIBUTE Digest-Nonce 1064 string # Sterman, auth_radius ATTRIBUTE Digest-Method 1065 string # Sterman, auth_radius ATTRIBUTE Digest-URI 1066 string # Sterman, auth_radius ATTRIBUTE Digest-QOP 1067 string # Sterman, auth_radius ATTRIBUTE Digest-Algorithm 1068 string # Sterman, auth_radius ATTRIBUTE Digest-Body-Digest 1069 string # Sterman, auth_radius ATTRIBUTE Digest-CNonce 1070 string # Sterman, auth_radius ATTRIBUTE Digest-Nonce-Count 1071 string # Sterman, auth_radius ATTRIBUTE Digest-User-Name 1072 string # Sterman, auth_radius
### CISCO Vendor Specific Attributes ### #VENDOR Cisco 9 #ATTRIBUTE Cisco-AVPair 1 string Cisco # VSA, auth_radius
### Acct-Status-Type Values ### #VALUE Acct-Status-Type Start 1 # RFC2866, acc #VALUE Acct-Status-Type Stop 2 # RFC2866, acc VALUE Acct-Status-Type Failed 15 # RFC2866, acc
### Service-Type Values ### VALUE Service-Type Call-Check 10 # RFC2865, uri_radius VALUE Service-Type Group-Check 12 # Proprietary, group_radius VALUE Service-Type Sip-Session 15 # Schulzrinne, acc, auth_radius VALUE Service-Type SIP-Caller-AVPs 30 # Proprietary, avp_radius VALUE Service-Type SIP-Callee-AVPs 31 # Proprietary, avp_radius
VALUE Sip-Method INVITE 1 # Proprietary, acc VALUE Sip-Method CANCEL 2 # Proprietary, acc VALUE Sip-Method ACK 4 # Proprietary, acc VALUE Sip-Method BYE 8 # Proprietary, acc
p.s. You did install radiusclient-ng didn't you ?
iam able to registered users and make calls with freeradius
ram
You don't appear to have the Canonical-URI attribute defined in any of your dictionaries.
Some of your options are:
1) Define the attribute yourself in a custom dictionary (then add this dictionary via another $INCLUDE line).
2) Edit one of the existing dictionaries and add the attribute.
3) Find another RADIUS dictionary file that includes this attribute (then add this dictionary via another $INCLUDE line).
For item 3 above you might want to take a look at CDRTool. This product has the Canonical-URI attribute defined in the following dictionary: CDRTool/setup/radius/OpenSER/dictionary.ser
Regards, Norm
ram wrote:
Hi check my replies inline.
You might have a line such as the following: modparam("acc", "radius_config", "/usr/local/etc/radiusclient-ng/radiusclient.conf")
yes its correct.
In this case, OpenSER will read the "dictionary" setting from /usr/local/etc/radiusclient-ng/radiusclient.conf.
yes
For example: # dictionary of allowed attributes and values # just like in the normal RADIUS distributions dictionary /usr/local/etc/radiusclient-ng/dictionary
this line is there.
So, off we go to /usr/local/etc/radiusclient-ng/dictionary For example: # $INCLUDE /usr/local/etc/radiusclient-ng/dictionary.sip $INCLUDE /usr/local/etc/openser/dictionary.radius # # Following are the proper new names. Use these. # ATTRIBUTE User-Name 1 string ATTRIBUTE Password 2 string ATTRIBUTE CHAP-Password 3 string ATTRIBUTE NAS-IP-Address 4 ipaddr The $INCLUDE files do exactly what you would expect. Again, the root of your problem is that the Canonical-URI attribute cannot be located. You should follow the path to the radius dictionary to determine why the attribute cannot be found.
my files
more /usr/local/etc/radiusclient-ng/dictionary
# $INCLUDE /usr/local/share/freeradius/dictionary.openser $INCLUDE /usr/local/etc/radiusclient-ng/dictionary.radius
# # Following are the proper new names. Use these. # ATTRIBUTE User-Name 1 string ATTRIBUTE Password 2 string ATTRIBUTE CHAP-Password 3 string ATTRIBUTE NAS-IP-Address 4 ipaddr ATTRIBUTE NAS-Port-Id 5 integer ATTRIBUTE Service-Type 6 integer ATTRIBUTE Framed-Protocol 7 integer ATTRIBUTE Framed-IP-Address 8 ipaddr ATTRIBUTE Framed-IP-Netmask 9 ipaddr ATTRIBUTE Framed-Routing 10 integer ATTRIBUTE Filter-Id 11 string ATTRIBUTE Framed-MTU 12 integer ATTRIBUTE Framed-Compression 13 integer ATTRIBUTE Login-IP-Host 14 ipaddr ATTRIBUTE Login-Service 15 integer ATTRIBUTE Login-TCP-Port 16 integer ATTRIBUTE Reply-Message 18 string ATTRIBUTE Callback-Number 19 string ATTRIBUTE Callback-Id 20 string ATTRIBUTE Framed-Route 22 string ATTRIBUTE Framed-IPX-Network 23 ipaddr ATTRIBUTE State 24 string ATTRIBUTE Class 25 string ATTRIBUTE Vendor-Specific 26 string ATTRIBUTE Session-Timeout 27 integer ATTRIBUTE Idle-Timeout 28 integer ATTRIBUTE Termination-Action 29 integer ATTRIBUTE Called-Station-Id 30 string ATTRIBUTE Calling-Station-Id 31 string ATTRIBUTE NAS-Identifier 32 string ATTRIBUTE Proxy-State 33 string ATTRIBUTE Login-LAT-Service 34 string ATTRIBUTE Login-LAT-Node 35 string ATTRIBUTE Login-LAT-Group 36 string ATTRIBUTE Framed-AppleTalk-Link 37 integer ATTRIBUTE Framed-AppleTalk-Network 38 integer ATTRIBUTE Framed-AppleTalk-Zone 39 string ATTRIBUTE Acct-Status-Type 40 integer ATTRIBUTE Acct-Delay-Time 41 integer ATTRIBUTE Acct-Input-Octets 42 integer ATTRIBUTE Acct-Output-Octets 43 integer ATTRIBUTE Acct-Session-Id 44 string ATTRIBUTE Acct-Authentic 45 integer ATTRIBUTE Acct-Session-Time 46 integer ATTRIBUTE Acct-Input-Packets 47 integer ATTRIBUTE Acct-Output-Packets 48 integer ATTRIBUTE Acct-Terminate-Cause 49 integer ATTRIBUTE Acct-Multi-Session-Id 50 string ATTRIBUTE Acct-Link-Count 51 integer ATTRIBUTE Event-Timestamp 55 integer ATTRIBUTE CHAP-Challenge 60 string ATTRIBUTE NAS-Port-Type 61 integer ATTRIBUTE Port-Limit 62 integer ATTRIBUTE Login-LAT-Port 63 integer ATTRIBUTE Connect-Info 77 string
# # RFC3162 IPv6 attributes # ATTRIBUTE NAS-IPv6-Address 95 string ATTRIBUTE Framed-Interface-Id 96 string ATTRIBUTE Framed-IPv6-Prefix 97 string ATTRIBUTE Login-IPv6-Host 98 string ATTRIBUTE Framed-IPv6-Route 99 string ATTRIBUTE Framed-IPv6-Pool 100 string
# # Experimental Non Protocol Attributes used by Cistron-Radiusd # ATTRIBUTE Huntgroup-Name 221 string ATTRIBUTE User-Category 1029 string ATTRIBUTE Group-Name 1030 string ATTRIBUTE Simultaneous-Use 1034 integer ATTRIBUTE Strip-User-Name 1035 integer ATTRIBUTE Fall-Through 1036 integer ATTRIBUTE Add-Port-To-IP-Address 1037 integer ATTRIBUTE Exec-Program 1038 string ATTRIBUTE Exec-Program-Wait 1039 string ATTRIBUTE Hint 1040 string
# # Non-Protocol Attributes # These attributes are used internally by the server # ATTRIBUTE Expiration 21 date ATTRIBUTE Auth-Type 1000 integer ATTRIBUTE Menu 1001 string ATTRIBUTE Termination-Menu 1002 string ATTRIBUTE Prefix 1003 string ATTRIBUTE Suffix 1004 string ATTRIBUTE Group 1005 string ATTRIBUTE Crypt-Password 1006 string ATTRIBUTE Connect-Rate 1007 integer
# # Integer Translations #
# User Types
VALUE Service-Type Login-User 1 VALUE Service-Type Framed-User 2 VALUE Service-Type Callback-Login-User 3 VALUE Service-Type Callback-Framed-User 4 VALUE Service-Type Outbound-User 5 VALUE Service-Type Administrative-User 6 VALUE Service-Type NAS-Prompt-User 7
# Framed Protocols
VALUE Framed-Protocol PPP 1 VALUE Framed-Protocol SLIP 2
# Framed Routing Values
VALUE Framed-Routing None 0 VALUE Framed-Routing Broadcast 1 VALUE Framed-Routing Listen 2 VALUE Framed-Routing Broadcast-Listen 3
# Framed Compression Types
VALUE Framed-Compression None 0 VALUE Framed-Compression Van-Jacobson-TCP-IP 1
# Login Services
VALUE Login-Service Telnet 0 VALUE Login-Service Rlogin 1 VALUE Login-Service TCP-Clear 2 VALUE Login-Service PortMaster 3
# Status Types
VALUE Acct-Status-Type Start 1 VALUE Acct-Status-Type Stop 2 VALUE Acct-Status-Type Alive 3 VALUE Acct-Status-Type Accounting-On 7 VALUE Acct-Status-Type Accounting-Off 8
# Authentication Types
VALUE Acct-Authentic RADIUS 1 VALUE Acct-Authentic Local 2 VALUE Acct-Authentic PowerLink128 100
# Termination Options
VALUE Termination-Action Default 0 VALUE Termination-Action RADIUS-Request 1
# NAS Port Types, available in 3.3.1 and later
VALUE NAS-Port-Type Async 0 VALUE NAS-Port-Type Sync 1 VALUE NAS-Port-Type ISDN 2 VALUE NAS-Port-Type ISDN-V120 3 VALUE NAS-Port-Type ISDN-V110 4
# Acct Terminate Causes, available in 3.3.2 and later
VALUE Acct-Terminate-Cause User-Request 1 VALUE Acct-Terminate-Cause Lost-Carrier 2 VALUE Acct-Terminate-Cause Lost-Service 3 VALUE Acct-Terminate-Cause Idle-Timeout 4 VALUE Acct-Terminate-Cause Session-Timeout 5 VALUE Acct-Terminate-Cause Admin-Reset 6 VALUE Acct-Terminate-Cause Admin-Reboot 7 VALUE Acct-Terminate-Cause Port-Error 8 VALUE Acct-Terminate-Cause NAS-Error 9 VALUE Acct-Terminate-Cause NAS-Request 10 VALUE Acct-Terminate-Cause NAS-Reboot 11 VALUE Acct-Terminate-Cause Port-Unneeded 12 VALUE Acct-Terminate-Cause Port-Preempted 13 VALUE Acct-Terminate-Cause Port-Suspended 14 VALUE Acct-Terminate-Cause Service-Unavailable 15 VALUE Acct-Terminate-Cause Callback 16 VALUE Acct-Terminate-Cause User-Error 17 VALUE Acct-Terminate-Cause Host-Request 18
# # Non-Protocol Integer Translations #
VALUE Auth-Type Local 0 VALUE Auth-Type System 1 VALUE Auth-Type SecurID 2 VALUE Auth-Type Crypt-Local 3 VALUE Auth-Type Reject 4
# # Cistron extensions # VALUE Auth-Type Pam 253 VALUE Auth-Type Accept 254
# # Experimental Non-Protocol Integer Translations for Cistron-Radiusd # VALUE Fall-Through No 0 VALUE Fall-Through Yes 1 VALUE Add-Port-To-IP-Address No 0 VALUE Add-Port-To-IP-Address Yes 1
# # Configuration Values # uncomment these two lines to turn account expiration on #
#VALUE Server-Config Password-Expiration 30 #VALUE Server-Config Password-Warning 5
more /usr/local/share/freeradius/dictionary.openser #$Id: dictionary.radius,v 1.1.1.1 http://1.1.1.1 2005/06/13 16:47:30 bogdan_iancu Exp $ # # SIP RADIUS attributes # # Schulzrinne indicates attributes according to # draft-schulzrinne-sipping-radius-accounting-00 # # Sterman indicates attributes according to # draft-sterman-aaa-sip-00 # # Proprietary indicates an attribute that hasn't # been standardized # # Check out http://www.iana.org/assignments/radius-types # for up-to-date list of standard RADIUS attributes # and values #
# # NOTE: All standard (IANA registered) attributes are # commented out except those that are missing in # the default dictionary of the radiusclient-ng # library. #
#### Attributes ### ATTRIBUTE User-Name 1 string # RFC2865 ATTRIBUTE Service-Type 6 integer # RFC2865 ATTRIBUTE Called-Station-Id 30 string # RFC2865, acc ATTRIBUTE Calling-Station-Id 31 string # RFC2865, acc ATTRIBUTE Acct-Status-Type 40 integer # RFC2865, acc ATTRIBUTE Acct-Session-Id 44 string # RFC2865, acc ATTRIBUTE Sip-Method 101 integer # Schulzrinne, acc ATTRIBUTE Sip-Response-Code 102 integer # Schulzrinne, acc ATTRIBUTE Sip-Cseq 103 string # Schulzrinne, acc ATTRIBUTE Sip-To-Tag 104 string # Schulzrinne, acc ATTRIBUTE Sip-From-Tag 105 string # Schulzrinne, acc ATTRIBUTE Sip-Translated-Request-URI 107 string # Proprietary, acc ATTRIBUTE Sip-Src-IP 108 string # Proprietary, acc ATTRIBUTE Sip-Src-Port 109 string # Proprietary, acc ATTRIBUTE Digest-Response 206 string # Sterman, auth_radius ATTRIBUTE Sip-Uri-User 208 string # Proprietary, auth_radius ATTRIBUTE Sip-Group 211 string # Proprietary, group_radius ATTRIBUTE Sip-Rpid 213 string # Proprietary, auth_radius ATTRIBUTE SIP-AVP 225 string # Proprietary, avp_radius ATTRIBUTE Digest-Realm 1063 string # Sterman, auth_radius ATTRIBUTE Digest-Nonce 1064 string # Sterman, auth_radius ATTRIBUTE Digest-Method 1065 string # Sterman, auth_radius ATTRIBUTE Digest-URI 1066 string # Sterman, auth_radius ATTRIBUTE Digest-QOP 1067 string # Sterman, auth_radius ATTRIBUTE Digest-Algorithm 1068 string # Sterman, auth_radius ATTRIBUTE Digest-Body-Digest 1069 string # Sterman, auth_radius ATTRIBUTE Digest-CNonce 1070 string # Sterman, auth_radius ATTRIBUTE Digest-Nonce-Count 1071 string # Sterman, auth_radius ATTRIBUTE Digest-User-Name 1072 string # Sterman, auth_radius
### CISCO Vendor Specific Attributes ### #VENDOR Cisco 9 #ATTRIBUTE Cisco-AVPair 1 string Cisco # VSA, auth_radius
### Acct-Status-Type Values ### VALUE Acct-Status-Type Start 1 # RFC2866, acc VALUE Acct-Status-Type Stop 2 # RFC2866, acc VALUE Acct-Status-Type Failed 15 # RFC2866, acc
### Service-Type Values ### VALUE Service-Type Call-Check 10 # RFC2865, uri_radius VALUE Service-Type Group-Check 12 # Proprietary, group_radius VALUE Service-Type Sip-Session 15 # Schulzrinne, acc, auth_radius VALUE Service-Type SIP-Caller-AVPs 30 # Proprietary, avp_radius VALUE Service-Type SIP-Callee-AVPs 31 # Proprietary, avp_radius
VALUE Sip-Method INVITE 1 # Proprietary, acc VALUE Sip-Method CANCEL 2 # Proprietary, acc VALUE Sip-Method ACK 4 # Proprietary, acc VALUE Sip-Method BYE 8 # Proprietary, acc # VALUE Sip-Method Info 16 VALUE Sip-Method Options 32 VALUE Sip-Method Update 64 VALUE Sip-Method Register 128 VALUE Sip-Method Message 256 VALUE Sip-Method Subscribe 512 VALUE Sip-Method Notify 1024 VALUE Sip-Method Prack 2048 VALUE Sip-Method Refer 4096 #VALUE Sip-Method Other 8192
more /usr/local/etc/radiusclient-ng/dictionary.radius # # SIP RADIUS attributes # # Schulzrinne indicates attributes according to # draft-schulzrinne-sipping-radius-accounting-00 # # Sterman indicates attributes according to # draft-sterman-aaa-sip-00 # # Proprietary indicates an attribute that hasn't # been standardized # # Check out http://www.iana.org/assignments/radius-types http://www.iana.org/assignments/radius-types # for up-to-date list of standard RADIUS attributes # and values #
# # NOTE: All standard (IANA registered) attributes are # commented out except those that are missing in # the default dictionary of the radiusclient-ng # library. #
#### Attributes ### #ATTRIBUTE User-Name 1 string # RFC2865 #ATTRIBUTE Service-Type 6 integer # RFC2865 #ATTRIBUTE Called-Station-Id 30 string # RFC2865, acc #ATTRIBUTE Calling-Station-Id 31 string # RFC2865, acc #ATTRIBUTE Acct-Status-Type 40 integer # RFC2865, acc #ATTRIBUTE Acct-Session-Id 44 string # RFC2865, acc ATTRIBUTE Sip-Method 101 integer # Schulzrinne, acc ATTRIBUTE Sip-Response-Code 102 integer # Schulzrinne, acc ATTRIBUTE Sip-Cseq 103 string # Schulzrinne, acc ATTRIBUTE Sip-To-Tag 104 string # Schulzrinne, acc ATTRIBUTE Sip-From-Tag 105 string # Schulzrinne, acc ATTRIBUTE Sip-Translated-Request-URI 107 string # Proprietary, acc ATTRIBUTE Sip-Src-IP 108 string # Proprietary, acc ATTRIBUTE Sip-Src-Port 109 string # Proprietary, acc ATTRIBUTE Digest-Response 206 string # Sterman, auth_radius ATTRIBUTE Sip-Uri-User 208 string # Proprietary, auth_radius ATTRIBUTE Sip-Group 211 string # Proprietary, group_radius ATTRIBUTE Sip-Rpid 213 string # Proprietary, auth_radius ATTRIBUTE SIP-AVP 225 string # Proprietary, avp_radius ATTRIBUTE Digest-Realm 1063 string # Sterman, auth_radius ATTRIBUTE Digest-Nonce 1064 string # Sterman, auth_radius ATTRIBUTE Digest-Method 1065 string # Sterman, auth_radius ATTRIBUTE Digest-URI 1066 string # Sterman, auth_radius ATTRIBUTE Digest-QOP 1067 string # Sterman, auth_radius ATTRIBUTE Digest-Algorithm 1068 string # Sterman, auth_radius ATTRIBUTE Digest-Body-Digest 1069 string # Sterman, auth_radius ATTRIBUTE Digest-CNonce 1070 string # Sterman, auth_radius ATTRIBUTE Digest-Nonce-Count 1071 string # Sterman, auth_radius ATTRIBUTE Digest-User-Name 1072 string # Sterman, auth_radius
### CISCO Vendor Specific Attributes ### #VENDOR Cisco 9 #ATTRIBUTE Cisco-AVPair 1 string Cisco # VSA, auth_radius
### Acct-Status-Type Values ### #VALUE Acct-Status-Type Start 1 # RFC2866, acc #VALUE Acct-Status-Type Stop 2 # RFC2866, acc VALUE Acct-Status-Type Failed 15 # RFC2866, acc
### Service-Type Values ### VALUE Service-Type Call-Check 10 # RFC2865, uri_radius VALUE Service-Type Group-Check 12 # Proprietary, group_radius VALUE Service-Type Sip-Session 15 # Schulzrinne, acc, auth_radius VALUE Service-Type SIP-Caller-AVPs 30 # Proprietary, avp_radius VALUE Service-Type SIP-Callee-AVPs 31 # Proprietary, avp_radius
VALUE Sip-Method INVITE 1 # Proprietary, acc VALUE Sip-Method CANCEL 2 # Proprietary, acc VALUE Sip-Method ACK 4 # Proprietary, acc VALUE Sip-Method BYE 8 # Proprietary, acc
p.s. You did install radiusclient-ng didn't you ?
iam able to registered users and make calls with freeradius
ram
- Find another RADIUS dictionary file that includes this attribute
(then add this dictionary via another $INCLUDE line).
For item 3 above you might want to take a look at CDRTool. This product has the Canonical-URI attribute defined in the following dictionary: CDRTool/setup/radius/OpenSER/dictionary.ser
Hi
i copied from CDRtool dictionary.ser to /usr/local/share/freeradius/
and add that line in in dictionary
now i see another error
0(0) INFO:xl_parse_name: using hdr type (21) instead of <event> 0(0) ERROR: acc: can't get code for the Sip-User-Realm attribute 0(0) ERROR:acc:mod_init: failed to init radius 0(0) init_mod(): Error while initializing module acc ERROR: error while initializing modules 0(0) XLOG: destroy module ... 0(0) DEBUG: tm_shutdown : start
I have searched this Dictionary all the Dictionary files i dont see this exists any where.
ram
If you can't find some other RADIUS dictionary with the attribute defined, then you will have to define it yourself or remove it from your OpenSER configuration.
A quick "egrep -R" search on my systems produced the following:
dictionary.sip:ATTRIBUTE Sip-User-Realm 111 string
Regards, Norm
ram wrote:
3) Find another RADIUS dictionary file that includes this attribute (then add this dictionary via another $INCLUDE line). For item 3 above you might want to take a look at CDRTool. This product has the Canonical-URI attribute defined in the following dictionary: CDRTool/setup/radius/OpenSER/dictionary.ser
Hi
i copied from CDRtool dictionary.ser to /usr/local/share/freeradius/
and add that line in in dictionary
now i see another error
0(0) INFO:xl_parse_name: using hdr type (21) instead of <event> 0(0) ERROR: acc: can't get code for the Sip-User-Realm attribute 0(0) ERROR:acc:mod_init: failed to init radius 0(0) init_mod(): Error while initializing module acc ERROR: error while initializing modules 0(0) XLOG: destroy module ... 0(0) DEBUG: tm_shutdown : start
I have searched this Dictionary all the Dictionary files i dont see this exists any where.
ram
On 8/18/07, Norman Brandinger norm@goes.com wrote:
If you can't find some other RADIUS dictionary with the attribute defined, then you will have to define it yourself or remove it from your OpenSER configuration.
A quick "egrep -R" search on my systems produced the following:
dictionary.sip:ATTRIBUTE Sip-User-Realm 111 string
Hi
thanks i have remove Attribiute and run the openser working I have made test call and talk for 10seconds hangup the call
in database i see the below records
+-----------+----------------------------------+------------------+----------+-------+--------------+-----------+-------------+---------------------+---------------------+-----------------+---------------+-------------------+------------------+-----------------+------------------+------------------------------+------------------------------+--------------------+---------------+----------------+-----------------+----------------+---------------+ | RadAcctId | AcctSessionId | AcctUniqueId | UserName | Realm | NASIPAddress | NASPortId | NASPortType | AcctStartTime | AcctStopTime | AcctSessionTime | AcctAuthentic | ConnectInfo_start | ConnectInfo_stop | AcctInputOctets | AcctOutputOctets | CalledStationId | CallingStationId | AcctTerminateCause | ServiceType | FramedProtocol | FramedIPAddress | AcctStartDelay | AcctStopDelay | +-----------+----------------------------------+------------------+----------+-------+--------------+-----------+-------------+---------------------+---------------------+-----------------+---------------+-------------------+------------------+-----------------+------------------+------------------------------+------------------------------+--------------------+---------------+----------------+-----------------+----------------+---------------+ | 1 | 813b4501b92f1425@c291dGhlcm4tYzJ | 2e5817b61b8f83d3 | | | 127.0.0.1 | 5060 | | 2007-08-16 13:01:45 | 2007-08-16 13:01:45 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 2 | 537a78508d427b5c@c291dGhlcm4tYzJ | 44d8e47ed26d3e7b | | | 127.0.0.1 | 5060 | | 2007-08-16 14:23:09 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 3 | 537a78508d427b5c@c291dGhlcm4tYzJ | 44d8e47ed26d3e7b | | | 127.0.0.1 | 5060 | | 2007-08-16 14:23:20 | 2007-08-16 14:23:20 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 4 | 537a78508d427b5c@c291dGhlcm4tYzJ | 44d8e47ed26d3e7b | | | 127.0.0.1 | 5060 | | 2007-08-16 14:23:20 | 2007-08-16 14:23:20 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 5 | 537a78508d427b5c@c291dGhlcm4tYzJ | 44d8e47ed26d3e7b | | | 127.0.0.1 | 5060 | | 2007-08-16 14:23:20 | 2007-08-16 14:23:20 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 6 | 537a78508d427b5c@c291dGhlcm4tYzJ | 44d8e47ed26d3e7b | | | 127.0.0.1 | 5060 | | 2007-08-16 14:23:20 | 2007-08-16 14:23:20 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 7 | 537a78508d427b5c@c291dGhlcm4tYzJ | 44d8e47ed26d3e7b | | | 127.0.0.1 | 5060 | | 2007-08-16 14:23:21 | 2007-08-16 14:23:21 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 8 | 537a78508d427b5c@c291dGhlcm4tYzJ | 44d8e47ed26d3e7b | | | 127.0.0.1 | 5060 | | 2007-08-16 14:23:21 | 2007-08-16 14:23:21 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 9 | a86473214956cc44@c291dGhlcm4tYzJ | 190b69a53cae5f33 | | | 127.0.0.1 | 5060 | | 2007-08-16 14:44:54 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 10 | a86473214956cc44@c291dGhlcm4tYzJ | 190b69a53cae5f33 | | | 127.0.0.1 | 5060 | | 2007-08-16 14:44:54 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 11 | 7a3c594386522c1f@c291dGhlcm4tYzJ | 5a9422a16bc2acbf | | | 127.0.0.1 | 5060 | | 2007-08-16 14:49:40 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 12 | 7a3c594386522c1f@c291dGhlcm4tYzJ | 5a9422a16bc2acbf | | | 127.0.0.1 | 5060 | | 2007-08-16 14:49:55 | 2007-08-16 14:49:55 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 13 | 0554504fd134d470@c291dGhlcm4tYzJ | f6432ce5eab2eda2 | | | 127.0.0.1 | 5060 | | 2007-08-16 15:01:50 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 14 | 0554504fd134d470@c291dGhlcm4tYzJ | f6432ce5eab2eda2 | | | 127.0.0.1 | 5060 | | 2007-08-16 15:01:50 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 15 | 0554504fd134d470@c291dGhlcm4tYzJ | f6432ce5eab2eda2 | | | 127.0.0.1 | 5060 | | 2007-08-16 15:01:58 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 16 | 0554504fd134d470@c291dGhlcm4tYzJ | f6432ce5eab2eda2 | | | 127.0.0.1 | 5060 | | 2007-08-16 15:02:17 | 2007-08-16 15:02:17 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 17 | 0554504fd134d470@c291dGhlcm4tYzJ | f6432ce5eab2eda2 | | | 127.0.0.1 | 5060 | | 2007-08-16 15:02:17 | 2007-08-16 15:02:17 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 18 | 235b5e52a955e35c@c291dGhlcm4tYzJ | c103c92194dae078 | | | 127.0.0.1 | 5060 | | 2007-08-16 16:46:54 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 19 | 235b5e52a955e35c@c291dGhlcm4tYzJ | c103c92194dae078 | | | 127.0.0.1 | 5060 | | 2007-08-16 16:46:54 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 20 | 62210477326ab30b@c291dGhlcm4tYzJ | 81e223864b22d27d | | | 127.0.0.1 | 5060 | | 2007-08-16 16:47:50 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 21 | 62210477326ab30b@c291dGhlcm4tYzJ | 81e223864b22d27d | | | 127.0.0.1 | 5060 | | 2007-08-16 16:47:50 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 22 | 62210477326ab30b@c291dGhlcm4tYzJ | 81e223864b22d27d | | | 127.0.0.1 | 5060 | | 2007-08-16 16:47:56 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 23 | 62210477326ab30b@c291dGhlcm4tYzJ | 81e223864b22d27d | | | 127.0.0.1 | 5060 | | 2007-08-16 16:48:16 | 2007-08-16 16:48:16 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 24 | 62210477326ab30b@c291dGhlcm4tYzJ | 81e223864b22d27d | | | 127.0.0.1 | 5060 | | 2007-08-16 16:48:17 | 2007-08-16 16:48:17 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 25 | ad372005d8558a52@c291dGhlcm4tYzJ | 393421034322fbe9 | | | 127.0.0.1 | 5060 | | 2007-08-17 18:56:03 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | sip:17325824631@X.X.X.10 | sip:12345@X.X.X.10 | | IAPP-Register | | | 0 | 0 | | 26 | ad372005d8558a52@c291dGhlcm4tYzJ | f692e52a8b35d782 | 12345 | | 127.0.0.1 | 5060 | | 2007-08-17 18:56:03 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | sip:17325824631@X.X.X.10 | sip:12345@X.X.X.10 | | IAPP-Register | | | 0 | 0 | | 27 | ad372005d8558a52@c291dGhlcm4tYzJ | f692e52a8b35d782 | 12345 | | 127.0.0.1 | 5060 | | 2007-08-17 18:56:11 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | sip:17325824631@X.X.X.10 | sip:12345@X.X.X.10 | | IAPP-Register | | | 0 | 0 | | 28 | ad372005d8558a52@c291dGhlcm4tYzJ | 393421034322fbe9 | | | 127.0.0.1 | 5060 | | 2007-08-17 18:56:22 | 2007-08-17 18:56:22 | 0 | | | | 0 | 0 | sip:12345@X.X.X.10 | sip:17325824631@X.X.X.10 | | IAPP-Register | | | 0 | 0 | | 29 | ad372005d8558a52@c291dGhlcm4tYzJ | 393421034322fbe9 | | | 127.0.0.1 | 5060 | | 2007-08-17 18:56:22 | 2007-08-17 18:56:22 | 0 | | | | 0 | 0 | sip:12345@X.X.X.10 | sip:17325824631@X.X.X.10 | | IAPP-Register | | | 0 | 0 | +-----------+----------------------------------+------------------+----------+-------+--------------+-----------+-------------+---------------------+---------------------+-----------------+---------------+-------------------+------------------+-----------------+------------------+------------------------------+------------------------------+--------------------+---------------+----------------+-----------------+----------------+---------------+
more /usr/local/var/log/radius/radacct/127.0.0.1/detail-20070817 Fri Aug 17 18:56:03 2007 Acct-Status-Type = Start Service-Type = IAPP-Register Attr-102 = 0x000000c8 Error-Cause = 1 Event-Timestamp = "Aug 17 2007 18:56:03 IST" Attr-105 = 0x3363306161633665 Acct-Session-Id = "ad372005d8558a52@c291dGhlcm4tYzJkOWVh" Called-Station-Id = "sip:17325824631@X.X.X.10" Calling-Station-Id = "sip:12345@X.X.X.10" X-Ascend-IPX-Peer-Mode = 0x7369703a3137333235383234363331403230322e36332e39362e3130 X-Ascend-Send-Secret = 0x3230322e36332e39362e39 X-Ascend-Receive-Secret = 0x36393138 X-Ascend-FR-Direct-DLCI = 0x223132333435223c7369703a3132333435403230322e36332e39362e31303e3b7461673d3363306161633665 X-Ascend-Handle-IPX = 0x6579654265616d2072656c6561736520333031306e207374616d70203139303339 X-Ascend-Netware-timeout = 0x3c7369703a3132333435403139322e3136382e312e3130313a363931383e NAS-Port = 5060 Acct-Delay-Time = 0 NAS-IP-Address = 127.0.0.1 Client-IP-Address = 127.0.0.1 Acct-Unique-Session-Id = "393421034322fbe9" Timestamp = 1187357163
Fri Aug 17 18:56:03 2007 Acct-Status-Type = Start Service-Type = IAPP-Register Attr-102 = 0x000000c8 Error-Cause = 1 Event-Timestamp = "Aug 17 2007 18:56:03 IST" Attr-105 = 0x3363306161633665 Acct-Session-Id = "ad372005d8558a52@c291dGhlcm4tYzJkOWVh" Called-Station-Id = "sip:17325824631@X.X.X.10" Calling-Station-Id = "sip:12345@X.X.X.10" X-Ascend-IPX-Peer-Mode = 0x7369703a3137333235383234363331403230322e36332e39362e3130 User-Name = "12345" X-Ascend-Send-Secret = 0x3230322e36332e39362e39 X-Ascend-Receive-Secret = 0x36393138 X-Ascend-FR-Direct-DLCI = 0x223132333435223c7369703a3132333435403230322e36332e39362e31303e3b7461673d3363306161633665 X-Ascend-Handle-IPX = 0x6579654265616d2072656c6561736520333031306e207374616d70203139303339 X-Ascend-Netware-timeout = 0x3c7369703a3132333435403139322e3136382e312e3130313a363931383e NAS-Port = 5060 Acct-Delay-Time = 0 NAS-IP-Address = 127.0.0.1 Client-IP-Address = 127.0.0.1 Acct-Unique-Session-Id = "f692e52a8b35d782" Timestamp = 1187357163
Fri Aug 17 18:56:11 2007 Acct-Status-Type = Start Service-Type = IAPP-Register Attr-102 = 0x000000c8 Error-Cause = 1 Event-Timestamp = "Aug 17 2007 18:56:11 IST" Attr-105 = 0x3363306161633665 Attr-104 = 0x61733739376434633964 Acct-Session-Id = "ad372005d8558a52@c291dGhlcm4tYzJkOWVh" Called-Station-Id = "sip:17325824631@X.X.X.10" Calling-Station-Id = "sip:12345@X.X.X.10" X-Ascend-IPX-Peer-Mode = 0x7369703a3137333235383234363331403230322e36332e39362e3130 User-Name = "12345" X-Ascend-Send-Secret = 0x3230322e36332e39362e39 X-Ascend-Receive-Secret = 0x36393138 X-Ascend-FR-Direct-DLCI = 0x223132333435223c7369703a3132333435403230322e36332e39362e31303e3b7461673d3363306161633665 X-Ascend-Handle-IPX = 0x6579654265616d2072656c6561736520333031306e207374616d70203139303339 X-Ascend-Netware-timeout = 0x3c7369703a3132333435403139322e3136382e312e3130313a363931383e NAS-Port = 5060 Acct-Delay-Time = 0 NAS-IP-Address = 127.0.0.1 Client-IP-Address = 127.0.0.1 Acct-Unique-Session-Id = "f692e52a8b35d782" Timestamp = 1187357171
Fri Aug 17 18:56:22 2007 Acct-Status-Type = Stop Service-Type = IAPP-Register Attr-102 = 0x000000c8 Error-Cause = 8 Event-Timestamp = "Aug 17 2007 18:56:22 IST" Attr-105 = 0x61733739376434633964 Attr-104 = 0x3363306161633665 Acct-Session-Id = "ad372005d8558a52@c291dGhlcm4tYzJkOWVh" Called-Station-Id = "sip:12345@X.X.X.10" Calling-Station-Id = "sip:17325824631@X.X.X.10" X-Ascend-IPX-Peer-Mode = 0x7369703a3132333435403230322e36332e39362e3130 X-Ascend-Send-Secret = 0x3230322e36332e39362e313933 X-Ascend-Receive-Secret = 0x35303630 X-Ascend-FR-Direct-DLCI = 0x3c7369703a3137333235383234363331403230322e36332e39362e31303e3b7461673d61733739376434633964 X-Ascend-Handle-IPX = 0x417374657269736b20504258 NAS-Port = 5060 Acct-Delay-Time = 0 NAS-IP-Address = 127.0.0.1 Client-IP-Address = 127.0.0.1 Acct-Unique-Session-Id = "393421034322fbe9" Timestamp = 1187357182
Fri Aug 17 18:56:22 2007 Acct-Status-Type = Stop Service-Type = IAPP-Register Attr-102 = 0x000000c8 Error-Cause = 8 Event-Timestamp = "Aug 17 2007 18:56:22 IST" Attr-105 = 0x61733739376434633964 Attr-104 = 0x3363306161633665 Acct-Session-Id = "ad372005d8558a52@c291dGhlcm4tYzJkOWVh" Called-Station-Id = "sip:12345@X.X.X.10" Calling-Station-Id = "sip:17325824631@X.X.X.10" X-Ascend-IPX-Peer-Mode = 0x7369703a3132333435403230322e36332e39362e3130 X-Ascend-Send-Secret = 0x3230322e36332e39362e313933 X-Ascend-Receive-Secret = 0x35303630 X-Ascend-FR-Direct-DLCI = 0x3c7369703a3137333235383234363331403230322e36332e39362e31303e3b7461673d61733739376434633964 X-Ascend-Handle-IPX = 0x417374657269736b20504258 NAS-Port = 5060 Acct-Delay-Time = 0 NAS-IP-Address = 127.0.0.1 Client-IP-Address = 127.0.0.1 Acct-Unique-Session-Id = "393421034322fbe9" Timestamp = 1187357182
i see some 00000
how can i account them ?
ram
Your problem is that the RADIUS server and the RADIUS client are using different dictionaries.
See what happens when they both use the same dictionary.
Regards, Norm
ram wrote:
On 8/18/07, *Norman Brandinger* <norm@goes.com mailto:norm@goes.com> wrote:
If you can't find some other RADIUS dictionary with the attribute defined, then you will have to define it yourself or remove it from your OpenSER configuration. A quick "egrep -R" search on my systems produced the following: dictionary.sip:ATTRIBUTE Sip-User-Realm 111 string
Hi
thanks i have remove Attribiute and run the openser working I have made test call and talk for 10seconds hangup the call
in database i see the below records
+-----------+----------------------------------+------------------+----------+-------+--------------+-----------+-------------+---------------------+---------------------+-----------------+---------------+-------------------+------------------+-----------------+------------------+------------------------------+------------------------------+--------------------+---------------+----------------+-----------------+----------------+---------------+
| RadAcctId | AcctSessionId | AcctUniqueId | UserName | Realm | NASIPAddress | NASPortId | NASPortType | AcctStartTime | AcctStopTime | AcctSessionTime | AcctAuthentic | ConnectInfo_start | ConnectInfo_stop | AcctInputOctets | AcctOutputOctets | CalledStationId | CallingStationId | AcctTerminateCause | ServiceType | FramedProtocol | FramedIPAddress | AcctStartDelay | AcctStopDelay | +-----------+----------------------------------+------------------+----------+-------+--------------+-----------+-------------+---------------------+---------------------+-----------------+---------------+-------------------+------------------+-----------------+------------------+------------------------------+------------------------------+--------------------+---------------+----------------+-----------------+----------------+---------------+
| 1 | 813b4501b92f1425@c291dGhlcm4tYzJ mailto:813b4501b92f1425@c291dGhlcm4tYzJ | 2e5817b61b8f83d3 | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-16 13:01:45 | 2007-08-16 13:01:45 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 2 | 537a78508d427b5c@c291dGhlcm4tYzJ mailto:537a78508d427b5c@c291dGhlcm4tYzJ | 44d8e47ed26d3e7b | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-16 14:23:09 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 3 | 537a78508d427b5c@c291dGhlcm4tYzJ mailto:537a78508d427b5c@c291dGhlcm4tYzJ | 44d8e47ed26d3e7b | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-16 14:23:20 | 2007-08-16 14:23:20 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 4 | 537a78508d427b5c@c291dGhlcm4tYzJ mailto:537a78508d427b5c@c291dGhlcm4tYzJ | 44d8e47ed26d3e7b | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-16 14:23:20 | 2007-08-16 14:23:20 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 5 | 537a78508d427b5c@c291dGhlcm4tYzJ mailto:537a78508d427b5c@c291dGhlcm4tYzJ | 44d8e47ed26d3e7b | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-16 14:23:20 | 2007-08-16 14:23:20 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 6 | 537a78508d427b5c@c291dGhlcm4tYzJ mailto:537a78508d427b5c@c291dGhlcm4tYzJ | 44d8e47ed26d3e7b | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-16 14:23:20 | 2007-08-16 14:23:20 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 7 | 537a78508d427b5c@c291dGhlcm4tYzJ mailto:537a78508d427b5c@c291dGhlcm4tYzJ | 44d8e47ed26d3e7b | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-16 14:23:21 | 2007-08-16 14:23:21 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 8 | 537a78508d427b5c@c291dGhlcm4tYzJ mailto:537a78508d427b5c@c291dGhlcm4tYzJ | 44d8e47ed26d3e7b | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-16 14:23:21 | 2007-08-16 14:23:21 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 9 | a86473214956cc44@c291dGhlcm4tYzJ mailto:a86473214956cc44@c291dGhlcm4tYzJ | 190b69a53cae5f33 | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-16 14:44:54 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 10 | a86473214956cc44@c291dGhlcm4tYzJ mailto:a86473214956cc44@c291dGhlcm4tYzJ | 190b69a53cae5f33 | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-16 14:44:54 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 11 | 7a3c594386522c1f@c291dGhlcm4tYzJ mailto:7a3c594386522c1f@c291dGhlcm4tYzJ | 5a9422a16bc2acbf | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-16 14:49:40 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 12 | 7a3c594386522c1f@c291dGhlcm4tYzJ mailto:7a3c594386522c1f@c291dGhlcm4tYzJ | 5a9422a16bc2acbf | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-16 14:49:55 | 2007-08-16 14:49:55 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 13 | 0554504fd134d470@c291dGhlcm4tYzJ mailto:0554504fd134d470@c291dGhlcm4tYzJ | f6432ce5eab2eda2 | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-16 15:01:50 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 14 | 0554504fd134d470@c291dGhlcm4tYzJ mailto:0554504fd134d470@c291dGhlcm4tYzJ | f6432ce5eab2eda2 | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-16 15:01:50 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 15 | 0554504fd134d470@c291dGhlcm4tYzJ mailto:0554504fd134d470@c291dGhlcm4tYzJ | f6432ce5eab2eda2 | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-16 15:01:58 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 16 | 0554504fd134d470@c291dGhlcm4tYzJ mailto:0554504fd134d470@c291dGhlcm4tYzJ | f6432ce5eab2eda2 | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-16 15:02:17 | 2007-08-16 15:02:17 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 17 | 0554504fd134d470@c291dGhlcm4tYzJ mailto:0554504fd134d470@c291dGhlcm4tYzJ | f6432ce5eab2eda2 | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-16 15:02:17 | 2007-08-16 15:02:17 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 18 | 235b5e52a955e35c@c291dGhlcm4tYzJ mailto:235b5e52a955e35c@c291dGhlcm4tYzJ | c103c92194dae078 | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-16 16:46:54 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 19 | 235b5e52a955e35c@c291dGhlcm4tYzJ mailto:235b5e52a955e35c@c291dGhlcm4tYzJ | c103c92194dae078 | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-16 16:46:54 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 20 | 62210477326ab30b@c291dGhlcm4tYzJ mailto:62210477326ab30b@c291dGhlcm4tYzJ | 81e223864b22d27d | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-16 16:47:50 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 21 | 62210477326ab30b@c291dGhlcm4tYzJ mailto:62210477326ab30b@c291dGhlcm4tYzJ | 81e223864b22d27d | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-16 16:47:50 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 22 | 62210477326ab30b@c291dGhlcm4tYzJ mailto:62210477326ab30b@c291dGhlcm4tYzJ | 81e223864b22d27d | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-16 16:47:56 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 23 | 62210477326ab30b@c291dGhlcm4tYzJ mailto:62210477326ab30b@c291dGhlcm4tYzJ | 81e223864b22d27d | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-16 16:48:16 | 2007-08-16 16:48:16 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 24 | 62210477326ab30b@c291dGhlcm4tYzJ mailto:62210477326ab30b@c291dGhlcm4tYzJ | 81e223864b22d27d | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-16 16:48:17 | 2007-08-16 16:48:17 | 0 | | | | 0 | 0 | | | | IAPP-Register | | | 0 | 0 | | 25 | ad372005d8558a52@c291dGhlcm4tYzJ mailto:ad372005d8558a52@c291dGhlcm4tYzJ | 393421034322fbe9 | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-17 18:56:03 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | sip:17325824631@X.X.X.10 mailto:sip:17325824631@X.X.X.10 | sip:12345@X.X.X.10 mailto:sip:12345@X.X.X.10 | | IAPP-Register | | | 0 | 0 | | 26 | ad372005d8558a52@c291dGhlcm4tYzJ mailto:ad372005d8558a52@c291dGhlcm4tYzJ | f692e52a8b35d782 | 12345 | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-17 18:56:03 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | sip:17325824631@X.X.X.10 mailto:sip:17325824631@X.X.X.10 | sip:12345@X.X.X.10 mailto:sip:12345@X.X.X.10 | | IAPP-Register | | | 0 | 0 | | 27 | ad372005d8558a52@c291dGhlcm4tYzJ mailto:ad372005d8558a52@c291dGhlcm4tYzJ | f692e52a8b35d782 | 12345 | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-17 18:56:11 | 0000-00-00 00:00:00 | 0 | | | | 0 | 0 | sip:17325824631@X.X.X.10 mailto:sip:17325824631@X.X.X.10 | sip:12345@X.X.X.10 mailto:sip:12345@X.X.X.10 | | IAPP-Register | | | 0 | 0 | | 28 | ad372005d8558a52@c291dGhlcm4tYzJ mailto:ad372005d8558a52@c291dGhlcm4tYzJ | 393421034322fbe9 | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-17 18:56:22 | 2007-08-17 18:56:22 | 0 | | | | 0 | 0 | sip:12345@X.X.X.10 mailto:sip:12345@X.X.X.10 | sip:17325824631@X.X.X.10 mailto:sip:17325824631@X.X.X.10 | | IAPP-Register | | | 0 | 0 | | 29 | ad372005d8558a52@c291dGhlcm4tYzJ mailto:ad372005d8558a52@c291dGhlcm4tYzJ | 393421034322fbe9 | | | 127.0.0.1 http://127.0.0.1 | 5060 | | 2007-08-17 18:56:22 | 2007-08-17 18:56:22 | 0 | | | | 0 | 0 | sip:12345@X.X.X.10 mailto:sip:12345@X.X.X.10 | sip:17325824631@X.X.X.10 mailto:sip:17325824631@X.X.X.10 | | IAPP-Register | | | 0 | 0 | +-----------+----------------------------------+------------------+----------+-------+--------------+-----------+-------------+---------------------+---------------------+-----------------+---------------+-------------------+------------------+-----------------+------------------+------------------------------+------------------------------+--------------------+---------------+----------------+-----------------+----------------+---------------+
more /usr/local/var/log/radius/radacct/127.0.0.1/detail-20070817 Fri Aug 17 18:56:03 2007 Acct-Status-Type = Start Service-Type = IAPP-Register Attr-102 = 0x000000c8 Error-Cause = 1 Event-Timestamp = "Aug 17 2007 18:56:03 IST" Attr-105 = 0x3363306161633665 Acct-Session-Id = "ad372005d8558a52@c291dGhlcm4tYzJkOWVh mailto:ad372005d8558a52@c291dGhlcm4tYzJkOWVh" Called-Station-Id = "sip:17325824631@X.X.X.10 mailto:sip:17325824631@X.X.X.10" Calling-Station-Id = "sip:12345@X.X.X.10 mailto:sip:12345@X.X.X.10 " X-Ascend-IPX-Peer-Mode = 0x7369703a3137333235383234363331403230322e36332e39362e3130 X-Ascend-Send-Secret = 0x3230322e36332e39362e39 X-Ascend-Receive-Secret = 0x36393138 X-Ascend-FR-Direct-DLCI = 0x223132333435223c7369703a3132333435403230322e36332e39362e31303e3b7461673d3363306161633665
X-Ascend-Handle-IPX =
0x6579654265616d2072656c6561736520333031306e207374616d70203139303339 X-Ascend-Netware-timeout = 0x3c7369703a3132333435403139322e3136382e312e3130313a363931383e NAS-Port = 5060 Acct-Delay-Time = 0 NAS-IP-Address = 127.0.0.1 http://127.0.0.1 Client-IP-Address = 127.0.0.1 http://127.0.0.1 Acct-Unique-Session-Id = "393421034322fbe9" Timestamp = 1187357163
Fri Aug 17 18:56:03 2007 Acct-Status-Type = Start Service-Type = IAPP-Register Attr-102 = 0x000000c8 Error-Cause = 1 Event-Timestamp = "Aug 17 2007 18:56:03 IST" Attr-105 = 0x3363306161633665 Acct-Session-Id = "ad372005d8558a52@c291dGhlcm4tYzJkOWVh mailto:ad372005d8558a52@c291dGhlcm4tYzJkOWVh" Called-Station-Id = " sip:17325824631@X.X.X.10 mailto:sip:17325824631@X.X.X.10" Calling-Station-Id = "sip:12345@X.X.X.10 mailto:sip:12345@X.X.X.10" X-Ascend-IPX-Peer-Mode = 0x7369703a3137333235383234363331403230322e36332e39362e3130 User-Name = "12345" X-Ascend-Send-Secret = 0x3230322e36332e39362e39 X-Ascend-Receive-Secret = 0x36393138 X-Ascend-FR-Direct-DLCI = 0x223132333435223c7369703a3132333435403230322e36332e39362e31303e3b7461673d3363306161633665
X-Ascend-Handle-IPX =
0x6579654265616d2072656c6561736520333031306e207374616d70203139303339 X-Ascend-Netware-timeout = 0x3c7369703a3132333435403139322e3136382e312e3130313a363931383e NAS-Port = 5060 Acct-Delay-Time = 0 NAS-IP-Address = 127.0.0.1 http://127.0.0.1 Client-IP-Address = 127.0.0.1 http://127.0.0.1 Acct-Unique-Session-Id = "f692e52a8b35d782" Timestamp = 1187357163
Fri Aug 17 18:56:11 2007 Acct-Status-Type = Start Service-Type = IAPP-Register Attr-102 = 0x000000c8 Error-Cause = 1 Event-Timestamp = "Aug 17 2007 18:56:11 IST" Attr-105 = 0x3363306161633665 Attr-104 = 0x61733739376434633964 Acct-Session-Id = "ad372005d8558a52@c291dGhlcm4tYzJkOWVh mailto:ad372005d8558a52@c291dGhlcm4tYzJkOWVh" Called-Station-Id = "sip:17325824631@X.X.X.10 mailto:sip:17325824631@X.X.X.10" Calling-Station-Id = "sip:12345@X.X.X.10 mailto:sip:12345@X.X.X.10" X-Ascend-IPX-Peer-Mode = 0x7369703a3137333235383234363331403230322e36332e39362e3130 User-Name = "12345" X-Ascend-Send-Secret = 0x3230322e36332e39362e39 X-Ascend-Receive-Secret = 0x36393138 X-Ascend-FR-Direct-DLCI = 0x223132333435223c7369703a3132333435403230322e36332e39362e31303e3b7461673d3363306161633665 X-Ascend-Handle-IPX = 0x6579654265616d2072656c6561736520333031306e207374616d70203139303339 X-Ascend-Netware-timeout = 0x3c7369703a3132333435403139322e3136382e312e3130313a363931383e NAS-Port = 5060 Acct-Delay-Time = 0 NAS-IP-Address = 127.0.0.1 http://127.0.0.1 Client-IP-Address = 127.0.0.1 http://127.0.0.1 Acct-Unique-Session-Id = "f692e52a8b35d782" Timestamp = 1187357171
Fri Aug 17 18:56:22 2007 Acct-Status-Type = Stop Service-Type = IAPP-Register Attr-102 = 0x000000c8 Error-Cause = 8 Event-Timestamp = "Aug 17 2007 18:56:22 IST" Attr-105 = 0x61733739376434633964 Attr-104 = 0x3363306161633665 Acct-Session-Id = "ad372005d8558a52@c291dGhlcm4tYzJkOWVh mailto:ad372005d8558a52@c291dGhlcm4tYzJkOWVh" Called-Station-Id = "sip:12345@X.X.X.10 mailto:sip:12345@X.X.X.10" Calling-Station-Id = "sip:17325824631@X.X.X.10 mailto:sip:17325824631@X.X.X.10" X-Ascend-IPX-Peer-Mode = 0x7369703a3132333435403230322e36332e39362e3130 X-Ascend-Send-Secret = 0x3230322e36332e39362e313933 X-Ascend-Receive-Secret = 0x35303630 X-Ascend-FR-Direct-DLCI = 0x3c7369703a3137333235383234363331403230322e36332e39362e31303e3b7461673d61733739376434633964
X-Ascend-Handle-IPX = 0x417374657269736b20504258 NAS-Port = 5060 Acct-Delay-Time = 0 NAS-IP-Address = 127.0.0.1 <http://127.0.0.1> Client-IP-Address = 127.0.0.1 <http://127.0.0.1> Acct-Unique-Session-Id = "393421034322fbe9" Timestamp = 1187357182
Fri Aug 17 18:56:22 2007 Acct-Status-Type = Stop Service-Type = IAPP-Register Attr-102 = 0x000000c8 Error-Cause = 8 Event-Timestamp = "Aug 17 2007 18:56:22 IST" Attr-105 = 0x61733739376434633964 Attr-104 = 0x3363306161633665 Acct-Session-Id = "ad372005d8558a52@c291dGhlcm4tYzJkOWVh mailto:ad372005d8558a52@c291dGhlcm4tYzJkOWVh" Called-Station-Id = "sip:12345@X.X.X.10 mailto:sip:12345@X.X.X.10" Calling-Station-Id = "sip:17325824631@X.X.X.10 mailto:sip:17325824631@X.X.X.10" X-Ascend-IPX-Peer-Mode = 0x7369703a3132333435403230322e36332e39362e3130 X-Ascend-Send-Secret = 0x3230322e36332e39362e313933 X-Ascend-Receive-Secret = 0x35303630 X-Ascend-FR-Direct-DLCI = 0x3c7369703a3137333235383234363331403230322e36332e39362e31303e3b7461673d61733739376434633964
X-Ascend-Handle-IPX = 0x417374657269736b20504258 NAS-Port = 5060 Acct-Delay-Time = 0 NAS-IP-Address = 127.0.0.1 <http://127.0.0.1> Client-IP-Address = 127.0.0.1 <http://127.0.0.1> Acct-Unique-Session-Id = "393421034322fbe9" Timestamp = 1187357182
i see some 00000
how can i account them ?
ram
On 8/18/07, Norman Brandinger norm@goes.com wrote:
Your problem is that the RADIUS server and the RADIUS client are using different dictionaries.
See what happens when they both use the same dictionary.
I have made seperate directory for both
and copied what ever required Files for the Openser and Radius
I see only Start and Stop ( Invite and Bye) I dont see ACK
and i see the Stop records coming in the Log Twise
So how i need to calculate the call time from Database.
I see in radacct, all the fields anot filled. some are still empty.
how can make extra fields, and calculate automatically talk time.
any suggestions
Ram
Norman-thanks for the extended support.
The RADIUS server is the component that writes data to the RADIUS log files or the database. The configuration that manages this is generally the "sql.conf" file located in the RADIUS server directory. If you have new attributes that are to be written to the log files and/or database, "sql.conf" must be updated.
RADIUS will look at its main configuration file "radiusd.conf" during various steps of authorization/accounting. If the "radiusd.conf" file is set to use "sql" then the "sql.conf" file is referred to.
The "sql.conf" file is broken down into sections based on the different types of processing needed (for example authorization or accouting). The sections are SQL code and the addition of new attributes to the appropriate section will cause radius to INSERT/UPDATE them to the database.
Note that the format used (in sql.conf) to refer to the attributes passed from the radius client must be strictly followed
Regards, Norm
On 8/18/07, Norman
Brandinger norm@goes.com wrote:
Your problem is that the
RADIUS server and the RADIUS client are using
different dictionaries.
See what happens when they both use the same dictionary.
I have made seperate directory for both
and copied what
ever required Files for the Openser and Radius
I see only Start and Stop (
Invite and Bye) I dont see ACK
and i see the Stop records coming in the Log
Twise
So how i need to calculate the call time from Database.
I see in
radacct, all the fields anot filled. some are still empty.
how can make
extra fields, and calculate automatically
talk time.
any
suggestions
Ram
Norman-thanks for the extended
support.
On 8/18/07, Norman Brandinger norm@goes.com wrote:
The RADIUS server is the component that writes data to the RADIUS log files or the database. The configuration that manages this is generally the "sql.conf" file located in the RADIUS server directory. If you have new attributes that are to be written to the log files and/or database, " sql.conf" must be updated.
RADIUS will look at its main configuration file "radiusd.conf" during various steps of authorization/accounting. If the "radiusd.conf" file is set to use "sql" then the "sql.conf" file is referred to.
The "sql.conf" file is broken down into sections based on the different types of processing needed (for example authorization or accouting). The sections are SQL code and the addition of new attributes to the appropriate section will cause radius to INSERT/UPDATE them to the database.
Note that the format used (in sql.conf) to refer to the attributes passed from the radius client must be strictly followed
Hi
thanks for the information
is there any working example i can get to fill all the fields...
ram
I've already pointed you toward CDRTool when you were looking for additional RADIUS attributes.
The same directory has an example sql.conf
Regards, Norm
ram wrote:
On 8/18/07, *Norman Brandinger* <norm@goes.com mailto:norm@goes.com> wrote:
The RADIUS server is the component that writes data to the RADIUS log files or the database. The configuration that manages this is generally the " sql.conf" file located in the RADIUS server directory. If you have new attributes that are to be written to the log files and/or database, "sql.conf" must be updated. RADIUS will look at its main configuration file " radiusd.conf" during various steps of authorization/accounting. If the "radiusd.conf" file is set to use "sql" then the "sql.conf" file is referred to. The "sql.conf" file is broken down into sections based on the different types of processing needed (for example authorization or accouting). The sections are SQL code and the addition of new attributes to the appropriate section will cause radius to INSERT/UPDATE them to the database. Note that the format used (in sql.conf) to refer to the attributes passed from the radius client must be strictly followed
Hi
thanks for the information
is there any working example i can get to fill all the fields...
ram
>
On 8/20/07, Norman Brandinger norm@goes.com wrote:
I've already pointed you toward CDRTool when you were looking for additional RADIUS attributes.
The same directory has an example sql.conf
Hi
thanks let me look at that..
i want to coment something in production deployment which one is better soltution
1. Openser+mediaproxy+radius+mysql
2. Openser+Asterisk+a2billing+mysql ( NAT handle by Asterisk)
Please suggest any other
ram
Both solutions will technically work.
For a production deployment, I would advise that you hire a consultant.
"Production" means different things to different people...for example, are you deploying internally to a small/mid-sized business ? or are you trying to create a commerical full servcie VoIP offering ? or are you trying to deploy something else ? A solution that works great for 10-20 phones might not be the best for 10,000-20,000 phones.
You can learn alot and probably have most of your questions answered by reading the mailing lists.
Regards, Norm
ram wrote:
On 8/20/07, *Norman Brandinger* <norm@goes.com mailto:norm@goes.com> wrote:
I've already pointed you toward CDRTool when you were looking for additional RADIUS attributes. The same directory has an example sql.conf
Hi
thanks let me look at that..
i want to coment something in production deployment which one is better soltution
Openser+mediaproxy+radius+mysql
Openser+Asterisk+a2billing+mysql ( NAT handle by Asterisk)
Please suggest any other
ram
On 8/18/07, Norman Brandinger norm@goes.com wrote:
If you can't find some other RADIUS dictionary with the attribute defined, then you will have to define it yourself or remove it from your OpenSER configuration.
A quick "egrep -R" search on my systems produced the following:
dictionary.sip:ATTRIBUTE Sip-User-Realm 111 string
here my accounting records i see some place 000000
ram
Due to config files moderator approval required so i used below to post all my dictionary
ram