[Asterisk-code-review] Modified the PJSIP Transfer REFER behavior to include the Re... (asterisk[master])

Joshua Colp asteriskteam at digium.com
Fri Aug 28 06:43:29 CDT 2015


Joshua Colp has posted comments on this change.

Change subject: Modified the PJSIP Transfer REFER behavior to include the Referred-By header.
......................................................................


Patch Set 1: Code-Review-1

(2 comments)

https://gerrit.asterisk.org/#/c/1149/1//COMMIT_MSG
Commit Message:

Line 7: Modified the PJSIP Transfer REFER behavior to include the Referred-By header.
Please follow the guidelines at https://wiki.asterisk.org/wiki/display/AST/Commit+Messages for constructing a commit message.


https://gerrit.asterisk.org/#/c/1149/1/channels/chan_pjsip.c
File channels/chan_pjsip.c:

Line 1459: 	ref_by_val = pbx_builtin_getvar_helper(session->channel, "SIPREFERREDBYHDR");
         : 	if (!ast_strlen_zero(ref_by_val)) {
         : 		hdr = (pjsip_hdr*)pjsip_generic_string_hdr_create(packet->pool, &ref_by, pj_cstr(&tmp2, ref_by_val));
         : 	} else {
         : 		hdr = (pjsip_hdr*)pjsip_generic_string_hdr_create(packet->pool, &ref_by, &session->inv_session->dlg->local.info_str);
         : 	}
         : 	pjsip_msg_add_hdr(packet->msg, hdr);
The res_pjsip_refer module currently has support for adding Referred-By but does it only on INVITE requests. I think to keep the code close together it would be nice to have that code changed to also add to REFER requests.


-- 
To view, visit https://gerrit.asterisk.org/1149
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I3d17912ce548667edf53cb549e88a25475eda245
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Dan Cropp <dan at amtelco.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-HasComments: Yes



More information about the asterisk-code-review mailing list