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")) {
char *eventid = NULL;
char *sep;
+ check_via(p, req);
if( (sep = strchr(event, ';')) ) { /* XXX bug here - overwriting string ? */
*sep++ = '\0';
eventid = sep;
{
int res;
-
+ check_via(p, req);
/* XXX Should we authenticate OPTIONS? XXX */
if (p->lastinvite) {
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");
static int handle_request_message(struct sip_pvt *p, struct sip_request *req)
{
if (!ast_test_flag(req, SIP_PKT_IGNORE)) {
+ check_via(p, req);
if (ast_test_flag(req, SIP_PKT_DEBUG))
ast_verbose("Receiving message!\n");
receive_message(p, req);