[SR-Users] Kamailo crashes with auth_radius module

Volkan Oransoy voransoy at gmail.com
Wed Nov 18 10:43:01 CET 2015


Hi,

I try to enable auth_radius module with my kamailo box. But it  crashes on
the first REGISTER request.

I have enabled it with this two lines.
loadmodule "auth_radius.so"
modparam("auth_radius", "radius_config",
"/etc/radiusclient/radiusclient.conf")

This is the authentication part of my script.
        if (is_method("REGISTER"))
        {
                if (!radius_www_authorize("$td")) {
                        switch ($rc) {
                        case -7:
                                send_reply("500", "Server Internal Error");
                                exit;
                        case -1:
                                send_reply("400", "Bad Request");
                                exit;
                        default:
                };
                if (defined($avp(digest_challenge)) &&
                        ($avp(digest_challenge) != "")) {
                        append_to_reply("$avp(digest_challenge)");
                };
                send_reply("401", "Unauthorized");
                exit;
                };
        }


And in the /etc/radiusclient/dictionary file, I included sip and kamailio
dictionaries.
$INCLUDE dictionary.sip
$INCLUDE dictionary.kamailio

Service succesfully starts but it crashes on the first REGISTER request.

Nov 18 11:30:27 sip kernel: [159645.360105] traps: kamailio[6941] general
protection ip:7f89b1660920 sp:7ffc8d3bac78 error:0 in libc-2.19.so
[7f89b15cb000+19f000]
Nov 18 11:30:27 sip /usr/sbin/kamailio[6961]: CRITICAL: <core>
[pass_fd.c:275]: receive_fd(): EOF on 17
Nov 18 11:30:27 sip /usr/sbin/kamailio[6934]: ALERT: <core> [main.c:728]:
handle_sigs(): child process 6941 exited by a signal 11
Nov 18 11:30:27 sip /usr/sbin/kamailio[6934]: ALERT: <core> [main.c:731]:
handle_sigs(): core was generated
Nov 18 11:30:27 sip /usr/sbin/kamailio[6934]: INFO: <core> [main.c:743]:
handle_sigs(): terminating due to SIGCHLD
Nov 18 11:30:27 sip /usr/sbin/kamailio[6961]: INFO: <core> [main.c:794]:
sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6959]: INFO: <core> [main.c:794]:
sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6951]: INFO: <core> [main.c:794]:
sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6936]: INFO: <core> [main.c:794]:
sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6948]: INFO: <core> [main.c:794]:
sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6944]: INFO: <core> [main.c:794]:
sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6937]: INFO: <core> [main.c:794]:
sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6953]: INFO: <core> [main.c:794]:
sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6945]: INFO: <core> [main.c:794]:
sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6938]: INFO: <core> [main.c:794]:
sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6955]: INFO: <core> [main.c:794]:
sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6943]: INFO: <core> [main.c:794]:
sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6942]: INFO: <core> [main.c:794]:
sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6957]: INFO: <core> [main.c:794]:
sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6939]: INFO: <core> [main.c:794]:
sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6940]: INFO: <core> [main.c:794]:
sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6934]: INFO: <core>
[sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized

Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20151118/98dee820/attachment.html>


More information about the sr-users mailing list