Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to resolve these mod_param errors in Kamailio 5.3.1? More info below: #2355

Closed
MaabSaleeem opened this issue Jun 11, 2020 · 4 comments
Closed

Comments

@MaabSaleeem
Copy link

This is the error I get when I run ./kamailio -f /etc/kamailio/kamailio.cfg -E


loading modules under config path: /usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/:/usr/lib/kamailio/modules_k/:/usr/lib/kamailio/modules/
0(28369) ERROR: [core/modparam.c:140]: set_mod_param_regex(): parameter <dst_avp> of type <1> not found in module
0(28369) CRITICAL: [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 378, column 61: Can't set module parameter
0(28369) ERROR: [core/modparam.c:140]: set_mod_param_regex(): parameter <grp_avp> of type <1> not found in module
0(28369) CRITICAL: [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 379, column 61: Can't set module parameter
0(28369) ERROR: [core/modparam.c:140]: set_mod_param_regex(): parameter <cnt_avp> of type <1> not found in module
0(28369) CRITICAL: [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 380, column 61: Can't set module parameter
0(28369) ERROR: [core/modparam.c:140]: set_mod_param_regex(): parameter <sock_avp> of type <1> not found in module
0(28369) CRITICAL: [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 381, column 63: Can't set module parameter
ERROR: bad config file (4 errors)


These are the lines 378-381 from the config file

modparam("dispatcher", "dst_avp", "$avp(DISPATCHER_DST_AVP)")
modparam("dispatcher", "grp_avp", "$avp(DISPATCHER_GRP_AVP)")
modparam("dispatcher", "cnt_avp", "$avp(DISPATCHER_CNT_AVP)")
modparam("dispatcher", "sock_avp", "$avp(DISPATCHER_SOCK_AVP)")

@kamailio-sync
Copy link

kamailio-sync commented Jun 11, 2020 via email

@MaabSaleeem
Copy link
Author

Thank you for responding. I have found one of the new avp, but can't find the other three: grp_avp, cnt_avp, and sock_avp

Take a look at the new param: https://kamailio.org/docs/modules/5.3.x/modules/dispatcher.html#dispatcher.p.xavp_dst Up to version 5.2, regular AVPs were used, but starting with version 5.3 the regular AVPs were replaced by an XAVP. Regards, Ovidiu Sas
On Thu, Jun 11, 2020 at 04:48 MaabSaleeem @.> wrote: This is the error I get when I run ./kamailio -f /etc/kamailio/kamailio.cfg -E ------------------------------ loading modules under config path: /usr/lib64/kamailio/modules_k/:/usr/lib64/kamailio/modules/:/usr/lib/kamailio/modules_k/:/usr/lib/kamailio/modules/ 0(28369) ERROR: [core/modparam.c:140]: set_mod_param_regex(): parameter <dst_avp> of type <1> not found in module 0(28369) CRITICAL: [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 378, column 61: Can't set module parameter 0(28369) ERROR: [core/modparam.c:140]: set_mod_param_regex(): parameter <grp_avp> of type <1> not found in module 0(28369) CRITICAL: [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 379, column 61: Can't set module parameter 0(28369) ERROR: [core/modparam.c:140]: set_mod_param_regex(): parameter <cnt_avp> of type <1> not found in module 0(28369) CRITICAL: [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 380, column 61: Can't set module parameter 0(28369) ERROR: [core/modparam.c:140]: set_mod_param_regex(): parameter <sock_avp> of type <1> not found in module 0(28369) CRITICAL: [core/cfg.y:3539]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 381, column 63: Can't set module parameter ERROR: bad config file (4 errors) ------------------------------ These are the lines 378-381 from the config file modparam("dispatcher", "dst_avp", "$avp(DISPATCHER_DST_AVP)") modparam("dispatcher", "grp_avp", "$avp(DISPATCHER_GRP_AVP)") modparam("dispatcher", "cnt_avp", "$avp(DISPATCHER_CNT_AVP)") modparam("dispatcher", "sock_avp", "$avp(DISPATCHER_SOCK_AVP)") — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#2355>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABO7UZLSQCFE3VOERWK3PRTRWCKTZANCNFSM4N3GNQYA . _______________________________________________ Kamailio (SER) - Development Mailing List @. https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
-- VoIP Embedded, Inc. http://www.voipembedded.com

@MaabSaleeem
Copy link
Author

MaabSaleeem commented Jun 11, 2020

@linuxmaniac Please reopen. I still can't find the other 3 params.

@linuxmaniac
Copy link
Member

This is a question for sr-users@lists.kamailio.org, not being related to a bug in kamailio code, but how to use and configure kamailio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants