If no number is specified in the SIP_HEADER dialplan function, then just use the first one. (issue #7854 reported by sxpert and issue #7863 reported by hristo)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41689 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Joshua Colp 19 years ago
parent cd8635b9b5
commit 8ee7419d26

@ -10909,9 +10909,13 @@ static int func_header_read(struct ast_channel *chan, char *function, char *data
}
AST_STANDARD_APP_ARGS(args, data);
if (!args.number) {
number = 1;
} else {
sscanf(args.number, "%d", &number);
if (number < 1)
number = 1;
}
p = chan->tech_pvt;

Loading…
Cancel
Save