search_next_avp() has a different signature in sr core compared to k core.
k variant:
struct usr_avp *search_next_avp( struct usr_avp *avp, int_str *val );
sr variant:
avp_t *search_next_avp(struct search_state* state, avp_value_t *val);
This will most likely cause problem for the following modules:
- acc
- avpops
- osp
- siptrace
Regards,
Ovidiu Sas
Hi all,
i just added a new module to the repository - 'memcached'. Its allows to
connect to a memcached server, and supports add, get, delete and atomic
operations via pseudo-variables.
Further details can be found in the module documentation:
http://kamailio.org/docs/modules/devel/memcached.html
If the pv module is imported into the sip-router it should be also work there,
i'll migrate the module then to this tree.
Best regards,
Henning Westerholt
Hello,
just wondering if it is time to create a sr-users mailing list where to
attract the testers in the first phase and continue with the community
when we release first version.
sr-dev is too technical for non-programmers and has lot of commits
traffic in this phase.
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://www.asipto.com
As of today, I still haven't managed to make the following kamailio
modules compile:
cpl-c, dialog, dispatcher, domain, domainpolicy, enum, msilo,
nathelper, nat_traveral, osp, path, perl, perlvdb, presence, pv, qos,
ratelimit, registrar, rls, rtimer, seas, sipitrace, sl, snmpstats,
sst, texops, uac, uac_redirect, usrloc, utils
This does not necessarily mean that the modules above are difficult to
update, but only that they require manual changes and I haven't had
the time to do them yet.
Some of the modules require changes in the sip-router core which are
underway.
If you would like to help update one of the modules above and make
them work on the sip-router core, then, please, let me know. I would
especially appreciate help with the following modules:
perl, perlvdb, pv, snmpstas
because I don't know much about them.
And if you don't have the time or knowledge necessary to convert
modules, we would still appreciate if you could review changes we did
so far. Here is how you can review module changes:
1) Through gitweb
Go to
http://git.sip-router.org/cgi-bin/gitweb.cgi?p=kamailio-3.0/.git;a=heads
and click on a module that interests you. You'll be presented with the
history of the module. Commits on the top of the list are those that I
made to make the module work with the sip-router core. The oldest
commit in most modules which is related to the update to sip-router is:
"Define OPENSER_MOD_INTERFACE in Makefile."
All modules contain that one, so you only need to look at commits that
are newer than this one. There are some exceptions though, such as the
acc module, where the above mentioned commit is not the last one.
2) With git
Clone the repository using:
$ git clone git://git.sip-router.org/kamailio-3.0
Checkout the branch of the module you are interested in:
$ git co -b acc origin/acc
And examine the history of the module with git log:
$ git log -u
Jan.
Module: sip-router
Branch: janakj/kcore
Commit: fa8a216f382be9852eeecb86c04a846d69deef71
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=fa8a216…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Wed Mar 11 00:05:31 2009 +0100
Adding core_stats.[ch] from kamailio
---
lib/kcore/core_stats.c | 71 +++++++++++++++++++++++++++++++++++++++++++
lib/kcore/core_stats.h | 79 ++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 150 insertions(+), 0 deletions(-)
diff --git a/lib/kcore/core_stats.c b/lib/kcore/core_stats.c
new file mode 100644
index 0000000..6f5ebb6
--- /dev/null
+++ b/lib/kcore/core_stats.c
@@ -0,0 +1,71 @@
+/*
+ * $Id$
+ *
+ * Copyright (C) 2006 Voice Sistem SRL
+ *
+ * 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.
+ *
+ * History:
+ * ---------
+ * 2006-01-23 first version (bogdan)
+ * 2006-11-28 Added statistics for the number of bad URI's, methods, and
+ * proxy requests (Jeffrey Magder - SOMA Networks)
+ */
+
+/*!
+ * \file
+ * \brief Kamailio Core statistics
+ */
+
+
+#include <string.h>
+
+#include "statistics.h"
+
+
+#ifdef STATISTICS
+
+stat_var* rcv_reqs; /*!< received requests */
+stat_var* rcv_rpls; /*!< received replies */
+stat_var* fwd_reqs; /*!< forwarded requests */
+stat_var* fwd_rpls; /*!< forwarded replies */
+stat_var* drp_reqs; /*!< dropped requests */
+stat_var* drp_rpls; /*!< dropped replies */
+stat_var* err_reqs; /*!< error requests */
+stat_var* err_rpls; /*!< error replies */
+stat_var* bad_URIs; /*!< number of bad URIs */
+stat_var* unsupported_methods; /*!< unsupported methods */
+stat_var* bad_msg_hdr; /*!< messages with bad header */
+
+
+/*! exported core statistics */
+stat_export_t core_stats[] = {
+ {"rcv_requests" , 0, &rcv_reqs },
+ {"rcv_replies" , 0, &rcv_rpls },
+ {"fwd_requests" , 0, &fwd_reqs },
+ {"fwd_replies" , 0, &fwd_rpls },
+ {"drop_requests" , 0, &drp_reqs },
+ {"drop_replies" , 0, &drp_rpls },
+ {"err_requests" , 0, &err_reqs },
+ {"err_replies" , 0, &err_rpls },
+ {"bad_URIs_rcvd", 0, &bad_URIs },
+ {"unsupported_methods", 0, &unsupported_methods },
+ {"bad_msg_hdr", 0, &bad_msg_hdr },
+ {0,0,0}
+};
+
+#endif
diff --git a/lib/kcore/core_stats.h b/lib/kcore/core_stats.h
new file mode 100644
index 0000000..cbd8821
--- /dev/null
+++ b/lib/kcore/core_stats.h
@@ -0,0 +1,79 @@
+/*
+ * $Id$
+ *
+ * Copyright (C) 2006 Voice Sistem SRL
+ *
+ * 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.
+ *
+ * History:
+ * ---------
+ * 2006-01-23 first version (bogdan)
+ * 2006-11-28 Added statistics for the number of bad URI's, methods, and
+ * proxy requests (Jeffrey Magder - SOMA Networks)
+ */
+
+/*!
+ * \file
+ * \brief Kamailio statistics
+ */
+
+
+#ifndef _CORE_STATS_H_
+#define _CORE_STATS_H_
+
+#include "statistics.h"
+
+#ifdef STATISTICS
+/*! exported core statistics */
+extern stat_export_t core_stats[];
+
+/*! \brief received requests */
+extern stat_var* rcv_reqs;
+
+/*! \brief received replies */
+extern stat_var* rcv_rpls;
+
+/*! \brief forwarded requests */
+extern stat_var* fwd_reqs;
+
+/*! \brief forwarded replies */
+extern stat_var* fwd_rpls;
+
+/*! \brief dropped requests */
+extern stat_var* drp_reqs;
+
+/*! \brief dropped replies */
+extern stat_var* drp_rpls;
+
+/*! \brief error requests */
+extern stat_var* err_reqs;
+
+/*! \brief error replies */
+extern stat_var* err_rpls;
+
+/*! \brief Set in parse_uri() */
+extern stat_var* bad_URIs;
+
+/*! \brief Set in parse_method() */
+extern stat_var* unsupported_methods;
+
+/*! \brief Set in get_hdr_field(). */
+extern stat_var* bad_msg_hdr;
+
+#endif /*STATISTICS*/
+
+#endif /*_CORE_STATS_H_*/