<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div apple-content-edited="true"><div>We may be approaching this from the wrong angle … Where did you get the kamailio.cfg file from?  Are you working from a tutorial or example file from somewhere?</div><div><br></div><div>If you do not need to load balance then you may not need dispatcher module at all and in that case your kamailio.cfg has no need to call ds_is_from_list() or ds_select_dst() functions.</div><div><br></div><div>I had assumed you had a working config and were trying to keep it working while also disabling WITH_ANTIFLOOD</div><div><br></div><br class="Apple-interchange-newline">
</div>
<br><div><div>On 28 Oct 2014, at 07:40, Kamal Palei <<a href="mailto:palei.kamal@gmail.com">palei.kamal@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div><div>Thanks Paul.<br><br></div>I will enable dispatcher module. Probably this is a mandatory module.<br><br></div><div>I looked at dispatcher.list file.<br><br></div><div>The content is something like below.<br><br><i><b># proxies<br>2 sip:<a href="http://127.0.0.1:5080/">127.0.0.1:5080</a><br>2 sip:<a href="http://127.0.0.1:5082/">127.0.0.1:5082</a><br><br># gateways<br>1 sip:<a href="http://127.0.0.1:7070/">127.0.0.1:7070</a><br>1 sip:<a href="http://127.0.0.1:7072/">127.0.0.1:7072</a><br>1 sip:<a href="http://127.0.0.1:7074/">127.0.0.1:7074</a><br></b></i><br></div><div><br></div><div>In my setup (its an experimental local setup), I do not have gateways . I have P-CSCF, I-CSCF and S-CSCF <b>running in same machine (</b>same IP with <b>different listen port)</b>.<br><br></div><div>So what entry I need to put in my dispatcher.list file.<br></div><div>Or can I have an empty dispatcher.list file.<br></div><div><br></div><div>Kindly clarify.<br></div><div><br></div>Thanks<br></div>Kamal<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 27, 2014 at 11:29 PM, Paul Smith <span dir="ltr"><<a href="mailto:paul.smith@claritytele.com" target="_blank">paul.smith@claritytele.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Kamal<div><br><div>
<div>dispatcher module needs to be loaded in order to call ds_is_from_list(), or ds_select_dst().</div><div><br></div><div>It looks like you have added the line '<span style="background-color:rgb(32,36,45)"><font color="#f5f5f5" face="Espresso Mono"><span style="font-size:11px">loadmodule “dispatcher.so”</span></font></span><font color="#f5f5f5" face="Espresso Mono"><span style="font-size:11px">’</span></font>inside the conditional WITH_ANTIFLOOD block, so it never gets called after you have disabled that block.</div><div><br></div><div>In short make sure that loadmodule and modparam lines for dispatcher module are called in your script and are not inside a ifdef block.</div><br>
</div>
<br><div><div><div class="h5"><div>On 27 Oct 2014, at 17:50, Kamal Palei <<a href="mailto:palei.kamal@gmail.com" target="_blank">palei.kamal@gmail.com</a>> wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5"><div dir="ltr"><div><div><div><div><div>Hi All<br></div>I am in process of setting up of P-CSCF using Kamailio 4.2.0.<br><br></div>I wanted to disable WITH_ANTIFLOOD (as I am not sure what shall be the content of dispatcher.list file for me, as it is juts a local setup). <br><br></div>When I disable WITH_ANTIFLOOD, and try to execute I get below errors.<br><br></div>Wherever <b>ds_is_from_list</b> is referred in Kamailio.cfg, I am getting error in those places.<br><br></div>Can somebody pls suggest a work around when we disable macro  WITH_ANTIFLOOD<div><div><br><br><i><b>root@Kamal-E5430:/etc/kamailio/pcscf# kamailio -f kamailio.cfg -E<br>loading modules under config path: /usr/local/lib64/kamailio/modules/<br> 0(25255) ERROR: <core> [cfg.y:3299]: yyparse(): cfg. parser: failed to find command ds_is_from_list (params 0)<br> 0(25255) : <core> [cfg.y:3439]: yyerror_at(): parse error in config file /etc/kamailio/pcscf/kamailio.cfg, line 486, column 23: unknown command, missing loadmodule?<br><br> 0(25255) ERROR: <core> [cfg.y:3299]: yyparse(): cfg. parser: failed to find command ds_is_from_list (params 0)<br> 0(25255) : <core> [cfg.y:3439]: yyerror_at(): parse error in config file /etc/kamailio/pcscf/kamailio.cfg, line 658, column 45: unknown command, missing loadmodule?<br><br> 0(25255) ERROR: <core> [cfg.y:3299]: yyparse(): cfg. parser: failed to find command ds_is_from_list (params 0)<br> 0(25255) : <core> [cfg.y:3439]: yyerror_at(): parse error in config file /etc/kamailio/pcscf/kamailio.cfg, line 672, column 23: unknown command, missing loadmodule?<br><br> 0(25255) ERROR: <core> [cfg.y:3299]: yyparse(): cfg. parser: failed to find command ds_is_from_list (params 0)<br> 0(25255) : <core> [cfg.y:3439]: yyerror_at(): parse error in config file /etc/kamailio/pcscf/kamailio.cfg, line 706, column 37: unknown command, missing loadmodule?<br><br> 0(25255) ERROR: <core> [cfg.y:3299]: yyparse(): cfg. parser: failed to find command ds_select_dst (params 2)<br> 0(25255) : <core> [cfg.y:3439]: yyerror_at(): parse error in config file /etc/kamailio/pcscf/kamailio.cfg, line 846, column 29: unknown command, missing loadmodule?<br><br> 0(25255) ERROR: <core> [cfg.y:3299]: yyparse(): cfg. parser: failed to find command ds_select_dst (params 2)<br> 0(25255) : <core> [cfg.y:3439]: yyerror_at(): parse error in config file /etc/kamailio/pcscf/kamailio.cfg, line 993, column 29: unknown command, missing loadmodule?<br><br>ERROR: bad config file (6 errors)<br></b></i><br></div><div>Thanks<br></div><div>Kamal<br></div></div></div></div></div>
_______________________________________________<br>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br><a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br></blockquote></div><br></div></div><br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>
_______________________________________________<br>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br></blockquote></div><br></body></html>