Hi all,
When I have this line in kamailio.cfg:
modparam("acc_radius", "radius_config",
"/etc/radiusclient-ng/radiusclient.conf")
Kamailio failed to start:
kamailio error, failed to start (/var/run/kamailio/kamailio.pid exists).
I already try to stop kamailio, an remove this file but don't work
In log,I have:
Nov 27 20:13:39 voip-core-1 kernel: [14318.988658] kamailio[8370]:
segfault at 0 ip 00007f0b0b94ca5d sp 00007fffa08f9460 error 4 in
libradiusclient-ng.so.2.0.0[7f0b0b946000+c000]
Nov 27 20:13:39 voip-core-1 kamailio: ERROR: <core> [daemonize.c:307]:
Main process exited before writing to pipe
When I remove just this line and restart kamailio, it works, I don't
know what is the problem because before I can do accounting with
freeradius with the same config
I have kamailio 3.3.2, kamailio-radius-modules 3.3.2,libradiusclient-ng2
0.5.6-1.1 and on 2nd server freeradius-xs and freeradius-xs-mysql 1.1.7-4
I put in attached file a few config of kamailio and radiusclient
Regards
--
Rabary Teddy
Inutile d'imprimer ce mail
...
#!define FLT_ACC 1
#!define FLT_ACCMISSED 2
#!define FLT_ACCFAILED 3
#!define FLT_NATS 5
#!define FLB_NATB 6
#!define FLB_NATSIPPING 7
...
loadmodule "db_mysql.so"
loadmodule "mi_fifo.so"
loadmodule "kex.so"
loadmodule "tm.so"
loadmodule "tmx.so"
loadmodule "sl.so"
loadmodule "rr.so"
loadmodule "pv.so"
loadmodule "maxfwd.so"
loadmodule "usrloc.so"
loadmodule "registrar.so"
loadmodule "textops.so"
loadmodule "siputils.so"
loadmodule "xlog.so"
loadmodule "sanity.so"
loadmodule "ctl.so"
loadmodule "cfg_rpc.so"
loadmodule "mi_rpc.so"
loadmodule "dialog.so"
loadmodule "acc.so"
loadmodule "auth.so"
loadmodule "auth_db.so"
loadmodule "acc_radius.so"
...
modparam("acc", "early_media", 0)
modparam("acc", "report_ack", 0)
modparam("acc", "report_cancels", 0)
modparam("acc", "detect_direction", 0)
modparam("acc", "log_flag", FLT_ACC)
modparam("acc", "log_missed_flag", FLT_ACCMISSED)
modparam("acc", "log_extra",
"src_user=$fU;src_domain=$fd;src_ip=$si;"
"dst_ouser=$tU;dst_user=$rU;dst_domain=$rd")
modparam("acc", "failed_transaction_flag", FLT_ACCFAILED)
modparam("acc_radius", "radius_config",
"/etc/radiusclient-ng/radiusclient.conf")
modparam("acc_radius", "radius_flag", FLT_ACC)
modparam("acc_radius", "radius_missed_flag", FLT_ACCMISSED)
modparam("acc_radius", "radius_extra", "User-Name=$Au; \
Calling-Station-Id=$from; \
Called-Station-Id=$to; \
Sip-Translated-Request-URI=$ru; \
Sip-RPid=$avp(s:rpid); \
Source-IP=$avp(s:source_ip); \
Source-Port=$avp(s:source_port); \
SIP-Proxy-IP=$avp(s:sip_proxy_ip); \
Canonical-URI=$avp(s:can_uri); \
Billing-Party=$avp(billing_party); \
Divert-Reason=$avp(s:divert_reason); \
User-Agent=$hdr(user-agent); \
Contact=$hdr(contact); \
Event=$hdr(event); \
ENUM-TLD=$avp(s:enum_tld); \
From-Header=$hdr(from); \
SIP-Application-Type=$avp(s:sip_application_type)")
auth_order radius,local
acctserver 192.168.6.145
servers /etc/radiusclient-ng/servers
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users