After adding the event block from the MSRP module example config, I get the following error:<br><br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
Not starting Kamailio: invalid configuration file!<br>-e <br> 0(19786) INFO: tls [tls_init.c:377]: tls: init_tls: disabling compression...<br> 0(19786) ERROR: &lt;core&gt; [pvapi.c:708]: error searching pvar &quot;sht&quot;<br>
 0(19786) ERROR: &lt;core&gt; [pvapi.c:912]: wrong char [m/109] in [$sht(msrp=&gt;$var(sessid)::srcaddr)] at [5 (5)]<br> 0(19786) : &lt;core&gt; [cfg.y:3591]: parse error in config file /etc/kamailio/kamailio.cfg, line 952, column 3-35: unknown script pseudo variable $sht(msrp=&gt;$var(sessid)::srcaddr)<br>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">ERROR: bad config file (1 errors)<br></blockquote></blockquote><div><br><br>Any thoughts on why it would have trouble locating the sht var?<br>
<br><br>Thanks,<br>Ed <br></div><br><div class="gmail_quote">On Wed, Oct 10, 2012 at 12:40 PM, Ed Brady <span dir="ltr">&lt;<a href="mailto:ebrady@talkforgood.com" target="_blank">ebrady@talkforgood.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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:<br>

<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">Not starting Kamailio: invalid configuration file!<br>-e <br> 0(19714) ERROR: &lt;core&gt; [sr_module.c:560]: ERROR: load_module: could not find module &lt;sl&gt; in &lt;modules_k/:modules/&gt;<br>

 0(19714) : &lt;core&gt; [cfg.y:3591]: parse error in config file /etc/kamailio/kamailio.cfg, line 20, column 12-18: failed to load module<br> 0(19714) ERROR: &lt;core&gt; [sr_module.c:560]: ERROR: load_module: could not find module &lt;kex&gt; in &lt;modules_k/:modules/&gt;<br>

 0(19714) : &lt;core&gt; [cfg.y:3591]: parse error in config file /etc/kamailio/kamailio.cfg, line 21, column 12-19: failed to load module<br> 0(19714) ERROR: &lt;core&gt; [sr_module.c:560]: ERROR: load_module: could not find module &lt;mi_fifo&gt; in &lt;modules_k/:modules/&gt;<br>

 0(19714) : &lt;core&gt; [cfg.y:3591]: parse error in config file /etc/kamailio/kamailio.cfg, line 22, column 12-23: failed to load module<br> 0(19714) ERROR: &lt;core&gt; [sr_module.c:560]: ERROR: load_module: could not find module &lt;ctl&gt; in &lt;modules_k/:modules/&gt;<br>

 0(19714) : &lt;core&gt; [cfg.y:3591]: parse error in config file /etc/kamailio/kamailio.cfg, line 23, column 12-19: failed to load module<br> 0(19714) ERROR: &lt;core&gt; [sr_module.c:560]: ERROR: load_module: could not find module &lt;msrp&gt; in &lt;modules_k/:modules/&gt;<br>

 0(19714) : &lt;core&gt; [cfg.y:3591]: parse error in config file /etc/kamailio/kamailio.cfg, line 24, column 12-20: failed to load module<br> 0(19714) ERROR: &lt;core&gt; [sr_module.c:560]: ERROR: load_module: could not find module &lt;pv&gt; in &lt;modules_k/:modules/&gt;<br>

 0(19714) : &lt;core&gt; [cfg.y:3591]: parse error in config file /etc/kamailio/kamailio.cfg, line 25, column 12-18: failed to load module<br> 0(19714) ERROR: &lt;core&gt; [sr_module.c:560]: ERROR: load_module: could not find module &lt;auth&gt; in &lt;modules_k/:modules/&gt;<br>

 0(19714) : &lt;core&gt; [cfg.y:3591]: parse error in config file /etc/kamailio/kamailio.cfg, line 26, column 12-20: failed to load module<br> 0(19714) ERROR: &lt;core&gt; [sr_module.c:560]: ERROR: load_module: could not find module &lt;cfgutils&gt; in &lt;modules_k/:modules/&gt;<br>

 0(19714) : &lt;core&gt; [cfg.y:3591]: parse error in config file /etc/kamailio/kamailio.cfg, line 27, column 12-24: failed to load module<br> 0(19714) ERROR: &lt;core&gt; [sr_module.c:560]: ERROR: load_module: could not find module &lt;htable&gt; in &lt;modules_k/:modules/&gt;<br>

 0(19714) : &lt;core&gt; [cfg.y:3591]: parse error in config file /etc/kamailio/kamailio.cfg, line 28, column 12-22: failed to load module<br> 0(19714) ERROR: &lt;core&gt; [sr_module.c:560]: ERROR: load_module: could not find module &lt;xlog&gt; in &lt;modules_k/:modules/&gt;<br>

 0(19714) : &lt;core&gt; [cfg.y:3591]: parse error in config file /etc/kamailio/kamailio.cfg, line 29, column 12-20: failed to load module<br> 0(19714) ERROR: &lt;core&gt; [modparam.c:162]: set_mod_param_regex: No module matching &lt;mi_fifo&gt; found<br>

 0(19714) : &lt;core&gt; [cfg.y:3594]: parse error in config file /etc/kamailio/kamailio.cfg, line 32, column 54: Can&#39;t set module parameter<br> 0(19714) ERROR: &lt;core&gt; [modparam.c:162]: set_mod_param_regex: No module matching &lt;htable&gt; found<br>

 0(19714) : &lt;core&gt; [cfg.y:3594]: parse error in config file /etc/kamailio/kamailio.cfg, line 34, column 58: Can&#39;t set module parameter<br> 0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg. parser: failed to find command sl_send_reply<br>

 0(19714) : &lt;core&gt; [cfg.y:3594]: parse error in config file /etc/kamailio/kamailio.cfg, line 37, column 36: unknown command, missing loadmodule?<br><br> 0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg. parser: failed to find command xdbg<br>

 0(19714) : &lt;core&gt; [cfg.y:3594]: parse error in config file /etc/kamailio/kamailio.cfg, line 46, column 52: unknown command, missing loadmodule?<br><br> 0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg. parser: failed to find command xdbg<br>

 0(19714) : &lt;core&gt; [cfg.y:3594]: parse error in config file /etc/kamailio/kamailio.cfg, line 47, column 35: unknown command, missing loadmodule?<br><br> 0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg. parser: failed to find command xdbg<br>

 0(19714) : &lt;core&gt; [cfg.y:3594]: parse error in config file /etc/kamailio/kamailio.cfg, line 48, column 49: unknown command, missing loadmodule?<br><br> 0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg. parser: failed to find command xdbg<br>

 0(19714) : &lt;core&gt; [cfg.y:3594]: parse error in config file /etc/kamailio/kamailio.cfg, line 49, column 50: unknown command, missing loadmodule?<br><br> 0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg. parser: failed to find command xdbg<br>

 0(19714) : &lt;core&gt; [cfg.y:3594]: parse error in config file /etc/kamailio/kamailio.cfg, line 50, column 50: unknown command, missing loadmodule?<br><br> 0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg. parser: failed to find command xdbg<br>

 0(19714) : &lt;core&gt; [cfg.y:3594]: parse error in config file /etc/kamailio/kamailio.cfg, line 51, column 51: unknown command, missing loadmodule?<br><br> 0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg. parser: failed to find command xdbg<br>

 0(19714) : &lt;core&gt; [cfg.y:3594]: parse error in config file /etc/kamailio/kamailio.cfg, line 52, column 50: unknown command, missing loadmodule?<br><br> 0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg. parser: failed to find command xdbg<br>

 0(19714) : &lt;core&gt; [cfg.y:3594]: parse error in config file /etc/kamailio/kamailio.cfg, line 53, column 51: unknown command, missing loadmodule?<br><br> 0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg. parser: failed to find command xdbg<br>

 0(19714) : &lt;core&gt; [cfg.y:3594]: parse error in config file /etc/kamailio/kamailio.cfg, line 54, column 51: unknown command, missing loadmodule?<br><br> 0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg. parser: failed to find command xdbg<br>

 0(19714) : &lt;core&gt; [cfg.y:3594]: parse error in config file /etc/kamailio/kamailio.cfg, line 55, column 50: unknown command, missing loadmodule?<br><br> 0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg. parser: failed to find command xdbg<br>

 0(19714) : &lt;core&gt; [cfg.y:3594]: parse error in config file /etc/kamailio/kamailio.cfg, line 56, column 50: unknown command, missing loadmodule?<br><br> 0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg. parser: failed to find command xdbg<br>

 0(19714) : &lt;core&gt; [cfg.y:3594]: parse error in config file /etc/kamailio/kamailio.cfg, line 57, column 49: unknown command, missing loadmodule?<br><br> 0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg. parser: failed to find command msrp_reply_flags<br>

 0(19714) : &lt;core&gt; [cfg.y:3594]: parse error in config file /etc/kamailio/kamailio.cfg, line 59, column 22: unknown command, missing loadmodule?<br><br> 0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg. parser: failed to find command msrp_is_reply<br>

 0(19714) : &lt;core&gt; [cfg.y:3594]: parse error in config file /etc/kamailio/kamailio.cfg, line 61, column 22: unknown command, missing loadmodule?<br><br> 0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg. parser: failed to find command msrp_relay<br>

 0(19714) : &lt;core&gt; [cfg.y:3594]: parse error in config file /etc/kamailio/kamailio.cfg, line 63, column 20: unknown command, missing loadmodule?<br><br> 0(19714) ERROR: &lt;core&gt; [pvapi.c:708]: error searching pvar &quot;msrp&quot;<br>

 0(19714) ERROR: &lt;core&gt; [pvapi.c:912]: wrong char [m/109] in [$msrp(method)] at [6 (5)]<br> 0(19714) : &lt;core&gt; [cfg.y:3591]: parse error in config file /etc/kamailio/kamailio.cfg, line 68, column 5-17: unknown script pseudo variable $msrp(method)<br>

ERROR: bad config file (29 errors)<br></blockquote><br><br><br><br>Thanks,<br>Ed<div class="HOEnZb"><div class="h5"><br><br><br><br><div class="gmail_quote">On Mon, Oct 8, 2012 at 6:14 PM, Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<div><div><br>
<br>
On 10/8/12 5:26 PM, Ed Brady wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
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.<br>


<br>
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.<br>


<br>
</blockquote></div></div>
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.<br>


<br>
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&#39;s config and set the module parameters.<br>


<br>
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.<br>


<br>
If something is not working, send the log messages (debug=3 in your config) and the ngrep trace if you use plain tcp.<br>
<br>
Cheers,<br>
Daniel<span><font color="#888888"><br>
<br>
-- <br>
Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/<u></u>miconda</a><br>
Kamailio Advanced Training, Berlin, Nov 5-8, 2012 - <a href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a><br>
Kamailio Advanced Training, Miami, USA, Nov 12-14, 2012 - <a href="http://asipto.com/u/katu" target="_blank">http://asipto.com/u/katu</a><br>
<br>
</font></span></blockquote></div><br>
</div></div></blockquote></div><br>