Skip to content

Commit

Permalink
Move function parameter fixup code to mod_fix.c
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 b38b0c6 commit fce0b29
Show file tree
Hide file tree
Showing 6 changed files with 406 additions and 1,611 deletions.
10 changes: 2 additions & 8 deletions action.c
Expand Up @@ -2244,16 +2244,10 @@ static int for_each_handler(struct sip_msg *msg, struct action *a)
void __script_trace(char *class, char *action, struct sip_msg *msg,
char *file, int line)
{
gparam_t param;
str val;

param.type = GPARAM_TYPE_PVE;
param.v.pve = &script_trace_elem;

val.s = NULL;
val.len = 0;
if (fixup_get_svalue(msg, &param, &val) != 0) {
LM_ERR("Failed to get pv elem value!\n");
if (pv_printf_s(msg, &script_trace_elem, &val) != 0) {
LM_ERR("Failed to evaluate variables\n");
return;
}

Expand Down

0 comments on commit fce0b29

Please sign in to comment.