Skip to content

Commit

Permalink
app_perl: log the perl function name when not found
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Jul 8, 2022
1 parent 840b4f9 commit b123355
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/app_perl/perlfunc.c
Expand Up @@ -100,7 +100,7 @@ int perl_exec2(struct sip_msg* _msg, char* fnc, char* mystr) {
dSP;

if (!perl_checkfnc(fnc)) {
LM_ERR("unknown perl function called.\n");
LM_ERR("unknown perl function called [%s]\n", ZSW(fnc));
reason.s = "Internal error";
reason.len = sizeof("Internal error")-1;
if (slb.freply(_msg, 500, &reason) == -1)
Expand All @@ -109,7 +109,7 @@ int perl_exec2(struct sip_msg* _msg, char* fnc, char* mystr) {
}
return -1;
}

switch ((_msg->first_line).type) {
case SIP_REQUEST:
if (parse_sip_msg_uri(_msg) < 0) {
Expand Down

0 comments on commit b123355

Please sign in to comment.