Hello everyone
I’m new in siremis as web interface of kamailio and I immediately need your help,I installed kamailio and siremis and login in siremis web interface,I can work with it but now I have a problem.
I want to change menu language there is an option in(setting->translate->manage languages) add my desired language and click save and i see this error:
Error message: #2, count(): Parameter must be an array or an object that implements Countable
Script name and line number of error: /var/www/siremis-5.3.x/siremis/modules/translation/lib/LangPackCreator.php
![Screenshot from 2021-12-19 12-46-52](https://user-images.githubusercontent.com/84019067/146672269-4734…
what’s wrong and what should I do to resolve it?
thank you for your help and I am pleased to receive your response
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2979
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/2979(a)github.com>
Module: kamailio
Branch: master
Commit: 99a9f27c8d24a06f201b4713f7a2bfeb37092482
URL: https://github.com/kamailio/kamailio/commit/99a9f27c8d24a06f201b4713f7a2bfe…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-12-19T17:55:55+01:00
misc/examples: kemi - update lua sample config
---
Modified: misc/examples/kemi/kamailio-basic-kemi-lua.lua
---
Diff: https://github.com/kamailio/kamailio/commit/99a9f27c8d24a06f201b4713f7a2bfe…
Patch: https://github.com/kamailio/kamailio/commit/99a9f27c8d24a06f201b4713f7a2bfe…
---
diff --git a/misc/examples/kemi/kamailio-basic-kemi-lua.lua b/misc/examples/kemi/kamailio-basic-kemi-lua.lua
index a406b6429c..7b1476efb1 100644
--- a/misc/examples/kemi/kamailio-basic-kemi-lua.lua
+++ b/misc/examples/kemi/kamailio-basic-kemi-lua.lua
@@ -80,18 +80,20 @@ function ksr_request_route()
return 1;
end
+ -- handle retransmissions
+ if not KSR.is_ACK() then
+ if KSR.tmx.t_precheck_trans()>0 then
+ KSR.tm.t_check_trans();
+ return 1;
+ end
+ if KSR.tm.t_check_trans()==0 then return 1 end
+ end
+
-- handle requests within SIP dialogs
ksr_route_withindlg();
-- -- only initial requests (no To tag)
- -- handle retransmissions
- if KSR.tmx.t_precheck_trans()>0 then
- KSR.tm.t_check_trans();
- return 1;
- end
- if KSR.tm.t_check_trans()==0 then return 1 end
-
-- authentication
ksr_route_auth();
@@ -158,6 +160,11 @@ end
-- Per SIP request initial checks
function ksr_route_reqinit()
+ -- no connect for sending replies
+ KSR.set_reply_no_connect();
+ -- enforce symmetric signaling
+ -- send back replies to the source address of request
+ KSR.force_rport();
if not KSR.is_myself_srcip() then
local srcip = KSR.kx.get_srcip();
if KSR.htable.sht_match_name("ipban", "eq", srcip) > 0 then
@@ -194,7 +201,7 @@ function ksr_route_reqinit()
KSR.x.exit();
end
- if KSR.sanity.sanity_check(1511, 7)<0 then
+ if KSR.sanity.sanity_check(17895, 7)<0 then
KSR.err("malformed SIP message from "
.. KSR.kx.get_srcip() .. ":" .. KSR.kx.get_srcport() .."\n");
KSR.x.exit();
@@ -319,7 +326,6 @@ function ksr_route_natdetect()
if not KSR.nathelper then
return 1;
end
- KSR.force_rport();
if KSR.nathelper.nat_uac_test(19)>0 then
if KSR.is_REGISTER() then
KSR.nathelper.fix_nated_register();
Module: kamailio
Branch: master
Commit: 03acf834a19689d6c3efcea93e48985d3e7ffc37
URL: https://github.com/kamailio/kamailio/commit/03acf834a19689d6c3efcea93e48985…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-12-16T09:44:54+01:00
core: parser - clang format parser_f.c
---
Modified: src/core/parser/parser_f.c
---
Diff: https://github.com/kamailio/kamailio/commit/03acf834a19689d6c3efcea93e48985…
Patch: https://github.com/kamailio/kamailio/commit/03acf834a19689d6c3efcea93e48985…
---
diff --git a/src/core/parser/parser_f.c b/src/core/parser/parser_f.c
index f1a532fd6f..c124f68cc5 100644
--- a/src/core/parser/parser_f.c
+++ b/src/core/parser/parser_f.c
@@ -15,8 +15,8 @@
* 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
+ * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
@@ -28,22 +28,27 @@
*/
-#include "parser_f.h"
+#include "parser_f.h"
#include "../ut.h"
/** @brief returns pointer to next line or after the end of buffer */
-char* eat_line(char* buffer, unsigned int len)
+char *eat_line(char *buffer, unsigned int len)
{
- char* nl;
+ char *nl;
/* jku .. replace for search with a library function; not conforming
as I do not care about CR
*/
- nl=(char *)q_memchr( buffer, '\n', len );
- if ( nl ) {
- if ( nl + 1 < buffer+len) nl++;
- if (( nl+1<buffer+len) && * nl=='\r') nl++;
- } else nl=buffer+len;
+ nl = (char *)q_memchr(buffer, '\n', len);
+ if(nl) {
+ if(nl + 1 < buffer + len) {
+ nl++;
+ }
+ if((nl + 1 < buffer + len) && *nl == '\r') {
+ nl++;
+ }
+ } else {
+ nl = buffer + len;
+ }
return nl;
}
-
Module: kamailio
Branch: 5.5
Commit: 3cd4676ce5071f83fccc0e16946c9e0376b018f6
URL: https://github.com/kamailio/kamailio/commit/3cd4676ce5071f83fccc0e16946c9e0…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2021-12-16T09:32:07+01:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/tls/README
---
Diff: https://github.com/kamailio/kamailio/commit/3cd4676ce5071f83fccc0e16946c9e0…
Patch: https://github.com/kamailio/kamailio/commit/3cd4676ce5071f83fccc0e16946c9e0…
---
diff --git a/src/modules/tls/README b/src/modules/tls/README
index 86dde8f336..2bba8c8115 100644
--- a/src/modules/tls/README
+++ b/src/modules/tls/README
@@ -238,6 +238,14 @@ Chapter 1. Admin Guide
module that uses libssl (OpenSSL library). A safe option is to have the
tls module loaded first (be in the first "loadmodule" in Kamailio.cfg).
+ IMPORTANT: using this module compiled with newer versions of libssl
+ (e.g., v1.1+) may require Kamailio to be started with --atexit=no
+ command line parameters to avoid calling C atexit callbacks inside the
+ process ending during daemonize procedure as well as during shut down,
+ which can lead to crashes because it destroys and then accesses shared
+ memory. For example, such case has been reported for Ubuntu 20.04 or
+ RedHat 8.
+
2. Quick Start
The default kamailio.cfg file has basic tls support included, it has to