Skip to content

Commit

Permalink
[presence_callinfo] fix non-optional params for sca_set_xxx_line() funcs
Browse files Browse the repository at this point in the history
The line parameter is supposed to be optional
Reported by @NormB
Closes #3361
  • Loading branch information
bogdan-iancu committed Apr 25, 2024
1 parent b7a8040 commit a80ff86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/presence_callinfo/presence_callinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ int sca_set_called_line(struct sip_msg *msg, str *line);
/* module exported commands */
static const cmd_export_t cmds[] ={
{"sca_set_calling_line", (cmd_function)sca_set_calling_line, {
{CMD_PARAM_STR,0,0}, {0,0,0}},
{CMD_PARAM_STR|CMD_PARAM_OPT,0,0}, {0,0,0}},
REQUEST_ROUTE},
{"sca_set_called_line", (cmd_function)sca_set_called_line, {
{CMD_PARAM_STR,0,0}, {0,0,0}},
{CMD_PARAM_STR|CMD_PARAM_OPT,0,0}, {0,0,0}},
REQUEST_ROUTE},
{0,0,{{0,0,0}},0}
};
Expand Down

0 comments on commit a80ff86

Please sign in to comment.