I modified the original config to include the event block and added the
necessary module loads, but it still will not start properly. It displays
all the connection info like it has started but then says "kamailio error,
failed to start." When I look at the syslog I see the following errors:
ct 10 13:05:49 msg1 /usr/sbin/kamailio[19896]: ERROR: <core>
[route.c:1216]: fixing failed (code=-1) at
cfg:/etc/kamailio/kamailio.cfg:952
Oct 10 13:05:49 msg1 /usr/sbin/kamailio[19896]: ERROR: <core>
[route.c:1216]: fixing failed (code=-1) at
cfg:/etc/kamailio/kamailio.cfg:962
The lines in the config it is referring to are:
pv_printf("$var(sessid)", "s.$(pp).$(var(cnt)).$(RANDOM)");
and
if($msrp(method)=="SEND")
respectively. Any advice is appreciated. I am new to Kamailio and MSRP, but
not SIP.
Thanks,
Ed
On Wed, Oct 10, 2012 at 1:03 PM, Peter Dunkley <
peter.dunkley(a)crocodile-rcs.com> wrote:
**
I also noticed a typo in the example.
The modparam for htable creates a hash table called "c", but the
event-route[] uses a hash table called "msrp".
This is now fixed in git master.
Regards,
Peter
On Wed, 2012-10-10 at 17:58 +0100, Peter Dunkley wrote:
Hi,
You need to load the htable module to use $sht().
This is one of the modules shown at the top of the example.
Regards,
Peter
On Wed, 2012-10-10 at 12:53 -0400, Ed Brady wrote:
After adding the event block from the MSRP module example config, I get
the following error:
Not starting Kamailio: invalid configuration file!
-e
0(19786) INFO: tls [tls_init.c:377]: tls: init_tls: disabling
compression...
0(19786) ERROR: <core> [pvapi.c:708]: error searching pvar "sht"
0(19786) ERROR: <core> [pvapi.c:912]: wrong char [m/109] in
[$sht(msrp=>$var(sessid)::srcaddr)] at [5 (5)]
0(19786) : <core> [cfg.y:3591]: parse error in config file
/etc/kamailio/kamailio.cfg, line 952, column 3-35: unknown script pseudo
variable $sht(msrp=>$var(sessid)::srcaddr)
ERROR: bad config file (1 errors)
Any thoughts on why it would have trouble locating the sht var?
Thanks,
Ed
On Wed, Oct 10, 2012 at 12:40 PM, Ed Brady <ebrady(a)talkforgood.com> wrote:
When I used the provided config example from the module page, I get all
sorts of errors from the config file when trying to start Kamailio. I am
going to attempt to just copy the event route block into my working config
and see what happens. Below are the errors it spits out when trying to
start with the example config:
Not starting Kamailio: invalid configuration file!
-e
0(19714) ERROR: <core> [sr_module.c:560]: ERROR: load_module: could not
find module <sl> in <modules_k/:modules/>
0(19714) : <core> [cfg.y:3591]: parse error in config file
/etc/kamailio/kamailio.cfg, line 20, column 12-18: failed to load module
0(19714) ERROR: <core> [sr_module.c:560]: ERROR: load_module: could not
find module <kex> in <modules_k/:modules/>
0(19714) : <core> [cfg.y:3591]: parse error in config file
/etc/kamailio/kamailio.cfg, line 21, column 12-19: failed to load module
0(19714) ERROR: <core> [sr_module.c:560]: ERROR: load_module: could not
find module <mi_fifo> in <modules_k/:modules/>
0(19714) : <core> [cfg.y:3591]: parse error in config file
/etc/kamailio/kamailio.cfg, line 22, column 12-23: failed to load module
0(19714) ERROR: <core> [sr_module.c:560]: ERROR: load_module: could not
find module <ctl> in <modules_k/:modules/>
0(19714) : <core> [cfg.y:3591]: parse error in config file
/etc/kamailio/kamailio.cfg, line 23, column 12-19: failed to load module
0(19714) ERROR: <core> [sr_module.c:560]: ERROR: load_module: could not
find module <msrp> in <modules_k/:modules/>
0(19714) : <core> [cfg.y:3591]: parse error in config file
/etc/kamailio/kamailio.cfg, line 24, column 12-20: failed to load module
0(19714) ERROR: <core> [sr_module.c:560]: ERROR: load_module: could not
find module <pv> in <modules_k/:modules/>
0(19714) : <core> [cfg.y:3591]: parse error in config file
/etc/kamailio/kamailio.cfg, line 25, column 12-18: failed to load module
0(19714) ERROR: <core> [sr_module.c:560]: ERROR: load_module: could not
find module <auth> in <modules_k/:modules/>
0(19714) : <core> [cfg.y:3591]: parse error in config file
/etc/kamailio/kamailio.cfg, line 26, column 12-20: failed to load module
0(19714) ERROR: <core> [sr_module.c:560]: ERROR: load_module: could not
find module <cfgutils> in <modules_k/:modules/>
0(19714) : <core> [cfg.y:3591]: parse error in config file
/etc/kamailio/kamailio.cfg, line 27, column 12-24: failed to load module
0(19714) ERROR: <core> [sr_module.c:560]: ERROR: load_module: could not
find module <htable> in <modules_k/:modules/>
0(19714) : <core> [cfg.y:3591]: parse error in config file
/etc/kamailio/kamailio.cfg, line 28, column 12-22: failed to load module
0(19714) ERROR: <core> [sr_module.c:560]: ERROR: load_module: could not
find module <xlog> in <modules_k/:modules/>
0(19714) : <core> [cfg.y:3591]: parse error in config file
/etc/kamailio/kamailio.cfg, line 29, column 12-20: failed to load module
0(19714) ERROR: <core> [modparam.c:162]: set_mod_param_regex: No module
matching <mi_fifo> found
0(19714) : <core> [cfg.y:3594]: parse error in config file
/etc/kamailio/kamailio.cfg, line 32, column 54: Can't set module parameter
0(19714) ERROR: <core> [modparam.c:162]: set_mod_param_regex: No module
matching <htable> found
0(19714) : <core> [cfg.y:3594]: parse error in config file
/etc/kamailio/kamailio.cfg, line 34, column 58: Can't set module parameter
0(19714) ERROR: <core> [cfg.y:3455]: cfg. parser: failed to find command
sl_send_reply
0(19714) : <core> [cfg.y:3594]: parse error in config file
/etc/kamailio/kamailio.cfg, line 37, column 36: unknown command, missing
loadmodule?
0(19714) ERROR: <core> [cfg.y:3455]: cfg. parser: failed to find command
xdbg
0(19714) : <core> [cfg.y:3594]: parse error in config file
/etc/kamailio/kamailio.cfg, line 46, column 52: unknown command, missing
loadmodule?
0(19714) ERROR: <core> [cfg.y:3455]: cfg. parser: failed to find command
xdbg
0(19714) : <core> [cfg.y:3594]: parse error in config file
/etc/kamailio/kamailio.cfg, line 47, column 35: unknown command, missing
loadmodule?
0(19714) ERROR: <core> [cfg.y:3455]: cfg. parser: failed to find command
xdbg
0(19714) : <core> [cfg.y:3594]: parse error in config file
/etc/kamailio/kamailio.cfg, line 48, column 49: unknown command, missing
loadmodule?
0(19714) ERROR: <core> [cfg.y:3455]: cfg. parser: failed to find command
xdbg
0(19714) : <core> [cfg.y:3594]: parse error in config file
/etc/kamailio/kamailio.cfg, line 49, column 50: unknown command, missing
loadmodule?
0(19714) ERROR: <core> [cfg.y:3455]: cfg. parser: failed to find command
xdbg
0(19714) : <core> [cfg.y:3594]: parse error in config file
/etc/kamailio/kamailio.cfg, line 50, column 50: unknown command, missing
loadmodule?
0(19714) ERROR: <core> [cfg.y:3455]: cfg. parser: failed to find command
xdbg
0(19714) : <core> [cfg.y:3594]: parse error in config file
/etc/kamailio/kamailio.cfg, line 51, column 51: unknown command, missing
loadmodule?
0(19714) ERROR: <core> [cfg.y:3455]: cfg. parser: failed to find command
xdbg
0(19714) : <core> [cfg.y:3594]: parse error in config file
/etc/kamailio/kamailio.cfg, line 52, column 50: unknown command, missing
loadmodule?
0(19714) ERROR: <core> [cfg.y:3455]: cfg. parser: failed to find command
xdbg
0(19714) : <core> [cfg.y:3594]: parse error in config file
/etc/kamailio/kamailio.cfg, line 53, column 51: unknown command, missing
loadmodule?
0(19714) ERROR: <core> [cfg.y:3455]: cfg. parser: failed to find command
xdbg
0(19714) : <core> [cfg.y:3594]: parse error in config file
/etc/kamailio/kamailio.cfg, line 54, column 51: unknown command, missing
loadmodule?
0(19714) ERROR: <core> [cfg.y:3455]: cfg. parser: failed to find command
xdbg
0(19714) : <core> [cfg.y:3594]: parse error in config file
/etc/kamailio/kamailio.cfg, line 55, column 50: unknown command, missing
loadmodule?
0(19714) ERROR: <core> [cfg.y:3455]: cfg. parser: failed to find command
xdbg
0(19714) : <core> [cfg.y:3594]: parse error in config file
/etc/kamailio/kamailio.cfg, line 56, column 50: unknown command, missing
loadmodule?
0(19714) ERROR: <core> [cfg.y:3455]: cfg. parser: failed to find command
xdbg
0(19714) : <core> [cfg.y:3594]: parse error in config file
/etc/kamailio/kamailio.cfg, line 57, column 49: unknown command, missing
loadmodule?
0(19714) ERROR: <core> [cfg.y:3455]: cfg. parser: failed to find command
msrp_reply_flags
0(19714) : <core> [cfg.y:3594]: parse error in config file
/etc/kamailio/kamailio.cfg, line 59, column 22: unknown command, missing
loadmodule?
0(19714) ERROR: <core> [cfg.y:3455]: cfg. parser: failed to find command
msrp_is_reply
0(19714) : <core> [cfg.y:3594]: parse error in config file
/etc/kamailio/kamailio.cfg, line 61, column 22: unknown command, missing
loadmodule?
0(19714) ERROR: <core> [cfg.y:3455]: cfg. parser: failed to find command
msrp_relay
0(19714) : <core> [cfg.y:3594]: parse error in config file
/etc/kamailio/kamailio.cfg, line 63, column 20: unknown command, missing
loadmodule?
0(19714) ERROR: <core> [pvapi.c:708]: error searching pvar "msrp"
0(19714) ERROR: <core> [pvapi.c:912]: wrong char [m/109] in
[$msrp(method)] at [6 (5)]
0(19714) : <core> [cfg.y:3591]: parse error in config file
/etc/kamailio/kamailio.cfg, line 68, column 5-17: unknown script pseudo
variable $msrp(method)
ERROR: bad config file (29 errors)
Thanks,
Ed
On Mon, Oct 8, 2012 at 6:14 PM, Daniel-Constantin Mierla <
miconda(a)gmail.com> wrote:
Hello,
On 10/8/12 5:26 PM, Ed Brady wrote:
Hi,
I am working on an MSRP project with Kamailio. I have Kamailio installed
and configured for SIP with several test accounts created, but am unable to
send MSRP messages so far. I am using Blink as a test client, though the
final intentions of the project will be to use iDoubs and IMSDroid for
client connections. We are having these developed to our needs right now
though, so I must use another client to begin testing.
I have been unable to find good documentation on the initial configuration
of MSRP in Kamailio. I have seen the module documentation, but am unclear
how to utilize the information there to configure Kamailio properly. Is
there any documentation on getting started with a basic MSRP relay setup so
that two clients can chat and send files? I am not new to SIP, but this is
my first project with MSRP.
at the time I developed the module were no good clients supporting msrp,
so I did testing mainly with forged network tools. But I am happy to assist
as much as possible provided my availability and fix eventual issues.
The readme of the module provides and example for a stand alone msrp
relay. If you want to put it inside a more complex kamailio configuration
that handles sip as well, then be sure you load msrp module as well as all
the other modules from the readme's config and set the module parameters.
Then copy the event_route[msrp:frame-in] block in your config. MSRP
packets have to be sent to port 5060 (or 5061 for tls), or you can
configure kamailio to listen on an additional port where you send the msrp
packets.
If something is not working, send the log messages (debug=3 in your
config) and the ngrep trace if you use plain tcp.
Cheers,
Daniel
_______________________________________________SIP Express Router (SER) and Kamailio
(OpenSER) - sr-users mailing
listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Peter Dunkley
Technical Director
Crocodile RCS Ltd
_______________________________________________
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