k/rr/api.c

Go to the documentation of this file.
00001 /*
00002  * $Id$
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 
00041 #include "../../sr_module.h"
00042 #include "loose.h"
00043 #include "record.h"
00044 #include "api.h"
00045 #include "rr_cb.h"
00046 
00047 
00049 extern int append_fromtag;
00050 
00051 
00057 int load_rr( struct rr_binds *rrb )
00058 {
00059         rrb->record_route_preset = record_route_preset;
00060         rrb->record_route_advertised_address = record_route_advertised_address;
00061         rrb->record_route      = record_route;
00062         rrb->loose_route       = loose_route;
00063         rrb->add_rr_param      = add_rr_param;
00064         rrb->check_route_param = check_route_param;
00065         rrb->is_direction      = is_direction;
00066         rrb->get_route_param   = get_route_param;
00067         rrb->register_rrcb     = register_rrcb;
00068         rrb->append_fromtag    = append_fromtag;
00069 
00070         return 1;
00071 }