On 12/7/2011 8:14 AM, Miha Zoubek wrote:
Hi,

I have added this in mod_radius_cdr.c and run make&make install.

  if (channel){
                const char *no_radius_start = switch_channel_get_variable(channel, "no_radius_start");
                if (switch_true(no_radius_start)){
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "[mod_radius_cdr] Skipping Radius Start\n");
                        return SWITCH_STATUS_SUCCESS;
                }
        }



and for radius_stop.

if (channel){
                const char *no_radius_stop = switch_channel_get_variable(channel, "no_radius_stop");
                if (switch_true(no_radius_stop)){
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "[mod_radius_cdr] Skipping Radius Stop\n");
                        return SWITCH_STATUS_SUCCESS;
                }
        }

When I run call a get this:

Segmentation fault (core dumped)


Do you know why I am getting this?

I have also remove this lines and compile mod_radius_cdr.c again but I am still getting this.

Regrdas,
Miha


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-dev mailing list
FreeSWITCH-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org
Hi,

this is from pastebin: http://pastebin.freeswitch.org/17957

regards,
miha