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