]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
calls to portaudio/auto_answer will do auto_answer
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 23 Oct 2007 22:24:11 +0000 (22:24 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 23 Oct 2007 22:24:11 +0000 (22:24 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6040 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_portaudio/mod_portaudio.c

index 9b3eece627d1f5098b0e63d391a98c25ba8b3535..5dc16e0e3f94897b228a82e648d5075af32fbf63 100644 (file)
@@ -775,6 +775,10 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
                        caller_profile = switch_caller_profile_clone(*new_session, outbound_profile);
                        switch_channel_set_caller_profile(channel, caller_profile);
                        tech_pvt->caller_profile = caller_profile;
+                       if (outbound_profile->destination_number && !strcasecmp(outbound_profile->destination_number, "auto_answer")) {
+                               switch_set_flag(tech_pvt, TFLAG_ANSWER);
+                       }
+                       
                } else {
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Doh! no caller profile\n");
                        switch_core_session_destroy(new_session);