]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add version to log
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 20 Jan 2014 18:34:32 +0000 (23:34 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 20 Jan 2014 18:34:32 +0000 (23:34 +0500)
src/mod/endpoints/mod_sofia/sofia.c
src/mod/endpoints/mod_sofia/sofia_glue.c

index a5308f0459c60e897212d2db683782339d5c9962..19ec32735cf0b6a7b735361ecb771450f7f0daf5 100644 (file)
@@ -7942,8 +7942,13 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia
                goto fail;
        }
 
+
        sofia_glue_get_addr(de->data->e_msg, network_ip, sizeof(network_ip), &network_port);
 
+       switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(tech_pvt->session), SWITCH_LOG_DEBUG, "%s receiving invite from %s:%d version: %s\n",
+                                         switch_channel_get_name(tech_pvt->channel), network_ip, network_port, switch_version_full_human());
+
+
        if (sip && sip->sip_via && sip->sip_via->v_protocol && switch_stristr("sip/2.0/ws", sip->sip_via->v_protocol)) {
                is_nat = "websockets";
        }
index 69af0ec26336b119dbc37cd0537be5799338c794..0ad5696780f39df5c11ba1b61b9185f486cd13bd 100644 (file)
@@ -1221,10 +1221,10 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
                tech_pvt->session_refresher = nua_no_refresher;
        }
 
-       if (tech_pvt->mparams.local_sdp_str) {
-               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(tech_pvt->session), SWITCH_LOG_DEBUG,
-                                                 "Local SDP:\n%s\n", tech_pvt->mparams.local_sdp_str);
-       }
+
+       switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(tech_pvt->session), SWITCH_LOG_DEBUG, "%s sending invite version: %s\nLocal SDP:\n%s\n",
+                                         switch_channel_get_name(tech_pvt->channel), switch_version_full_human(), 
+                                         tech_pvt->mparams.local_sdp_str ? tech_pvt->mparams.local_sdp_str : "NO SDP PRESENT\n");
 
 
        if (sofia_use_soa(tech_pvt)) {