[SR-Users] Problem using textops API

Timo Klecker klecker at decoit.de
Thu Jul 28 12:46:40 CEST 2011


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 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20110728/e7bb374e/attachment.htm>


More information about the sr-users mailing list