]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_sofia] fix session log
authorSeven Du <dujinfang@gmail.com>
Mon, 11 May 2020 17:33:14 +0000 (01:33 +0800)
committerAndrey Volk <andywolk@gmail.com>
Tue, 16 Mar 2021 17:29:04 +0000 (20:29 +0300)
src/mod/endpoints/mod_sofia/mod_sofia.c

index e236b09a38627848808f583faac5210eb27fe2e8..8ce1996ccb1d180bf342b2d3aa728e84453b3ac4 100644 (file)
@@ -5070,7 +5070,7 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
        if (gateway_ptr && gateway_ptr->ob_vars) {
                switch_event_header_t *hp;
                for (hp = gateway_ptr->ob_vars->headers; hp; hp = hp->next) {
-                       switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s setting variable [%s]=[%s]\n",
+                       switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(nsession), SWITCH_LOG_DEBUG, "%s setting variable [%s]=[%s]\n",
                                                          switch_channel_get_name(nchannel), hp->name, hp->value);
                        if (!strncmp(hp->name, "p:", 2)) {
                                switch_channel_set_profile_var(nchannel, hp->name + 2, hp->value);