[asterisk-commits] jrose: trunk r371383 - in /trunk: ./ channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Aug 16 14:52:11 CDT 2012
Author: jrose
Date: Thu Aug 16 14:52:08 2012
New Revision: 371383
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=371383
Log:
chan_sip: Use pvt outgoing_call variable to set Remote-Party-ID Header
Previously the pvt SIP_OUTGOING flag was used instead, which will frequently
flip during reinvites.
(closes issue AST-897)
Reported by: Thomas Arimont
........
Merged revisions 371357 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 371358 from http://svn.asterisk.org/svn/asterisk/branches/10
........
Merged revisions 371382 from http://svn.asterisk.org/svn/asterisk/branches/11
Modified:
trunk/ (props changed)
trunk/channels/chan_sip.c
Propchange: trunk/
------------------------------------------------------------------------------
--- branch-11-merged (original)
+++ branch-11-merged Thu Aug 16 14:52:08 2012
@@ -1,1 +1,1 @@
-/branches/11:1-371121,371143,371146,371200,371227,371258,371272,371295,371324,371355
+/branches/11:1-371121,371143,371146,371200,371227,371258,371272,371295,371324,371355,371382
Modified: trunk/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_sip.c?view=diff&rev=371383&r1=371382&r2=371383
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Thu Aug 16 14:52:08 2012
@@ -11914,7 +11914,7 @@
}
add_header(req, "P-Asserted-Identity", ast_str_buffer(tmp));
} else {
- ast_str_set(&tmp, -1, "\"%s\" <sip:%s@%s>;party=%s", lid_name, lid_num, fromdomain, ast_test_flag(&p->flags[0], SIP_OUTGOING) ? "calling" : "called");
+ ast_str_set(&tmp, -1, "\"%s\" <sip:%s@%s>;party=%s", lid_name, lid_num, fromdomain, p->outgoing_call ? "calling" : "called");
switch (lid_pres) {
case AST_PRES_ALLOWED_USER_NUMBER_NOT_SCREENED:
More information about the asterisk-commits
mailing list