[SR-Users] Kamailio Presence module

Gary Shergill gashergill at googlemail.com
Thu Sep 13 15:48:08 CEST 2012


Hi Kamailio Community,

Recently installed Kamailio, plan to integrate with SylkServer.

Tried the SIP IM feature, but can't seem to get it working.

Logged on to Bria and Blink, two seperate accounts.
They can call each other, but can't add each other for presence.

So I installed the presence module with apt-get and edited the
kamailio.cfg file to add the line;

#!define WITH_PRESENCE

Restarting the server comes up with the following error;
----------------------
root at opensep:~# vi /etc/kamailio/kamailio.cfg
root at opensep:~# service kamailio restart
Not starting Kamailio: invalid configuration file!
-e
 0(5114) : <core> [cfg.y:3591]: parse error in config file
/etc/kamailio/kamailio.cfg, line 392, column 32-36: syntax error
 0(5114) : <core> [cfg.y:3591]: parse error in config file
/etc/kamailio/kamailio.cfg, line 392, column 32-36: Invalid arguments
 0(5114) : <core> [cfg.y:3594]: parse error in config file
/etc/kamailio/kamailio.cfg, line 392, column 37:
ERROR: bad config file (3 errors)
----------------------

Those lines are as follows;
----------------------
#!ifdef WITH_PRESENCE
# ----- presence params -----
modparam("presence", "db_url", DBURL)

# ----- presence_xml params -----
modparam("presence_xml", "db_url", DBURL)
modparam("presence_xml", "force_active", 1)
#!endif
----------------------

The exact place is where it says DBURL on both params.

I am using Ubuntu 12.04 and Kamailio 3.3.x.

Thank you for your time.

Kind Regards,

Gary Shergill



More information about the sr-users mailing list