]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Skinny: corrected early media
authorMathieu Parent <math.parent@gmail.com>
Thu, 22 Jul 2010 21:28:26 +0000 (23:28 +0200)
committerMathieu Parent <math.parent@gmail.com>
Thu, 22 Jul 2010 21:30:15 +0000 (23:30 +0200)
This is part of MODSKINNY-8

src/mod/endpoints/mod_skinny/skinny_server.c

index 56decd0036b69602a0a2b84eaff65ebc457aab59..02103338255c64609c67d1fcf3d1748b3d36f200 100644 (file)
@@ -1654,7 +1654,9 @@ switch_status_t skinny_handle_open_receive_channel_ack_message(listener_t *liste
                        );
 
                switch_set_flag_locked(tech_pvt, TFLAG_IO);
-               switch_channel_mark_answered(channel);
+               if (switch_channel_test_flag(channel, CF_OUTBOUND)) {
+                       switch_channel_mark_answered(channel);
+               }
                if (switch_channel_test_flag(channel, CF_HOLD)) {
                        switch_ivr_unhold(session);
                        send_set_lamp(listener, SKINNY_BUTTON_LINE, line_instance, SKINNY_LAMP_ON);