Skip to content

Commit

Permalink
tm: readded w_t_reply_wrp()
Browse files Browse the repository at this point in the history
- needed for exports to inter-module api
- simplified version after changes in tm reply code
- reported by GH #1517
  • Loading branch information
miconda committed May 1, 2018
1 parent 20b0f29 commit 42a55ed
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/modules/tm/tm.c
Expand Up @@ -1393,6 +1393,17 @@ static int w_t_reply(struct sip_msg* msg, char* p1, char* p2)
return ki_t_reply(msg, code, &reason);
}

/* wrapper for inter-module api */
int w_t_reply_wrp(struct sip_msg *msg, unsigned int code, char *txt)
{
str reason;

reason.s = txt;
reason.len = strlen(reason.s);

return ki_t_reply(msg, code, &reason);
}

/**
*
*/
Expand Down

0 comments on commit 42a55ed

Please sign in to comment.