]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_pjsip.c: Add parameters to frame in indicate.
authorBen Ford <bford@digium.com>
Mon, 11 Jan 2021 20:25:09 +0000 (14:25 -0600)
committerJoshua Colp <jcolp@sangoma.com>
Mon, 18 Jan 2021 16:02:28 +0000 (10:02 -0600)
There are a couple of parameters (datalen and data) that do not get set
in chan_pjsip_indicate which could cause an Invalid message to pop up
for things such as fax. This patch adds them to the frame.

Change-Id: Ia51be086a0708be905e73d1f433572c49c7e38f8

channels/chan_pjsip.c

index f4409de4a78ed031c96582cd7f5a7877cb9d8f0d..483cd3ef0094688283773244ea6ec43178d3ea92 100644 (file)
@@ -1623,7 +1623,9 @@ static int chan_pjsip_indicate(struct ast_channel *ast, int condition, const voi
                .frametype = AST_FRAME_CONTROL,
                .subclass = {
                        .integer = condition
-               }
+               },
+               .datalen = datalen,
+               .data.ptr = (void *)data,
        };
        char condition_name[256];
        SCOPE_ENTER(3, "%s: Indicated %s\n", ast_channel_name(ast),