]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4598 reasonable req
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 19 Sep 2012 16:47:53 +0000 (11:47 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 19 Sep 2012 16:47:53 +0000 (11:47 -0500)
src/mod/endpoints/mod_sofia/sofia.c

index 01fe061f8831259a30202731a5b13c7b55090e7a..304ac668dd26ce475fc67fd40ce4213e59961a05 100644 (file)
@@ -1723,6 +1723,7 @@ void sofia_event_callback(nua_event_t event,
                                        private_object_t *tech_pvt = switch_core_session_get_private(session);
 
                                        if (status == 403) {
+                                               switch_channel_set_flag(channel, CF_NO_CDR);
                                                switch_channel_hangup(channel, SWITCH_CAUSE_CALL_REJECTED);
                                        } else {
                                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "detaching session %s\n", sofia_private->uuid);