This seemed to work! Kamailio starts with no errors now. I am still unable to send a message with Blink. I am able to make calls with Blink via Kamailio but the IM option does not show as enabled. I understand that this is the Kamailio list and not Blink, but any known configurations to work with Kamailio would be helpful. If there is another test client recommended, please let me know.<br>
<br>Thanks!<br>Ed<br><br><br><br><div class="gmail_quote">On Wed, Oct 10, 2012 at 1:23 PM, Peter Dunkley <span dir="ltr">&lt;<a href="mailto:peter.dunkley@crocodile-rcs.com" target="_blank">peter.dunkley@crocodile-rcs.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>


  
  

<div>
You need to load the cfgutils module to use pv_printf().<br>
<br>
Regards,<br>
<br>
Peter<div><div><br>
<br>
On Wed, 2012-10-10 at 13:15 -0400, Ed Brady wrote:<br>
<blockquote type="CITE">
    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 &quot;kamailio error, failed to start.&quot; When I look at the syslog I see the following errors:<br>


    <br>
    <br>
    <br>
    <blockquote>
        ct 10 13:05:49 msg1 /usr/sbin/kamailio[19896]: ERROR: &lt;core&gt; [route.c:1216]: fixing failed (code=-1) at cfg:/etc/kamailio/kamailio.cfg:952<br>
        Oct 10 13:05:49 msg1 /usr/sbin/kamailio[19896]: ERROR: &lt;core&gt; [route.c:1216]: fixing failed (code=-1) at cfg:/etc/kamailio/kamailio.cfg:962<br>
        <br>
    </blockquote>
</blockquote>
<blockquote type="CITE">
    <br>
    The lines in the config it is referring to are:<br>
    <br>
    pv_printf(&quot;$var(sessid)&quot;, &quot;s.$(pp).$(var(cnt)).$(RANDOM)&quot;);<br>
    <br>
    and<br>
    <br>
    if($msrp(method)==&quot;SEND&quot;)<br>
    <br>
    <br>
    respectively. Any advice is appreciated. I am new to Kamailio and MSRP, but not SIP.<br>
    <br>
    <br>
    Thanks,<br>
    Ed <br>
    <br>
</blockquote>
<blockquote type="CITE">
    <br>
</blockquote>
<blockquote type="CITE">
    On Wed, Oct 10, 2012 at 1:03 PM, Peter Dunkley &lt;<a href="mailto:peter.dunkley@crocodile-rcs.com" target="_blank">peter.dunkley@crocodile-rcs.com</a>&gt; wrote:
</blockquote>
<blockquote type="CITE">
    <blockquote>
        I also noticed a typo in the example.<br>
        <br>
        The modparam for htable creates a hash table called &quot;c&quot;, but the event-route[] uses a hash table called &quot;msrp&quot;.<br>
        <br>
        This is now fixed in git master.<br>
        <br>
        Regards,<br>
        <br>
        Peter
    </blockquote>
</blockquote>
<blockquote type="CITE">
    <blockquote>
        <br>
        <br>
        On Wed, 2012-10-10 at 17:58 +0100, Peter Dunkley wrote:<br>
        <blockquote type="CITE">
            Hi,<br>
            <br>
            You need to load the htable module to use $sht().<br>
            <br>
            This is one of the modules shown at the top of the example.<br>
            <br>
            Regards,<br>
            <br>
            Peter<br>
            <br>
            On Wed, 2012-10-10 at 12:53 -0400, Ed Brady wrote:<br>
            <blockquote type="CITE">
                After adding the event block from the MSRP module example config, I get the following error:<br>
                <br>
                <br>
                <blockquote>
                    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>
                        ERROR: bad config file (1 errors) <br>
                    </blockquote>
                </blockquote>
                <br>
                <br>
                Any thoughts on why it would have trouble locating the sht var?<br>
                <br>
                <br>
                Thanks,<br>
                Ed <br>
                <br>
                <br>
                On Wed, Oct 10, 2012 at 12:40 PM, Ed Brady &lt;<a href="mailto:ebrady@talkforgood.com" target="_blank">ebrady@talkforgood.com</a>&gt; wrote:<br>
                <blockquote>
                    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>
                        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 <br>
                    <br>
                    <br>
                    <br>
                    <br>
                    On Mon, Oct 8, 2012 at 6:14 PM, Daniel-Constantin Mierla &lt;<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>&gt; wrote:<br>
                    <blockquote>
                        Hello, <br>
                        <br>
                        <br>
                        On 10/8/12 5:26 PM, Ed Brady wrote:<br>
                        <blockquote>
                            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>
                        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<br>
                        <br>
<pre><font color="#888888">_______________________________________________</font>
<font color="#888888">SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list</font>
<font color="#888888"><a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a></font>
<font color="#888888"><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></font>
</pre>
                    </blockquote>
                    <br>
                    <br>
                </blockquote>
            </blockquote>
            <table cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>

</pre>
</td>
</tr>
</tbody></table>
        </blockquote>
        <table cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td>
<pre>-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
</pre>
</td>
</tr>
</tbody></table>
    </blockquote>
</blockquote>
<blockquote type="CITE">
    <blockquote>
        <br>
        _______________________________________________<br>
        SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
        <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
        <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
        <br>
    </blockquote>
</blockquote>
<blockquote type="CITE">
    <br>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<table cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td>
<pre>-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
</pre>
</td>
</tr>
</tbody></table>
</div></div></div>

<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br>