Are there any up to date build instructions for kazoo-kamailio?

562 views
Skip to first unread message

Alan Evans

unread,
Jun 15, 2015, 5:08:23 PM6/15/15
to 2600h...@googlegroups.com
Hello 2600devs,

I'm trying to build the latest kamailio from source using the code in
github https://github.com/2600hz/kazoo-kamailio/tree/4.0
and the instructions here:
https://2600hz.atlassian.net/wiki/display/Dedicated/Step+7a+-+Install+Kamailio

It seems that I end up with a kamailio module called db_kazoo.so but the
latest kazoo-configs refer to a module called kazoo.so (no 'db_' in the
name)

Do I just need to rename the module or am I missing something more
fundamental?

Many thanks

Regards
--
Alan R Evans
KAGE Systems Ltd

Alan Evans

unread,
Jun 16, 2015, 7:33:22 AM6/16/15
to 2600h...@googlegroups.com
On closer inspection I see that kazoo is now a module in Kamailio:


 so I assume kazoo-kamailio  is no longer used/maintained.

Alan Evans

unread,
Jun 16, 2015, 7:58:54 AM6/16/15
to 2600h...@googlegroups.com

On 16/06/2015 09:10:AM, Alan Evans wrote:
> so I assume kazoo-kamailio is no longer used/maintained.

Hmm, not so fast:

If I use the kamailio git repo it builds a kazoo.so [1], hurray.
However kamailio won't run with the configuration from kazoo-configs [2]

So it looks like there are kazoo specific changes to kamailio missing?
I would be grateful for any pointers on how to proceed


[1]
git clone git://git.sip-router.org/kamailio kamailio
cd kamailio/
git checkout -b 4.2 origin/4.2
make cfg prefix=/opt/kamailio
edit modules.lst ## (remove kazoo from excluded modules)
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig make all ## (PKG_CONFIG_PATH
points to location of json-c.pc and rabbitmq.pc)
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig make install

[2]
/opt/kamailio/sbin/kamailio -f /etc/kazoo/kamailio/kamailio.cfg -L
/opt/kamailio/lib64/kamailio/modules/ -c
0(23138) INFO: <core> [ppcfg.c:80]: pp_subst_add(): ### added subst
expression: !MY_HOSTNAME!kazoov3-20.kagesys.com!g
0(23138) INFO: <core> [ppcfg.c:80]: pp_subst_add(): ### added subst
expression: !MY_IP_ADDRESS!10.0.1.162!g
0(23138) INFO: <core> [ppcfg.c:80]: pp_subst_add(): ### added subst
expression: !MY_AMQP_URL!kazoo://guest:gu...@127.0.0.1:5672!g
0(23138) INFO: <core> [ppcfg.c:80]: pp_subst_add(): ### added subst
expression: !MY_WEBSOCKET_DOMAIN!2600hz.com!g
0(23138) INFO: <core> [ppcfg.c:80]: pp_subst_add(): ### added subst
expression: !UDP_SIP!udp:10.0.1.162:5060!g
0(23138) INFO: <core> [ppcfg.c:80]: pp_subst_add(): ### added subst
expression: !TCP_SIP!tcp:10.0.1.162:5060!g
0(23138) INFO: <core> [ppcfg.c:80]: pp_subst_add(): ### added subst
expression: !TLS_SIP!tls:10.0.1.162:5061!g
0(23138) INFO: <core> [ppcfg.c:80]: pp_subst_add(): ### added subst
expression: !UDP_ALG_SIP!udp:10.0.1.162:7000!g
0(23138) INFO: <core> [ppcfg.c:80]: pp_subst_add(): ### added subst
expression: !TCP_ALG_SIP!tcp:10.0.1.162:7000!g
0(23138) INFO: <core> [ppcfg.c:80]: pp_subst_add(): ### added subst
expression: !TLS_ALG_SIP!tls:10.0.1.162:7001!g
0(23138) INFO: <core> [ppcfg.c:80]: pp_subst_add(): ### added subst
expression: !TCP_WS!tcp:10.0.1.162:8080!g
0(23138) INFO: <core> [ppcfg.c:80]: pp_subst_add(): ### added subst
expression: !UDP_WS_SIP!udp:10.0.1.162:8080!g
0(23138) INFO: <core> [ppcfg.c:80]: pp_subst_add(): ### added subst
expression: !TLS_WSS!tls:10.0.1.162:8443!g
0(23138) INFO: <core> [ppcfg.c:80]: pp_subst_add(): ### added subst
expression: !UDP_WSS_SIP!udp:10.0.1.162:8443!g
loading modules under command line path:
/opt/kamailio/lib64/kamailio/modules/
0(23138) ERROR: <core> [modparam.c:155]: set_mod_param_regex():
parameter <emptystring> of type <2> not found in module <db_text>
0(23138) : <core> [cfg.y:3426]: yyerror_at(): parse error in config
file /etc/kazoo/kamailio/default.cfg, line 154, column 37: Can't set
module parameter
0(23138) ERROR: <core> [modparam.c:155]: set_mod_param_regex():
parameter <reg_on_match_flag> of type <2> not found in module <registrar>
0(23138) : <core> [cfg.y:3426]: yyerror_at(): parse error in config
file /etc/kazoo/kamailio/registrar-role.cfg, line 42, column 45: Can't
set module parameter
0(23138) ERROR: <core> [cfg.y:3286]: yyparse(): cfg. parser: failed to
find command registered (params 3)
0(23138) : <core> [cfg.y:3426]: yyerror_at(): parse error in config
file /etc/kazoo/kamailio/registrar-role.cfg, line 79, column 78: unknown
command, missing loadmodule?
......



kirill.sysoev

unread,
Jun 16, 2015, 8:03:41 AM6/16/15
to 2600h...@googlegroups.com
Hi Alan

Here is a great talk given by Luis at KamailioWorld 2015


It feels that watching it could help you a bit. 

Best regards,
Kirill

вторник, 16 июня 2015 г., 0:08:23 UTC+3 пользователь Alan Evans написал:

Alan Evans

unread,
Jun 16, 2015, 9:23:00 AM6/16/15
to 2600h...@googlegroups.com
Thanks Kirill

There are a number of kazoo related branches in the kamailio repo.
Hopefully Luis will chime in and say which one I should be using.


[root@kazoov3-20 kamailio]# git branch -a | grep "kazoo\|lazedo"
  remotes/origin/kazoo_json
  remotes/origin/kazoo_patch
  remotes/origin/lazedo-patch-1
  remotes/origin/lazedo-presence-patch-1
  remotes/origin/lazedo-presence_dialoginfo-patch1
  remotes/origin/lazedo/4.2
  remotes/origin/lazedo/4.2.1
  remotes/origin/lazedo/dbtext
  remotes/origin/lazedo/nathelper
  remotes/origin/lazedo/presence
  remotes/origin/lazedo/presence-min-expires
  remotes/origin/lazedo/presence-subs
  remotes/origin/lazedo/presence-uri-match
  remotes/origin/lazedo/presence-uri-match2
  remotes/origin/lazedo/registrar
  remotes/origin/lazedo/registrar-lookup
  remotes/origin/lazedo/registrar-registered
  remotes/origin/lazedo/sip-uri-match-4
  remotes/origin/lazedo/userloc-delete-attrs
  remotes/origin/lazedo/usrloc-patch
[root@kazoov3-20 kamailio]#

Regards
-- 
Alan R Evans
KAGE Systems Ltd
Tel: +44 7891 773415
--
You received this message because you are subscribed to the Google Groups "2600hz-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

James Aimonetti

unread,
Jun 16, 2015, 1:43:29 PM6/16/15
to 2600h...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

I used:

sudo make include_modules="kazoo presence presence_dialoginfo
presence_mwi presence_xml" install

the last time i built from scratch. There may have been other steps
but I think this was the main thing I did to build it.

For personal testing, so not sure if there's more effective ways to go
about it. YMMV

Le 06/16/2015 06:22 AM, Alan Evans a écrit :
> Thanks Kirill
>
> There are a number of kazoo related branches in the kamailio repo.
> Hopefully Luis will chime in and say which one I should be using.
>
>
> [root@kazoov3-20 kamailio]# git branch -a | grep "kazoo\|lazedo"
> remotes/origin/kazoo_json remotes/origin/kazoo_patch
> remotes/origin/lazedo-patch-1
> remotes/origin/lazedo-presence-patch-1
> remotes/origin/lazedo-presence_dialoginfo-patch1
> remotes/origin/lazedo/4.2 remotes/origin/lazedo/4.2.1
> remotes/origin/lazedo/dbtext remotes/origin/lazedo/nathelper
> remotes/origin/lazedo/presence
> remotes/origin/lazedo/presence-min-expires
> remotes/origin/lazedo/presence-subs
> remotes/origin/lazedo/presence-uri-match
> remotes/origin/lazedo/presence-uri-match2
> remotes/origin/lazedo/registrar
> remotes/origin/lazedo/registrar-lookup
> remotes/origin/lazedo/registrar-registered
> remotes/origin/lazedo/sip-uri-match-4
> remotes/origin/lazedo/userloc-delete-attrs
> remotes/origin/lazedo/usrloc-patch [root@kazoov3-20 kamailio]#
>
> Regards


- --
James Aimonetti
Lead Systems Architect / Impressionable Scallywag
"I thought I fixed that"

2600Hz | http://2600hz.com
sip:ja...@2600hz.com
tel:415.886.7905
irc:mc_ @ freenode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJVgGA+AAoJENTKa+JPXCVgzAsH/R4ErsjfHaevrHVuhlDXjya4
6kgjRjKUbCMupZNMhecvojDxhK38meBotAkYzPBCBobtGGV5XPwjVg4M/OO0KEOq
mgvfNbwHxNyblOoKC++xgXlXdqAue8JYA1z7E/8Vpo1+8yCKso5VK4vg9VZ18rWN
qZmMnVixkg5YBScSeLzNMHndoI5iyRuiClz6rEggAlKrjx+Vk3lA/mhKd4qKNKI6
fAFSoxh9lNNn15KWZMYQm/bvTYNDBUO4ogtovrsFoGAF+f4ieCm9ntGE2SZ12u6J
WrkoCA5el9zF7jUMj+zvKHBmr09B1hZhrDa59eKo4BFTX4WM8JyX2EaNAWLO+m0=
=WNeJ
-----END PGP SIGNATURE-----

Alan Evans

unread,
Jun 16, 2015, 3:00:55 PM6/16/15
to 2600h...@googlegroups.com
Thanks James,

My problem at the moment is that I don't know which branch I should be
using.

Now that kazoo module has been submitted back into Kamailio; I think I
should be using git://git.sip-router.org/kamailio.git and no longer use
https://github.com/2600hz/kazoo-kamailio.git
but I don't know which branch to use.

Regards
--
Alan R Evans
KAGE Systems Ltd
Tel: +44 7891 773415

Luis Azedo

unread,
Jun 16, 2015, 3:18:24 PM6/16/15
to 2600h...@googlegroups.com
use master , 4.2 , 4.3

Alan Evans

unread,
Jun 16, 2015, 4:01:43 PM6/16/15
to 2600h...@googlegroups.com
Hi Luis,

Many thanks for responding.

I tried the 4.2 branch from the kamailio repo [1]
but it doesn't seem to be compatible with the  Kamailio configuration files [2]

For example the db_text module no longer  understands  emptystring.

Regards
-- 
Alan R Evans
KAGE Systems Ltd

Luis Azedo

unread,
Jun 16, 2015, 4:56:32 PM6/16/15
to 2600h...@googlegroups.com
"no longer" should be "doesn't yet".

we added some patches after 4.2 that we included in our distribution and are part of master / 4.3

Alan Evans

unread,
Jun 16, 2015, 7:59:18 PM6/16/15
to 2600h...@googlegroups.com
Thanks Luis,

I will try 4.3.
I was running kazoo-kamailio-4.2.3-16.el6.x86_64.rpm which is why I chose the 4.2 branch.

Regards
-- 
Alan R Evans
KAGE Systems Ltd
Tel: +44 7891 773415

Alan Evans

unread,
Jun 18, 2015, 7:12:11 AM6/18/15
to 2600h...@googlegroups.com
Hi Luis,

I have now tried both master & 4.3, neither are passing the kazoo config test:

 /opt/kamailio/sbin/kamailio -f /etc/kazoo/kamailio/kamailio.cfg -L /opt/kamailio/lib64/kamailio/modules/ -c                                 


 0(26495) ERROR: <core> [modparam.c:139]: set_mod_param_regex(): parameter <ds_probing_threshhold> of type <2> not found in module <dispatcher>
 0(26495) : <core> [cfg.y:3435]: yyerror_at(): parse error in config file /etc/kazoo/kamailio/dispatcher-role.cfg, line 18, column 50: Can't set module parameter

 0(26495) ERROR: <core> [modparam.c:139]: set_mod_param_regex(): parameter <reg_on_match_flag> of type <2> not found in module <registrar>
 0(26495) : <core> [cfg.y:3435]: yyerror_at(): parse error in config file /etc/kazoo/kamailio/registrar-role.cfg, line 42, column 45: Can't set module parameter

 
The 1st error is a simple typo ds_probing_threshhold should be ds_probing_threshold.

However I'm not sure what to do about the 2nd error regarding reg_on_match_flag

Regards
Alan

Alan Evans

unread,
Jun 18, 2015, 3:37:55 PM6/18/15
to 2600h...@googlegroups.com

On 18/06/2015 10:13:AM, Alan Evans wrote:
> Hi Luis,
>
> I have now tried both master & 4.3, neither are passing the kazoo
> config test:
>
> /opt/kamailio/sbin/kamailio -f /etc/kazoo/kamailio/kamailio.cfg -L
> /opt/kamailio/lib64/kamailio/modules/ -c
>
>
> 0(26495) ERROR: <core> [modparam.c:139]: set_mod_param_regex():
> parameter <ds_probing_threshhold> of type <2> not found in module
> <dispatcher>
> 0(26495) : <core> [cfg.y:3435]: yyerror_at(): parse error in config
> file /etc/kazoo/kamailio/dispatcher-role.cfg, line 18, column 50:
> Can't set module parameter
>
> 0(26495) ERROR: <core> [modparam.c:139]: set_mod_param_regex():
> parameter <reg_on_match_flag> of type <2> not found in module <registrar>
> 0(26495) : <core> [cfg.y:3435]: yyerror_at(): parse error in config
> file /etc/kazoo/kamailio/registrar-role.cfg, line 42, column 45: Can't
> set module parameter
>
> The 1st error is a simple typo ds_probing_threshhold should be
> ds_probing_threshold.
>
> However I'm not sure what to do about the 2nd error regarding
> reg_on_match_flag
>
> Regards
> Alan
> --

Hi Luis,

FYI, I copied the source for the registrar module from
'remotes/origin/lazedo/registrar-lookup' into '4.3' and rebuilt the module.
This fixed the reg_on_match_flag error and I now have what appears to be
a working kamailio built from source.
Obviously this is a workaround and not a solution.

Regards
Alan

Reply all
Reply to author
Forward
0 new messages