Hi Paul
I am working towards setting up a local environment for IMS.
I have taken a fresh 4.2.0 code.
Built it locally in an Ubuntu 12.04 system.
I have built all the modules as per below command.
*make group_include="standard standard-dep stable experimental" all*
As per given INSTALL file above command should build all the modules, looks
it did not build all the modules.
So I did (referred from INSTALL file)
*make include_modules="ims_usrloc_pcscf ims_registrar_pcscf dialog_ng
xmlrpc" cfg make all make install *
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.
*root@Kamal-E5430:/etc/kamailio/pcscf#
root@Kamal-E5430:/etc/kamailio/pcscf# lltotal 6124drwxr-xr-x 3 root root
4096 Oct 28 14:07 ./drwxr-xr-x 5 root root 4096 Oct 27 18:44
../-rw-r--r-- 1 root root 0 Oct 28 14:02 dispatcher.list-rw-r--r-- 1
root root 31422 Oct 28 14:02 kamailio.cfg-rwxr-xr-x 1 root root 6210968
Oct 27 22:43 pcscf*-rw-r--r-- 1 root root 3289 Oct 28 13:59
pcscf.cfg-rw-r--r-- 1 root root 670 Oct 27 22:23 pcscf.xmldrwxr-xr-x 3
root root 4096 Oct 27 22:23 sems/-rw-r--r-- 1 root root 397 Oct 27
22:23 tls.cfgroot@Kamal-E5430:/etc/kamailio/pcscf#
root@Kamal-E5430:/etc/kamailio/pcscf# *
So for me, the source of Kamailio.cfg file is
/usr//local/src/kamailio-4.2.0/examples/pcscf/ path.
*In this default kamailio.cfg file, dispatcher is emabled by default.*
*I need to disable this, but do not know how to do it.*
*Thanks*
*Kamal*
On Tue, Oct 28, 2014 at 2:01 PM, Paul Smith <paul.smith(a)claritytele.com>
wrote:
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?
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.
I had assumed you had a working config and were trying to keep it working
while also disabling WITH_ANTIFLOOD
On 28 Oct 2014, at 07:40, Kamal Palei <palei.kamal(a)gmail.com> wrote:
Thanks Paul.
I will enable dispatcher module. Probably this is a mandatory module.
I looked at dispatcher.list file.
The content is something like below.
*# proxies2 sip:127.0.0.1:5080 <http://127.0.0.1:5080/>2
sip:127.0.0.1:5082 <http://127.0.0.1:5082/># gateways1 sip:127.0.0.1:7070
<http://127.0.0.1:7070/>1 sip:127.0.0.1:7072 <http://127.0.0.1:7072/>1
sip:127.0.0.1:7074 <http://127.0.0.1:7074/>*
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)*.
So what entry I need to put in my dispatcher.list file.
Or can I have an empty dispatcher.list file.
Kindly clarify.
Thanks
Kamal
On Mon, Oct 27, 2014 at 11:29 PM, Paul Smith <paul.smith(a)claritytele.com>
wrote:
Hi Kamal
dispatcher module needs to be loaded in order to call ds_is_from_list(),
or ds_select_dst().
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.
In short make sure that loadmodule and modparam lines for dispatcher
module are called in your script and are not inside a ifdef block.
On 27 Oct 2014, at 17:50, Kamal Palei <palei.kamal(a)gmail.com> wrote:
Hi All
I am in process of setting up of P-CSCF using Kamailio 4.2.0.
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).
When I disable WITH_ANTIFLOOD, and try to execute I get below errors.
Wherever *ds_is_from_list* is referred in Kamailio.cfg, I am getting
error in those places.
Can somebody pls suggest a work around when we disable macro
WITH_ANTIFLOOD
*root@Kamal-E5430:/etc/kamailio/pcscf# kamailio -f kamailio.cfg -Eloading
modules under config path: /usr/local/lib64/kamailio/modules/ 0(25255)
ERROR: <core> [cfg.y:3299]: yyparse(): cfg. parser: failed to find command
ds_is_from_list (params 0) 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? 0(25255) ERROR: <core>
[cfg.y:3299]: yyparse(): cfg. parser: failed to find command
ds_is_from_list (params 0) 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? 0(25255) ERROR: <core>
[cfg.y:3299]: yyparse(): cfg. parser: failed to find command
ds_is_from_list (params 0) 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? 0(25255) ERROR: <core>
[cfg.y:3299]: yyparse(): cfg. parser: failed to find command
ds_is_from_list (params 0) 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? 0(25255) ERROR: <core>
[cfg.y:3299]: yyparse(): cfg. parser: failed to find command ds_select_dst
(params 2) 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? 0(25255) ERROR: <core> [cfg.y:3299]:
yyparse(): cfg. parser: failed to find command ds_select_dst (params
2) 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?ERROR: bad config file (6 errors)*
Thanks
Kamal
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users