Hello,

how did you get the rpm packages for kamailio? From opensuse build service servers?

The error is due to a failure of a openssl function. That could be because of different versions used to build the rpms and those installed currently, although it should have been a dependency constraint.

Cheers,
Daniel

On 7/13/13 12:04 AM, Slava Bendersky wrote:
Hello Everyone,
TLS module failing to load on Fedora 18 x86_64.


[root@casipgw01 kamailio]# rpm -qa | grep openssl
openssl-libs-1.0.1e-4.fc18.x86_64
openssl-1.0.1e-4.fc18.x86_64
openssl-devel-1.0.1e-4.fc18.x86_64

[root@casipgw01 kamailio]# rpm -qa | grep kamailio
kamailio-tls-4.0.2-1.1.x86_64
kamailio-outbound-4.0.2-1.1.x86_64
kamailio-4.0.2-1.1.x86_64
kamailio-ldap-4.0.2-1.1.x86_64


 0(10817) DEBUG: <core> [cfg.y:1791]: yyparse(): loading module tls.so
 0(10817) DEBUG: <core> [sr_module.c:564]: load_module(): load_module: trying to load </usr/lib64/kamailio/modules/tls.so>
 0(10817) DEBUG: <core> [mem/q_malloc.c:202]: qm_malloc_init(): qm_malloc_init: QM_OPTIMIZE=16384, /ROUNDTO=1024
 0(10817) DEBUG: <core> [mem/q_malloc.c:204]: qm_malloc_init(): qm_malloc_init: QM_HASH_SIZE=1075, qm_block size=43048
 0(10817) DEBUG: <core> [mem/q_malloc.c:205]: qm_malloc_init(): qm_malloc_init(0x7f2f21d56000, 33554432), start=0x7f2f21d56000
 0(10817) DEBUG: <core> [mem/q_malloc.c:213]: qm_malloc_init(): qm_malloc_init: size= 33554432, init_overhead=43088
 0(10817) DEBUG: <core> [mem/shm_mem.c:203]: shm_mem_init_mallocs(): shm_mem_init: success
 0(10817) ERROR: tls [tls_init.c:471]: tls_pre_init(): Unable to set the memory allocation functions
 0(10817) ERROR: <core> [sr_module.c:600]: load_module(): ERROR: load_module: /usr/lib64/kamailio/modules/tls.so: mod_register failed
 0(10817) : <core> [cfg.y:3567]: yyerror_at(): parse error in config file //etc/kamailio/kamailio.cfg, line 154, column 12-19: failed to load module


Any help thank you in advance.


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda