<div dir="ltr"><div><div><div><div>Hi Zaka<br></div>Thanks a lot.<br><br></div><div>I have commented loadmodule and modparams for dispatch module.<br><br></div>I see two different functions are being referred in kamailio.cfg file.<br><br></div>One function is  <b>ds_is_from_list</b> , and the code is as below<br><br><b><i>        if (!ds_is_from_list())<br>        {<br>                # Originating from Subscriber:<br>                route(Orig_Initial);<br>        }<br>        else<br>        {<br>                # Terminating to Subscriber:<br>                route(Term_Initial);<br>        }<br></i></b><br></div><div>So for this kind of code what I need to do<br></div><div>Shall I replace above code with <br></div><div><br><b><i>route(Term_Initial);</i><br></b><br></div>Please do let me know.<br><div><div><div><br></div><div>Thanks<br></div><div>Kamal<br></div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 28, 2014 at 4:39 PM, Zaka Ul Isam <span dir="ltr"><<a href="mailto:Zaka.Ul@albtelecom.al" target="_blank">Zaka.Ul@albtelecom.al</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Kamal:<br>
<br>
Remove the the line which loads the respective module "dispatcher.so" modparam blocks related to this module. I recon there is also a dispatcher.list (if so remove any reference to it in the cfg file)<br>
<br>
Cheers,<br>
<br>
Zaka<br>
<br>
________________________________________<br>
From: <a href="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@lists.sip-router.org</a> [<a href="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@lists.sip-router.org</a>] on behalf of Kamal Palei [<a href="mailto:palei.kamal@gmail.com">palei.kamal@gmail.com</a>]<br>
Sent: Tuesday, October 28, 2014 9:46 AM<br>
To: Kamailio (SER) - Users Mailing List<br>
Subject: Re: [SR-Users] Kamailio 4.2.0 - Error in default configuration<br>
<div><div class="h5"><br>
Hi Paul<br>
I am working towards setting up a local environment for IMS.<br>
<br>
I have taken a fresh 4.2.0 code.<br>
Built it locally in an Ubuntu 12.04 system.<br>
I have built all the modules as per below command.<br>
<br>
make group_include="standard standard-dep stable experimental" all<br>
<br>
As per given INSTALL file above command should build all the modules, looks it did not build all the modules.<br>
<br>
So I did (referred from INSTALL file)<br>
<br>
make include_modules="ims_usrloc_pcscf ims_registrar_pcscf dialog_ng xmlrpc" cfg<br>
make all<br>
make install<br>
<br>
Since currently I am setting up PCSCF, I copied kamailio.cfg from /usr//local/src/kamailio-4.2.0/examples/pcscf/ folder to my local folder that is /etc/kamailio/pcscf. Also I copied other required files as shown below.<br>
<br>
<br>
root@Kamal-E5430:/etc/kamailio/pcscf#<br>
root@Kamal-E5430:/etc/kamailio/pcscf# ll<br>
total 6124<br>
drwxr-xr-x 3 root root    4096 Oct 28 14:07 ./<br>
drwxr-xr-x 5 root root    4096 Oct 27 18:44 ../<br>
-rw-r--r-- 1 root root       0 Oct 28 14:02 dispatcher.list<br>
-rw-r--r-- 1 root root   31422 Oct 28 14:02 kamailio.cfg<br>
-rwxr-xr-x 1 root root 6210968 Oct 27 22:43 pcscf*<br>
-rw-r--r-- 1 root root    3289 Oct 28 13:59 pcscf.cfg<br>
-rw-r--r-- 1 root root     670 Oct 27 22:23 pcscf.xml<br>
drwxr-xr-x 3 root root    4096 Oct 27 22:23 sems/<br>
-rw-r--r-- 1 root root     397 Oct 27 22:23 tls.cfg<br>
root@Kamal-E5430:/etc/kamailio/pcscf#<br>
root@Kamal-E5430:/etc/kamailio/pcscf#<br>
<br>
<br>
So for me, the source of Kamailio.cfg file is  /usr//local/src/kamailio-4.2.0/examples/pcscf/ path.<br>
<br>
In this default kamailio.cfg file, dispatcher is emabled by default.<br>
<br>
I need to disable this, but do not know how to do it.<br>
<br>
Thanks<br>
Kamal<br>
<br>
<br>
</div></div><span class="">On Tue, Oct 28, 2014 at 2:01 PM, Paul Smith <<a href="mailto:paul.smith@claritytele.com">paul.smith@claritytele.com</a><mailto:<a href="mailto:paul.smith@claritytele.com">paul.smith@claritytele.com</a>>> wrote:<br>
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?<br>
<br>
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.<br>
<br>
I had assumed you had a working config and were trying to keep it working while also disabling WITH_ANTIFLOOD<br>
<br>
<br>
<br>
</span><span class="">On 28 Oct 2014, at 07:40, Kamal Palei <<a href="mailto:palei.kamal@gmail.com">palei.kamal@gmail.com</a><mailto:<a href="mailto:palei.kamal@gmail.com">palei.kamal@gmail.com</a>>> wrote:<br>
<br>
Thanks Paul.<br>
<br>
I will enable dispatcher module. Probably this is a mandatory module.<br>
<br>
I looked at dispatcher.list file.<br>
<br>
The content is something like below.<br>
<br>
# proxies<br>
</span>2 sip:<a href="http://127.0.0.1:5080" target="_blank">127.0.0.1:5080</a><<a href="http://127.0.0.1:5080/" target="_blank">http://127.0.0.1:5080/</a>><br>
2 sip:<a href="http://127.0.0.1:5082" target="_blank">127.0.0.1:5082</a><<a href="http://127.0.0.1:5082/" target="_blank">http://127.0.0.1:5082/</a>><br>
<br>
# gateways<br>
1 sip:<a href="http://127.0.0.1:7070" target="_blank">127.0.0.1:7070</a><<a href="http://127.0.0.1:7070/" target="_blank">http://127.0.0.1:7070/</a>><br>
1 sip:<a href="http://127.0.0.1:7072" target="_blank">127.0.0.1:7072</a><<a href="http://127.0.0.1:7072/" target="_blank">http://127.0.0.1:7072/</a>><br>
1 sip:<a href="http://127.0.0.1:7074" target="_blank">127.0.0.1:7074</a><<a href="http://127.0.0.1:7074/" target="_blank">http://127.0.0.1:7074/</a>><br>
<span class=""><br>
<br>
In my setup (its an experimental local setup), I do not have gateways . I have P-CSCF, I-CSCF and S-CSCF running in same machine (same IP with different listen port).<br>
<br>
So what entry I need to put in my dispatcher.list file.<br>
Or can I have an empty dispatcher.list file.<br>
<br>
Kindly clarify.<br>
<br>
Thanks<br>
Kamal<br>
<br>
</span><span class="">On Mon, Oct 27, 2014 at 11:29 PM, Paul Smith <<a href="mailto:paul.smith@claritytele.com">paul.smith@claritytele.com</a><mailto:<a href="mailto:paul.smith@claritytele.com">paul.smith@claritytele.com</a>>> wrote:<br>
Hi Kamal<br>
<br>
dispatcher module needs to be loaded in order to call ds_is_from_list(), or ds_select_dst().<br>
<br>
It looks like you have added the line 'loadmodule “dispatcher.so”’inside the conditional WITH_ANTIFLOOD block, so it never gets called after you have disabled that block.<br>
<br>
In short make sure that loadmodule and modparam lines for dispatcher module are called in your script and are not inside a ifdef block.<br>
<br>
<br>
</span><div><div class="h5">On 27 Oct 2014, at 17:50, Kamal Palei <<a href="mailto:palei.kamal@gmail.com">palei.kamal@gmail.com</a><mailto:<a href="mailto:palei.kamal@gmail.com">palei.kamal@gmail.com</a>>> wrote:<br>
<br>
Hi All<br>
I am in process of setting up of P-CSCF using Kamailio 4.2.0.<br>
<br>
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>
When I disable WITH_ANTIFLOOD, and try to execute I get below errors.<br>
<br>
Wherever ds_is_from_list is referred in Kamailio.cfg, I am getting error in those places.<br>
<br>
Can somebody pls suggest a work around when we disable macro  WITH_ANTIFLOOD<br>
<br>
<br>
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>
<br>
Thanks<br>
Kamal<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
</div></div><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><mailto:<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
<span class=""><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>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
</span><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><mailto:<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
<span class=""><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>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
</span><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><mailto:<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>><br>
<span class=""><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>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
</span><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><mailto:<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>
<br>
<br>
________________________________<br>
<br>
Albtelecom & Eagle Mobile ju ftojnë të mbrojmë së bashku Mjedisin. Lutemi të mos e printoni këtë komunikim elektronik nëse nuk është me të vërtetë i nevojshëm.<br>
<br>
Albtelecom & Eagle Mobile invite you to protect together the Environment. Please do not print this e-mail unless really necessary.<br>
<br>
________________________________<br>
<br>
This e-mail and any files transmitted with it are confidential and intended solely for the use of the addressee/s. If you are not the intended recipient you are hereby notified that any dissemination, forwarding, copying or use of any of the information is strictly prohibited. If you receive this e-mail in error, please notify the sender immediately and delete it! Albtelecom makes no warranty as to the accuracy or completeness of any information contained in this message and hereby excludes any liability of any kind for the information contained therein or for the information transmission, reception, storage or use of such in any way whatsoever. The opinions expressed in this message may belong to sender alone and may not necessarily reflect the opinions of Albtelecom. Albtelecom shall bear no liability for any loss or damage caused by software or e-mail viruses.<br>
<br>
Ky mesazh dhe çdo informacion i transmetuar në përmbajtje te këtij mesazhi është konfidencial dhe është i destinuar vetëm për marrësin e destinuar. Nëse nuk jeni marrësi i destinuar, Ju bëjmë me dije se çdo përhapje, transmetim, kopjim apo përdorim i çdo informacioni është i ndaluar. Nëse e merrni këtë mesazh gabimisht, ju lutem kontaktoni urgjentisht nisësin e tij dhe fshijeni atë. Albtelecom nuk jep asnjë garanci për saktësinë apo plotësinë e informacionit në përmbajtje të këtij mesazhi dhe nuk mban asnjë përgjegjësi për informacionin e përmbajtur, transmetimin, marrjen, ruajtjen apo përdorimin e tij në çfarëdolloj mënyre. Mendimet e shprehura në këtë mesazh mund t'i përkasin vetë nisësit dhe nuk mund të reflektojnë domosdoshmërisht qëndrimet e Albtelecom. Albtelecom nuk do të mbaje asnjë përgjegjësi për humbje ose dëme te shkaktuara nga programet apo viruset.<br>
<div class="HOEnZb"><div class="h5"><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>
</div></div></blockquote></div><br></div>