[OpenSER-Users] cdrtool radus openser.cfg configuration

ayeddjalil jalil at globalchat.co.za
Fri Nov 9 09:20:10 CET 2007


Hi every one
It's my first time there, 
 I am trying to install cdrtool, I installed openser with radius  and mysql
accounting, I follow the install file with cdrtool, but it seam it's not
very clear I added these line in my openser.cfg as they said in the install
file

268	loadmodule "acc.so"
269	
270	modparam("acc", "failed_transaction_flag", 1)
271	modparam("acc", "report_cancels",     0)
272	modparam("acc", "report_ack",         0)
273	modparam("acc", "early_media",        0)
274	
275	modparam("acc", "log_level",          1)
276	modparam("acc", "log_flag",           1)
277	modparam("acc", "log_missed_flag",    1)
278	
279	modparam("acc", "radius_config",      "/etc/openser/radius/client.conf")
280	modparam("acc", "radius_flag",        1)
281	modparam("acc", "radius_missed_flag", 1)
282	modparam("acc", "radius_extra",       "Sip-RPid=$avp(s:rpid); \
283	                                       Source-IP=$si; \
284	                                       Source-Port=$sp; \
285	                                       Canonical-URI=$avp(can_uri); \
286	                                      
Billing-Party=$avp(billing_party); \
287	                                      
Divert-Reason=$avp(s:divert_reason); \
288	                                      
X-RTP-Stat=$avp(s:rtp_statistics); \
289	                                       From-Header=$hdr(from); \
290	                                       User-Agent=$hdr(user-agent); \
291	                                       Contact=$hdr(contact); \
292	                                       Event=$hdr(event); \
293	                                      
SIP-Proxy-IP=$avp(s:sip_proxy_ip)")

alone opense do not start intill I added this

loadmodule "auth_radius.so"
loadmodule "group_radius.so"
loadmodule "avp_radius.so"


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",
    "/etc/radiusclient-ng/radiusclient.conf")

the next problem is when adding 

setflag(ACCOUNTING_FLAG);
       avp_write("SER_IP","$avp(s:sip-proxy)");
       avp_write("$ru", "$avp(can_uri)");
errors comes, here what I get from the command /sbin/openser -c

 0(22857) parse error (123,9-24): syntax error
 0(22857) parse error (123,9-24): missing '(' or ')'?
 0(22857) parse error (123,9-24): bad command: missing ';'?
 0(22857) parse error (123,24-25): bad command!)
 0(22857) parse error (124,24-25): unknown command, missing loadmodule?

 0(22857) parse error (125,25-26): unknown command, missing loadmodule?

ERROR: bad config file (6 errors)
 0(22857) INFO:mi_fifo:mi_destroy:memory for the child's mi_fifo_pid was not
allocated -> nothing to destroy

is thier any one has a sample of openser.cfg file for cdrtool

Please help
-- 
View this message in context: http://www.nabble.com/cdrtool-radus-openser.cfg-configuration-tf4776366.html#a13663031
Sent from the OpenSER Users Mailing List mailing list archive at Nabble.com.





More information about the sr-users mailing list