Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552 FS#353 : carrierroute not loading with kamailio 4.0.x

sip-router

Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

SIP Router Project

Tasklist

FS#353 - carrierroute not loading with kamailio 4.0.x

Attached to Project: sip-router
Opened by Oli Roth (kolibri99) - Monday, 14 October 2013, 12:50 GMT
Last edited by Daniel-Constantin Mierla (miconda) - Friday, 28 March 2014, 22:37 GMT
Task Type Bug Report
Category Module
Status Closed
Assigned To No-one
Operating System Linux
Severity Critical
Priority Normal
Reported Version 4.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

hi all

Module carrierroute not working starting from version kamailio 4.0.x

trying to activate carrierroute in kamailio.cfg
loadmodule “carrierroute.so”

i get the following error when starting kamailio

0(7547) ERROR: <core> [sr_module.c:572]: load_module(): ERROR: load_module: could not open module </usr/lib64/kamailio/modules/carrierroute.so>: /usr/lib64/kamailio/modules/carrierroute.so: undefined symbol: cfg_set_error_function
0(7547) : <core> [cfg.y:3567]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 219, column 12-28: failed to load module
ERROR: bad config file (1 errors)

the function “cfg_set_error_function” is different, if i use another linux system. I tested with ubuntu 12.04 & 10.04.
I installed with apt-get install and I also compiled the version using GIT.

I did a crosscheck with kamailio 3.3 and there it seems to work!

This task depends upon

Closed by  Daniel-Constantin Mierla (miconda)
Friday, 28 March 2014, 22:37 GMT
Reason for closing:  Fixed
Comment by Pete Ashdown (pashdown) - Tuesday, 21 January 2014, 21:36 GMT
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

This is sort of a deal breaker for me. Could be alleviated by the debs for 4.1.x being created. At least I hope 4.1.x doesn't have the same problem.

Comment by Daniel-Constantin Mierla (miconda) - Friday, 21 February 2014, 19:06 GMT
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

There was a patch sent some time ago not to depend on libconfuse:
- http://lists.sip-router.org/pipermail/sr-dev/2013-November/022030.html

I pinged to get some updates about its status.

Comment by Daniel-Constantin Mierla (miconda) - Friday, 28 March 2014, 22:37 GMT
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

The dependencing on libconfuse was removed with the commit 4c4f2c2bedb4ad3a920847d061798109867bb5bd - it is in master branch.

Comment by Oli Roth (kolibri99) - Monday, 31 March 2014, 08:34 GMT
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

Hi Daniel

I just upgraded to the lastest kamailio release
version: kamailio 4.1.2 (x86_64/linux)

As it seems it still does not work:

* 0(32002) ERROR: <core> [sr_module.c:599]: load_module(): ERROR: load_module: could not open module </usr/lib/x86_64-linux-gnu/kamailio/modules/carrierroute.so>: /usr/lib/x86_64-linux-gnu/kamailio/modules/carrierroute.so: undefined symbol: cfg_set_error_functio
0(32002) ERROR: <core> [cfg.y:3272]: yyparse(): cfg. parser: failed to find command cr_user_carrier
0(32002) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 1109, column 67: unknown command, missing loadmodule?

Should I use kamailio 4.0.x instead of 4.1.x?

Thanks for reply

Comment by Daniel-Constantin Mierla (miconda) - Monday, 31 March 2014, 08:44 GMT
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

The commit was only on master branch, it will be in next major release 4.2. I understood it is due to a change in the libconfuse api, not sure 4.0 will help at all. What you can do is to run the module from master in 4.1 (you can cherry pick the commits or simply copy over).

You can write to sr-dev mailing list and ask about the plans for the module – i am not its developer, nor using it. I noticed the patch and closed the task.

Comment by Carsten Bock (carstenbock) - Monday, 31 March 2014, 09:05 GMT
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

You can use our repository as described here:
http://www.kamailio.org/wiki/tutorials/ims/installation-howto

Out "ims" repository contains a current stable 4.1 with some handpicked patches from current master (e.g. this patch), which we use or plan to use in our own setups.

If no-one objects, i could apply the changes to current 4.1 and 4.0; but actually i wanted to leave this to the "original" developers of the Carrierroute module.

Kind regards,
Carsten

Comment by Oli Roth (kolibri99) - Monday, 31 March 2014, 09:26 GMT
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

sorry - double post

Comment by Oli Roth (kolibri99) - Monday, 31 March 2014, 12:47 GMT
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

Hi Daniel

It seems to be "loadable" using your provided url.
The only thing I had to do is update the address table to verion 6 / before version 5

Now we will perform some tests

You mentioned a patch you applied.
Can I do this by myself with the newest kamailio versions?
If I got you right you will apply this patch to the next stable kamailio verision - correct?

Kind Regards,
Oli

Comment by Oli Roth (kolibri99) - Wednesday, 02 April 2014, 07:08 GMT
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

Hi Daniel

It seems to be "loadable" using your provided url.
The only thing I had to do is update the address table to verion 6 / before version 5

Now we will perform some tests

You mentioned a patch you applied.
Can I do this by myself with the newest kamailio versions?
If I got you right you will apply this patch to the next stable kamailio verision - correct?

Kind Regards,
Oli

Comment by Carsten Bock (carstenbock) - Tuesday, 22 April 2014, 08:36 GMT
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

Commited to 4.1 as well.

Loading...