--- chan_sip.c 2008-07-14 17:54:25.000000000 +0200 +++ chan_sip.c.orig 2008-07-14 17:52:21.000000000 +0200 @@ -11188,7 +11188,6 @@ static void handle_request_info(struct s 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")) { @@ -13430,7 +13429,6 @@ static int handle_request_notify(struct char *eventid = NULL; char *sep; - check_via(p, req); if( (sep = strchr(event, ';')) ) { /* XXX bug here - overwriting string ? */ *sep++ = '\0'; eventid = sep; @@ -13558,7 +13556,6 @@ static int handle_request_options(struct { int res; - check_via(p, req); res = get_destination(p, req); build_contact(p); @@ -14448,7 +14445,7 @@ static int handle_request_refer(struct s /* Chan2: Call between asterisk and transferee */ int res = 0; - check_via(p, req); + if (ast_test_flag(req, SIP_PKT_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"); @@ -14895,7 +14892,6 @@ static int handle_request_bye(struct sip /*! \brief Handle incoming MESSAGE request */ static int handle_request_message(struct sip_pvt *p, struct sip_request *req) { - check_via(p, req); if (!ast_test_flag(req, SIP_PKT_IGNORE)) { if (ast_test_flag(req, SIP_PKT_DEBUG)) ast_verbose("Receiving message!\n");