Skip to content

Commit

Permalink
script_helper: fix number of parameters for some tm api calls
Browse files Browse the repository at this point in the history
  • Loading branch information
rvlad-patrascu authored and liviuchircu committed Apr 4, 2019
1 parent 31b95d2 commit 2ad0f74
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/script_helper/script_helper.c
Expand Up @@ -178,9 +178,9 @@ int run_helper_logic(struct sip_msg *msg, void *param)
msg->callid->body.len, msg->callid->body.s);

if (msg->REQ_METHOD == METHOD_ACK) {
rc = tm_api.t_check_trans(msg, NULL, NULL, NULL, NULL, NULL, NULL);
rc = tm_api.t_check_trans(msg, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
if (rc > 0)
tm_api.t_relay(msg, NULL, NULL, NULL, NULL, NULL, NULL);
tm_api.t_relay(msg, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

return SCB_RUN_POST_CBS;
}
Expand All @@ -193,14 +193,14 @@ int run_helper_logic(struct sip_msg *msg, void *param)
if (msg->REQ_METHOD == METHOD_CANCEL) {
seq_request = 1;

rc = tm_api.t_check_trans(msg, NULL, NULL, NULL, NULL, NULL, NULL);
rc = tm_api.t_check_trans(msg, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
if (rc > 0)
tm_api.t_relay(msg, NULL, NULL, NULL, NULL, NULL, NULL);
tm_api.t_relay(msg, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

return SCB_RUN_POST_CBS;
}

if (tm_api.t_check_trans(msg, NULL, NULL, NULL, NULL, NULL, NULL) == 0)
if (tm_api.t_check_trans(msg, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) == 0)
return SCB_RUN_POST_CBS;

/**
Expand All @@ -218,7 +218,7 @@ int run_helper_logic(struct sip_msg *msg, void *param)
}
}

if (tm_api.t_relay(msg, NULL, NULL, NULL, NULL, NULL, NULL) < 0)
if (tm_api.t_relay(msg, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) < 0)
sl_api.reply(msg, 500, &status_500);

return SCB_RUN_POST_CBS;
Expand Down

0 comments on commit 2ad0f74

Please sign in to comment.