perlfunc.h

Go to the documentation of this file.
00001 /*
00002  * $Id: perlfunc.h 4518 2008-07-28 15:39:28Z henningw $
00003  *
00004  * Perl module for OpenSER
00005  *
00006  * Copyright (C) 2006 Collax GmbH
00007  *                    (Bastian Friedrich <bastian.friedrich@collax.com>)
00008  *
00009  * This file is part of Kamailio, a free SIP server.
00010  *
00011  * Kamailio is free software; you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License as published by
00013  * the Free Software Foundation; either version 2 of the License, or
00014  * (at your option) any later version
00015  *
00016  * Kamailio is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program; if not, write to the Free Software
00023  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00024  *
00025  */
00026 
00027 #ifndef PERL_FUNC_H
00028 #define PERL_FUNC_H
00029 
00030 #include "../../parser/msg_parser.h"
00031 
00032 /*
00033  * Run a perl function without a sip message parameter.
00034  */
00035 int perl_exec_simple1(struct sip_msg* _msg, char* fnc, char* str2);
00036 int perl_exec_simple2(struct sip_msg* _msg, char* fnc, char* str2);
00037 
00038 /*
00039  * Run function with a reference to the current SIP message.
00040  * An optional string may be passed to perl_exec_string.
00041  */
00042 int perl_exec1(struct sip_msg* _msg, char* fnc, char *foobar);
00043 int perl_exec2(struct sip_msg* _msg, char* fnc, char* mystr);
00044 
00045 #endif /* PERL_FUNC_H */

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