aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_dial.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-09 18:54:58 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-09 18:54:58 +0000
commitca564f00e9583cf76600b91d1b4591940aa8d6ef (patch)
tree44d2a36dd0027531a1ece8f406addeb933eb5c17 /apps/app_dial.c
parentfbaf5d9cfc65a0a375e9019aa03ebc22fe4d716f (diff)
Forward text frames before answer (bug #3717)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5440 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_dial.c')
-rwxr-xr-xapps/app_dial.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index 9f7dedbdd..ca62e06a7 100755
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -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);