faked_msg.c File Reference

#include "dprint.h"
#include "globals.h"
#include "dset.h"
#include "faked_msg.h"

Include dependency graph for faked_msg.c:

Go to the source code of this file.

Defines

#define FAKED_SIP_MSG   "OPTIONS sip:you@kamailio.org SIP/2.0\r\nVia: SIP/2.0/UDP 127.0.0.1\r\nFrom: <you@kamailio.org>;tag=123\r\nTo: <you@kamailio.org>\r\nCall-ID: 123\r\nCSeq: 1 OPTIONS\r\nContent-Length: 0\r\n\r\n"
#define FAKED_SIP_MSG_LEN   (sizeof(FAKED_SIP_MSG)-1)

Functions

int faked_msg_init (void)
struct sip_msgfaked_msg_next (void)

Variables

static struct sip_msg _faked_msg
static unsigned int _faked_msg_no = 0
static char _faked_sip_buf [FAKED_SIP_MSG_LEN+1]


Define Documentation

#define FAKED_SIP_MSG   "OPTIONS sip:you@kamailio.org SIP/2.0\r\nVia: SIP/2.0/UDP 127.0.0.1\r\nFrom: <you@kamailio.org>;tag=123\r\nTo: <you@kamailio.org>\r\nCall-ID: 123\r\nCSeq: 1 OPTIONS\r\nContent-Length: 0\r\n\r\n"

$Id$

Copyright (C) 2009 Daniel-Constantin Mierla (asipto.com)

This file is part of kamailio, a free SIP server.

openser is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version

openser is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Definition at line 29 of file faked_msg.c.

Referenced by faked_msg_init().

#define FAKED_SIP_MSG_LEN   (sizeof(FAKED_SIP_MSG)-1)

Definition at line 30 of file faked_msg.c.

Referenced by faked_msg_init().


Function Documentation

int faked_msg_init ( void   ) 

$Id$

Copyright (C) 2009 Daniel-Constantin Mierla (asipto.com)

This file is part of kamailio, a free SIP server.

kamailio is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version

kamailio is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Definition at line 35 of file faked_msg.c.

References _faked_msg, _faked_msg_no, _faked_sip_buf, sip_msg::buf, default_global_address, default_global_port, FAKED_SIP_MSG, FAKED_SIP_MSG_LEN, sip_msg::len, LM_ERR, parse_msg(), sip_msg::set_global_address, and sip_msg::set_global_port.

Referenced by mod_init().

struct sip_msg* faked_msg_next ( void   )  [read]

Definition at line 59 of file faked_msg.c.

References _faked_msg, _faked_msg_no, clear_branches(), and sip_msg::id.

Referenced by dlg_ontimeout().


Variable Documentation

struct sip_msg _faked_msg [static]

Definition at line 32 of file faked_msg.c.

Referenced by faked_msg_init(), and faked_msg_next().

unsigned int _faked_msg_no = 0 [static]

Definition at line 33 of file faked_msg.c.

Referenced by faked_msg_init(), and faked_msg_next().

char _faked_sip_buf[FAKED_SIP_MSG_LEN+1] [static]

Definition at line 31 of file faked_msg.c.

Referenced by faked_msg_init().


Generated on Wed May 23 06:01:03 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6