]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
MODSOFIA-33
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 23 Oct 2009 16:47:52 +0000 (16:47 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 23 Oct 2009 16:47:52 +0000 (16:47 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15214 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index 83589ce4f237fa4ad696e64fe2bc349c51e8d412..43ccde721a26ac36f8d773194eb7bb27c06ad405 100644 (file)
@@ -1571,7 +1571,9 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
 
                                                        tech_pvt->num_codecs = 0;
                                                        sofia_glue_tech_prepare_codecs(tech_pvt);
-                                                       if (sofia_glue_tech_media(tech_pvt, r_sdp) != SWITCH_STATUS_SUCCESS) {
+                                                       if (zstr(r_sdp) || sofia_glue_tech_media(tech_pvt, r_sdp) != SWITCH_STATUS_SUCCESS) {
+                                                               switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, 
+                                                                                                 "CODEC NEGOTIATION ERROR.  SDP:\n%s\n", r_sdp ? r_sdp : "NO SDP!"); 
                                                                switch_channel_set_variable(channel, SWITCH_ENDPOINT_DISPOSITION_VARIABLE, "CODEC NEGOTIATION ERROR");
                                                                //nua_respond(tech_pvt->nh, SIP_488_NOT_ACCEPTABLE, TAG_END());
                                                                status = SWITCH_STATUS_FALSE;