-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3514/
-----------------------------------------------------------
Review request for Asterisk Developers.
Bugs: ASTERISK-23501
https://issues.asterisk.org/jira/browse/ASTERISK-23501
Repository: Asterisk
Description
-------
Per rfc3892, the Referred-By header in a REFER must be copied into the
referenced request (IE. The outgoing INVITE to the transfer target).
* Automatically put the Referred-By header in the outgoing INVITE message if
the SIPREFERREDBYHDR channel variable is defined with a value.
* Made chan_sip.c:get_refer_info() set SIPREFERREDBYHDR for inheritance so
chan_pjsip has a better chance to interoperate.
* Fixed refer_blind_callback() and refer_incoming_refer_request() to not modify
the data in the pointer returned by pjsip_msg_find_hdr_by_name(). It seems
wrong to modify that data since the calling routine doesn't own the buffer.
Diffs
-----
/branches/12/res/res_pjsip_refer.c 413157
/branches/12/channels/chan_sip.c 413157
Diff: https://reviewboard.asterisk.org/r/3514/diff/
Testing
-------
The testsuite/tests/channels/pjsip/transfers/blind_transfer/caller_refer_only
test now passes with this patch and the minor modification to allow
SIPREFERREDBYHDR to have the optional inheritance '_' prefixes added.
Index:
tests/channels/pjsip/transfers/blind_transfer/caller_refer_only/test-config.yaml
===================================================================
---
tests/channels/pjsip/transfers/blind_transfer/caller_refer_only/test-config.yaml
(revision 5006)
+++
tests/channels/pjsip/transfers/blind_transfer/caller_refer_only/test-config.yaml
(working copy)
@@ -104,7 +104,7 @@
match:
Event: 'VarSet'
Channel: 'PJSIP/bob-.{8}'
- Variable: 'SIPREFERREDBYHDR'
+ Variable: '_{0,2}SIPREFERREDBYHDR'
Value: 'alice <sip:[email protected]>'
count: 2
-
@@ -112,7 +112,7 @@
conditions:
match:
Event: 'VarSet'
- Variable: 'SIPREFERTOHDR'
+ Variable: '_{0,2}SIPREFERTOHDR'
Value: 'sip:[email protected]'
count: 2
-
Thanks,
rmudgett
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-dev