record.h

Go to the documentation of this file.
00001 /*
00002  * $Id: record.h 5575 2009-02-10 10:13:29Z henningw $
00003  *
00004  * Copyright (C) 2001-2003 FhG Fokus
00005  *
00006  * This file is part of Kamailio, a free SIP server.
00007  *
00008  * Kamailio is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version
00012  *
00013  * Kamailio is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License 
00019  * along with this program; if not, write to the Free Software 
00020  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021  */
00022 
00023 /*!
00024  * \file
00025  * \brief Route & Record-Route module
00026  * \ingroup rr
00027  */
00028 
00029 #ifndef RECORD_H
00030 #define RECORD_H
00031 
00032 #include "../../parser/msg_parser.h"
00033 #include "../../str.h"
00034 
00035 
00036 /*!
00037  * \brief Insert a new Record-Route header field with lr parameter
00038  *
00039  * Insert a new Record-Route header field with lr parameter, and also 2nd one if it is
00040  * enabled and the realm changed so the 2nd record-route header will be necessary.
00041  * \param _m SIP message
00042  * \param params RR parameter
00043  * \return 0 on success, negative on failure
00044  */
00045 int record_route(struct sip_msg* _m, str* _param);
00046 
00047 
00048 /*!
00049  * \brief Insert manually created Record-Route header
00050  *
00051  * Insert manually created Record-Route header, no checks, no restrictions,
00052  * always adds lr parameter, only fromtag is added automatically when requested.
00053  * Allocates new private memory for this.
00054  * \param _m SIP message
00055  * \param _data manually created RR header
00056  * \return 1 on success, negative on failure
00057  */
00058 int record_route_preset(struct sip_msg* _m, str* _data);
00059 
00060 
00061 /*!
00062  * \brief Appends a new Record-Route parameter
00063  * \param msg SIP message
00064  * \param rr_param RR parameter
00065  * \return 0 on success, -1 on failure
00066  */
00067 int add_rr_param(struct sip_msg* msg, str* rr_param);
00068 
00069 
00070 #endif /* RECORD_H */

Generated on Thu May 24 10:00:29 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6