]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 14 Nov 2006 19:51:29 +0000 (19:51 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 14 Nov 2006 19:51:29 +0000 (19:51 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3371 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index 4600c5c3ce8899b936e33e4a295f750b490b0bb3..148ca2fbc71921622b74fdc776548272902be166 100644 (file)
@@ -1891,22 +1891,13 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
                        activate_rtp(tech_pvt);
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Ring SDP:\n%s\n", tech_pvt->local_sdp_str);
 
+                       nua_respond(tech_pvt->nh,
+                                               SIP_183_SESSION_PROGRESS,
+                                               SIPTAG_CONTACT_STR(tech_pvt->profile->url),
+                                               SOATAG_USER_SDP_STR(tech_pvt->local_sdp_str),
+                                               SOATAG_AUDIO_AUX("cn telephone-event"),
+                                               TAG_END());
                        
-                       if (msg->message_id == SWITCH_MESSAGE_INDICATE_RINGING) {
-                               nua_respond(tech_pvt->nh,
-                                                       SIP_180_RINGING,
-                                                       SIPTAG_CONTACT_STR(tech_pvt->profile->url),
-                                                       SOATAG_USER_SDP_STR(tech_pvt->local_sdp_str),
-                                                       SOATAG_AUDIO_AUX("cn telephone-event"),
-                                                       TAG_END());
-                       } else {
-                               nua_respond(tech_pvt->nh,
-                                                       SIP_183_SESSION_PROGRESS,
-                                                       SIPTAG_CONTACT_STR(tech_pvt->profile->url),
-                                                       SOATAG_USER_SDP_STR(tech_pvt->local_sdp_str),
-                                                       SOATAG_AUDIO_AUX("cn telephone-event"),
-                                                       TAG_END());
-                       }
            }
        }
                break;