Skip to content

Commit

Permalink
callops: always check for orig RURI when searching for param
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Jun 10, 2020
1 parent 8cb9d0a commit a592d10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/callops/callops.c
Expand Up @@ -281,11 +281,11 @@ static str *call_dlg_get_uri_param(struct sip_msg *msg)
int i;
struct sip_uri *r_uri;

if (msg->parsed_uri_ok == 0 && parse_sip_msg_uri(msg) < 0) {
if (msg->parsed_orig_ruri_ok == 0 && parse_orig_ruri(msg) < 0) {
LM_DBG("could not parse URI!\n");
return NULL;
}
r_uri = &msg->parsed_uri;
r_uri = &msg->parsed_orig_ruri;

for (i = 0; i < r_uri->u_params_no; i++)
if (str_match(&r_uri->u_name[i], &call_match_param) && r_uri->u_val[i].len)
Expand Down

0 comments on commit a592d10

Please sign in to comment.