[asterisk-commits] mmichelson: branch 1.6.0 r168195 - in /branches/1.6.0: ./ channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jan 9 15:57:05 CST 2009
Author: mmichelson
Date: Fri Jan 9 15:57:01 2009
New Revision: 168195
URL: http://svn.digium.com/view/asterisk?view=rev&rev=168195
Log:
Merged revisions 168193 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r168193 | mmichelson | 2009-01-09 15:53:26 -0600 (Fri, 09 Jan 2009) | 21 lines
Merged revisions 168128 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r168128 | mmichelson | 2009-01-09 14:08:04 -0600 (Fri, 09 Jan 2009) | 13 lines
Add check_via calls to more request handlers
INFO, NOTIFY, OPTIONS, REFER, and MESSAGE requests
were not checking the topmost Via to determine where
to send the response. Adding check_via calls to those
request handlers solves this.
(closes issue #13071)
Reported by: baron
Patches:
check_via.patch uploaded by baron (license 531)
Tested by: baron
........
................
Modified:
branches/1.6.0/ (props changed)
branches/1.6.0/channels/chan_sip.c
Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.0/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/channels/chan_sip.c?view=diff&rev=168195&r1=168194&r2=168195
==============================================================================
--- branches/1.6.0/channels/chan_sip.c (original)
+++ branches/1.6.0/channels/chan_sip.c Fri Jan 9 15:57:01 2009
@@ -13820,6 +13820,7 @@
unsigned int event;
const char *c = get_header(req, "Content-Type");
+ check_via(p, req);
/* Need to check the media/type */
if (!strcasecmp(c, "application/dtmf-relay") ||
!strcasecmp(c, "application/vnd.nortelnetworks.digits")) {
@@ -16140,6 +16141,7 @@
char *eventid = NULL;
char *sep;
+ check_via(p, req);
if( (sep = strchr(event, ';')) ) { /* XXX bug here - overwriting string ? */
*sep++ = '\0';
eventid = sep;
@@ -16278,6 +16280,7 @@
(this needs to be fixed in 1.4 as well)
*/
+ check_via(p, req);
if (p->lastinvite) {
/* if this is a request in an active dialog, just confirm that the dialog exists. */
transmit_response_with_allow(p, "200 OK", req, 0);
@@ -17573,6 +17576,7 @@
int res = 0;
+ check_via(p, req);
if (req->debug)
ast_verbose("Call %s got a SIP call transfer from %s: (REFER)!\n", p->callid, ast_test_flag(&p->flags[0], SIP_OUTGOING) ? "callee" : "caller");
@@ -18059,6 +18063,7 @@
static int handle_request_message(struct sip_pvt *p, struct sip_request *req)
{
if (!req->ignore) {
+ check_via(p, req);
if (req->debug)
ast_verbose("Receiving message!\n");
receive_message(p, req);
More information about the asterisk-commits
mailing list