diff options
author | Joshua Colp <jcolp@digium.com> | 2017-01-09 07:23:17 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-01-09 07:23:17 -0600 |
commit | 7632cd646c349b46d827431b3dd6dce4f7113a3e (patch) | |
tree | 22dc34640ab555d8c7d820f5d02a5d2d0406719e /res/res_pjsip_refer.c | |
parent | 38b4189643140a78d1873dcd13f7f076ba1ea3ee (diff) | |
parent | 386e3a01b36bd5fdc512d267a8bcb42a9897e013 (diff) |
Merge "res_pjsip: Fix known compact header issues"
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 c3e9ba53a..aa2af0933 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); |