]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Forward text frames before answer (bug #3717)
authorMark Spencer <markster@digium.com>
Sat, 9 Apr 2005 18:54:58 +0000 (18:54 +0000)
committerMark Spencer <markster@digium.com>
Sat, 9 Apr 2005 18:54:58 +0000 (18:54 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5440 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_dial.c

index 9f7dedbddaa016e50cf58241baab31f311a92caa..ca62e06a7f195e14f0030c81920946f68a071ec9 100755 (executable)
@@ -513,6 +513,10 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu
                                                                !(ast_test_flag(outgoing, DIAL_RINGBACKONLY|DIAL_MUSICONHOLD))) {
                                                if (ast_write(in, f))
                                                        ast_log(LOG_WARNING, "Unable to forward image\n");
+                                       } else if (single && (f->frametype == AST_FRAME_TEXT) && 
+                                                               !(ast_test_flag(outgoing, DIAL_RINGBACKONLY|DIAL_MUSICONHOLD))) {
+                                               if (ast_write(in, f))
+                                                       ast_log(LOG_WARNING, "Unable to text\n");
                                        } else if (single && (f->frametype == AST_FRAME_HTML) && !ast_test_flag(outgoing, DIAL_NOFORWARDHTML))
                                                ast_channel_sendhtml(in, f->subclass, f->data, f->datalen);