Hello,
probably it was forgotten to export the internal API bind function. I
just committed the fix on GIT master branch (devel version):
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=db188fb…
I couldn't test it for now, so if you can give it a try and report
whether it is working ok or not, then I can backport the fix to 3.1.
Thanks,
Daniel
On 7/28/11 12:46 PM, Timo Klecker wrote:
Hi,
I'm trying to extend a Kamailio Module and need to add and remove
headers in a SIP Message. To do this I want to use the textops module
and I am importing the api and trying to bind the textops module.
#include "../textops/api.h"
[..]
struct textops_binds tob;
[..]
/* register callbacks to TEXTOPS */
if (load_textops_api(&tob)!=0)
{
LM_ERR("can't load textops api. Is module textops
loaded?\n");
return -1;
}
Later I use tob.append_hf to add a header field.
Everything compiles fine but on Kamailio startup there is a Error Message:
[..]
0(21782) DEBUG: <core> [route_struct.c:166]: ACTION_#25 #0/2: 9(9)/ (nil)
0(21782) DEBUG: <core> [route_struct.c:166]: ACTION_#25 #1/2: 3(3)/ (nil)
0(21782) DEBUG: <core> [sr_module.c:625]: find_export_record: found
<is_method> in module textops [/usr/lib/kamailio/modules_k/textops.so]
0(21782) DEBUG: <core> [route_struct.c:166]: ACTION_#25 #0/2: 9(9)/ (nil)
0(21782) DEBUG: <core> [route_struct.c:166]: ACTION_#25 #1/2: 3(3)/ (nil)
0(21782) DEBUG: <core> [sr_module.c:625]: find_export_record: found
<is_method> in module textops [/usr/lib/kamailio/modules_k/textops.so]
0(21782) DEBUG: <core> [route_struct.c:166]: ACTION_#25 #0/2: 9(9)/ (nil)
0(21782) DEBUG: <core> [route_struct.c:166]: ACTION_#25 #1/2: 3(3)/ (nil)
[..]
0(21784) DEBUG: <core> [sr_module.c:625]: find_export_record: found
<t_release> in module tm [/usr/lib/kamailio/modules/tm.so]
0(21784) DEBUG: <core> [sr_module.c:631]: find_export_record:
<load_textops> not found
0(21784) ERROR: siptrace [../../modules_k/textops/api.h:63]: Failed to
import load_textops
0(21784) ERROR: siptrace [siptrace.c:314]: can't load textops api. Is
module textops loaded?
0(21784) ERROR: <core> [sr_module.c:875]: init_mod(): Error while
initializing module siptrace (/usr/lib/kamailio/modules_k/siptrace.so)
ERROR: error while initializing modules
0(21784) DEBUG: tm [t_funcs.c:122]: DEBUG: tm_shutdown : start
0(21784) DEBUG: tm [t_funcs.c:125]: DEBUG: tm_shutdown : emptying hash
table
[..]
I am running Kamailio 3.1.4.
Is this a bug in Kamailio or am I doing anything wrong in my approach
to use textops?
Kind regards,
Timo Klecker
**
**
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla --
http://www.asipto.com
Kamailio Advanced Training, Oct 10-13, Berlin:
http://asipto.com/u/kat
http://linkedin.com/in/miconda --
http://twitter.com/miconda