rr/api.c

Go to the documentation of this file.
00001 /*
00002  * $Id: api.c 5575 2009-02-10 10:13:29Z henningw $
00003  *
00004  * Copyright (C) 2005 Voice Sistem SRL
00005  *
00006  * This file is part of Kamailio, a free SIP server.
00007  *
00008  * Kamailio is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU General Public License
00010  * as published by the Free Software Foundation; either version 2
00011  * of the License, or (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 Kamailio RR module (record-routing) API
00026  *
00027  * Kamailio RR module (record-routing) API.
00028  * The RR module provides an internal API to be used by other
00029  * Kamailio modules. The API offers support for SIP dialog based
00030  * functionalities.
00031 
00032  * For internal(non-script) usage, the RR module offers to other
00033  * module the possibility to register callback functions to be
00034  * executed each time a local Route header is processed. The
00035  * callback function will receive as parameter the register
00036  * parameter and the Route header parameter string.
00037  * \ingroup rr
00038  */
00039 
00040 
00041 #include "../../sr_module.h"
00042 #include "loose.h"
00043 #include "record.h"
00044 #include "api.h"
00045 #include "rr_cb.h"
00046 
00047 
00048 /*! append from tag to record route */
00049 extern int append_fromtag;
00050 
00051 
00052 /*!
00053 * \brief Function exported by module - it will load the other functions
00054  * \param rrb record-route API export binding
00055  * \return 1
00056  */
00057 int load_rr( struct rr_binds *rrb )
00058 {
00059    rrb->add_rr_param      = add_rr_param;
00060    rrb->check_route_param = check_route_param;
00061    rrb->is_direction      = is_direction;
00062    rrb->get_route_param   = get_route_param;
00063    rrb->register_rrcb     = register_rrcb;
00064    rrb->append_fromtag    = append_fromtag;
00065 
00066    return 1;
00067 }

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