Last update,
With the correct Perl package for Rhel 7, now my kamailio installation has complete with
success.
And the module app_perl initialization error below goes away.
So that I can close this topic.
Cordialement
Patrick GINHOUX
De : Ginhoux, Patrick
Envoyé : vendredi 17 mars 2017 07:40
À : SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List
<sr-users(a)lists.sip-router.org>
Objet : RE: [SR-Users] Error on <ds_probing_threshhold> of type <2> not found
in module <dispatcher> and SCTP API Not initialized
Thanks Federico for this answer,
I see that in my .cfg there was a double ‘h’ in the name, while now there is only one (I
need probably new glasses ☺ ).
Now it is fixed but now I got an error with the PERL mdule I’m trying to get for Rhel 7:
Mar 16 13:46:38 vm-vse02-siprouter1 /usr/sbin/kamailio[6767]: INFO: app_perl
[app_perl_mod.c:219]: parser_init(): setting lib path:
'/usr/lib64/kamailio/modules/'
Mar 16 13:46:38 vm-vse02-siprouter1 /usr/sbin/kamailio[6767]: ERROR: app_perl
[app_perl_mod.c:241]: parser_init(): failed to load perl file
"/etc/kamailio/snmptrap.pl" with code 2.
Mar 16 13:46:38 vm-vse02-siprouter1 /usr/sbin/kamailio[6767]: ERROR: <core>
[core/sr_module.c:968]: init_mod(): Error while initializing module app_perl
(/usr/lib64/kamailio/modules/app_perl.so)
I opened another topic related to the rpm package for PERL module that is not available
for Rhel 7 (see thread “Search for kamailio PERL module for 5.0 level”).
Because I’m a newbie in this domain, I don’t have the experience to build a rpm package.
Then one of my colleague helps me to build it. But because of this error, there is maybe
something missing in the PERL installation on my server.
I’m doing some research.
If you have some ideas…
Cordialement
Patrick GINHOUX
De : sr-users [mailto:sr-users-bounces@lists.sip-router.org] De la part de Federico
Cabiddu
Envoyé : jeudi 16 mars 2017 13:41
À : SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List
<sr-users@lists.sip-router.org<mailto:sr-users@lists.sip-router.org>>
Objet : Re: [SR-Users] Error on <ds_probing_threshhold> of type <2> not found
in module <dispatcher> and SCTP API Not initialized
Hi,
param name has changed some versions ago:
http://www.kamailio.org/docs/modules/devel/modules/dispatcher.html#dispatch…
Cheers,
Federico
On 16 Mar 2017 13:35, "Ginhoux, Patrick"
<patrick.ginhoux@fr.unisys.com<mailto:patrick.ginhoux@fr.unisys.com>> wrote:
Hi,
I’m migrating my kamailio.cfg from the 3.3.1 release to 5.0.0 and encounter the following
errors :
Mar 16 12:56:45 vm-vse02-siprouter1 systemd[1]: Starting SYSV: Kamailio is a fast,
reliable and flexible SIP Server....
Mar 16 12:56:45 vm-vse02-siprouter1 kamailio[6644]: Not starting : invalid configuration
file!
Mar 16 12:56:45 vm-vse02-siprouter1 kamailio[6644]: 0(6652) ERROR: <core>
[core/modparam.c:141]: set_mod_param_regex(): parameter <ds_probing_threshhold> of
type <2> not found in module <dispatcher>
Mar 16 12:56:45 vm-vse02-siprouter1 kamailio[6644]: 0(6652) CRITICAL: <core>
[core/cfg.y:3404]: yyerror_at(): parse error in config file //etc/kamailio/kamailio.cfg,
line 295, column 49: Can't set module parameter
Mar 16 12:56:45 vm-vse02-siprouter1 kamailio[6644]: 0(6652) WARNING: <core>
[core/cfg.y:3378]: warn_at(): warning in config file //etc/kamailio/kamailio.cfg, line
971, column 6-13: constant value in if(...)
Mar 16 12:56:45 vm-vse02-siprouter1 kamailio[6644]: ERROR: bad config file (1 errors)
Mar 16 12:56:45 vm-vse02-siprouter1 kamailio[6644]: 0(6652) INFO: <core>
[core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
Mar 16 12:56:45 vm-vse02-siprouter1 systemd[1]: kamailio.service: control process exited,
code=exited status=1
Mar 16 12:56:45 vm-vse02-siprouter1 systemd[1]: Failed to start SYSV: Kamailio is a fast,
reliable and flexible SIP Server..
Mar 16 12:56:45 vm-vse02-siprouter1 systemd[1]: Unit kamailio.service entered failed
state.
Below the extract of my kamailio.cfg file :
modparam("dispatcher", "list_file", DISPATCHER_FILE)
modparam("dispatcher", "ds_probing_mode", 1)
modparam("dispatcher", "ds_probing_threshhold",3)
modparam("dispatcher", "flags", 2)
modparam("dispatcher", "attrs_avp", "$avp(dsattrs)")
modparam("dispatcher", "dst_avp", "$avp(dsdst)")
modparam("dispatcher", "grp_avp", "$avp(dsgrp)")
modparam("dispatcher", "cnt_avp", "$avp(dscnt)")
modparam("dispatcher", "ds_hash_size", 8)
modparam("dispatcher", "ds_ping_interval", 10)
modparam("dispatcher", "force_dst", 1)
For the dispatcher error :
I don’t find any change (eg in the Changelog for 5.0.0.) regarding the dispatcher
module.
So is it a bug in the dispatcher module or have I to change it to something else ?
For the SCTP API error :
I don’t know what to do here.
Thanks to people that can help me on these 2 errors
Cordialement
Patrick GINHOUX
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org<mailto:sr-users@lists.sip-router.org>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users