diff options
author | Joshua Elson <joshelson@gmail.com> | 2016-12-31 18:56:09 -0700 |
---|---|---|
committer | Joshua Elson <joshelson@gmail.com> | 2016-12-31 18:56:09 -0700 |
commit | a398f98b08f98538ec6c70b67f46a5a24fe4d001 (patch) | |
tree | 708e2c1a7538a2db1547da8cd71b98e3de69eb60 /res/res_pjsip_refer.c | |
parent | e2fa3c7edabd52b62830a32930b0b4aaf4bcb9ac (diff) |
res_pjsip: Fix known compact header issues
ASTERISK-26684 #close
Change-Id: Ifd7e401c45015119dd5e8421dbfe3afa6381744a
Diffstat (limited to 'res/res_pjsip_refer.c')
-rw-r--r-- | res/res_pjsip_refer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/res/res_pjsip_refer.c b/res/res_pjsip_refer.c index 99295d5f3..77b1a5438 100644 --- a/res/res_pjsip_refer.c +++ b/res/res_pjsip_refer.c @@ -573,6 +573,7 @@ static void refer_blind_callback(struct ast_channel *chan, struct transfer_chann pjsip_generic_string_hdr *referred_by; static const pj_str_t str_referred_by = { "Referred-By", 11 }; + static const pj_str_t str_referred_by_s = { "b", 1 }; pbx_builtin_setvar_helper(chan, "SIPTRANSFER", "yes"); @@ -651,8 +652,8 @@ static void refer_blind_callback(struct ast_channel *chan, struct transfer_chann pbx_builtin_setvar_helper(chan, "SIPREFERRINGCONTEXT", S_OR(refer->context, NULL)); - referred_by = pjsip_msg_find_hdr_by_name(refer->rdata->msg_info.msg, - &str_referred_by, NULL); + referred_by = pjsip_msg_find_hdr_by_names(refer->rdata->msg_info.msg, + &str_referred_by, &str_referred_by_s, NULL); if (referred_by) { size_t uri_size = pj_strlen(&referred_by->hvalue) + 1; char *uri = ast_alloca(uri_size); |