]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 24 Apr 2007 14:23:06 +0000 (14:23 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 24 Apr 2007 14:23:06 +0000 (14:23 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5011 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_dingaling/mod_dingaling.c

index e370d6d2480faf048143fd3e2609cabfdee7a460..f787e65590ea81d5efae5fb282b6b9154df71788 100644 (file)
@@ -1497,6 +1497,10 @@ static switch_status_t channel_answer_channel(switch_core_session_t *session)
        tech_pvt = switch_core_session_get_private(session);
        assert(tech_pvt != NULL);
 
+       if (!switch_test_flag(tech_pvt, TFLAG_OUTBOUND)) {
+               switch_set_flag_locked(tech_pvt, TFLAG_ANSWER);
+       }
+
        return SWITCH_STATUS_SUCCESS;
 }
 
@@ -2619,7 +2623,7 @@ static ldl_status handle_signalling(ldl_handle_t * handle, ldl_session_t * dlses
                                tech_pvt->codec_index = -1;
                                tech_pvt->profile = profile;
                                tech_pvt->local_port = switch_rtp_request_port();
-                               switch_set_flag_locked(tech_pvt, TFLAG_ANSWER);
+                               //switch_set_flag_locked(tech_pvt, TFLAG_ANSWER);
                                tech_pvt->recip = switch_core_session_strdup(session, from);
                                if (!(exten = ldl_session_get_value(dlsession, "dnis"))) {
                                        exten = profile->exten;