<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello,<br>
    <br>
    <div class="moz-cite-prefix">On 10/10/12 7:23 PM, Peter Dunkley
      wrote:<br>
    </div>
    <blockquote
      cite="mid:1349889803.11168.2.camel@pd-notebook-linux.croc.internal"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="GENERATOR" content="GtkHTML/4.4.4">
      You need to load the cfgutils module to use pv_printf().<br>
    </blockquote>
    <br>
    it is actually the kex module -- a good place to find needed module
    for specific functions is the alphabetic index, in this case:<br>
    <br>
    <a class="moz-txt-link-freetext" href="http://www.kamailio.org/wiki/alphaindexes/3.3.x/modfunctions#p">http://www.kamailio.org/wiki/alphaindexes/3.3.x/modfunctions#p</a><br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <blockquote
      cite="mid:1349889803.11168.2.camel@pd-notebook-linux.croc.internal"
      type="cite">
      <br>
      Regards,<br>
      <br>
      Peter<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 "kamailio error, failed
        to start." 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("$var(sessid)", "s.$(pp).$(var(cnt)).$(RANDOM)");<br>
        <br>
        and<br>
        <br>
        if($msrp(method)=="SEND")<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 moz-do-not-send="true"
          href="mailto:peter.dunkley@crocodile-rcs.com">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 "c", but
          the event-route[] uses a hash table called "msrp".<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>
                &nbsp;0(19786) INFO: tls [tls_init.c:377]: tls: init_tls:
                disabling compression...<br>
                &nbsp;0(19786) ERROR: &lt;core&gt; [pvapi.c:708]: error
                searching pvar "sht"<br>
                &nbsp;0(19786) ERROR: &lt;core&gt; [pvapi.c:912]: wrong char
                [m/109] in [$sht(msrp=&gt;$var(sessid)::srcaddr)] at [5
                (5)]<br>
                &nbsp;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
                moz-do-not-send="true"
                href="mailto:ebrady@talkforgood.com">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>
                  &nbsp;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>
                  &nbsp;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>
                  &nbsp;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>
                  &nbsp;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>
                  &nbsp;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>
                  &nbsp;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>
                  &nbsp;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>
                  &nbsp;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>
                  &nbsp;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>
                  &nbsp;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>
                  &nbsp;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>
                  &nbsp;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>
                  &nbsp;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>
                  &nbsp;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>
                  &nbsp;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>
                  &nbsp;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>
                  &nbsp;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>
                  &nbsp;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>
                  &nbsp;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>
                  &nbsp;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>
                  &nbsp;0(19714) ERROR: &lt;core&gt; [modparam.c:162]:
                  set_mod_param_regex: No module matching
                  &lt;mi_fifo&gt; found<br>
                  &nbsp;0(19714) : &lt;core&gt; [cfg.y:3594]: parse error in
                  config file /etc/kamailio/kamailio.cfg, line 32,
                  column 54: Can't set module parameter<br>
                  &nbsp;0(19714) ERROR: &lt;core&gt; [modparam.c:162]:
                  set_mod_param_regex: No module matching &lt;htable&gt;
                  found<br>
                  &nbsp;0(19714) : &lt;core&gt; [cfg.y:3594]: parse error in
                  config file /etc/kamailio/kamailio.cfg, line 34,
                  column 58: Can't set module parameter<br>
                  &nbsp;0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg.
                  parser: failed to find command sl_send_reply<br>
                  &nbsp;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>
                  &nbsp;0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg.
                  parser: failed to find command xdbg<br>
                  &nbsp;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>
                  &nbsp;0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg.
                  parser: failed to find command xdbg<br>
                  &nbsp;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>
                  &nbsp;0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg.
                  parser: failed to find command xdbg<br>
                  &nbsp;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>
                  &nbsp;0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg.
                  parser: failed to find command xdbg<br>
                  &nbsp;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>
                  &nbsp;0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg.
                  parser: failed to find command xdbg<br>
                  &nbsp;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>
                  &nbsp;0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg.
                  parser: failed to find command xdbg<br>
                  &nbsp;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>
                  &nbsp;0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg.
                  parser: failed to find command xdbg<br>
                  &nbsp;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>
                  &nbsp;0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg.
                  parser: failed to find command xdbg<br>
                  &nbsp;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>
                  &nbsp;0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg.
                  parser: failed to find command xdbg<br>
                  &nbsp;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>
                  &nbsp;0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg.
                  parser: failed to find command xdbg<br>
                  &nbsp;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>
                  &nbsp;0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg.
                  parser: failed to find command xdbg<br>
                  &nbsp;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>
                  &nbsp;0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg.
                  parser: failed to find command xdbg<br>
                  &nbsp;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>
                  &nbsp;0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg.
                  parser: failed to find command msrp_reply_flags<br>
                  &nbsp;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>
                  &nbsp;0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg.
                  parser: failed to find command msrp_is_reply<br>
                  &nbsp;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>
                  &nbsp;0(19714) ERROR: &lt;core&gt; [cfg.y:3455]: cfg.
                  parser: failed to find command msrp_relay<br>
                  &nbsp;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>
                  &nbsp;0(19714) ERROR: &lt;core&gt; [pvapi.c:708]: error
                  searching pvar "msrp"<br>
                  &nbsp;0(19714) ERROR: &lt;core&gt; [pvapi.c:912]: wrong
                  char [m/109] in [$msrp(method)] at [6 (5)]<br>
                  &nbsp;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 moz-do-not-send="true"
                  href="mailto:miconda@gmail.com">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'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 moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a></font>
<font color="#888888"><a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></font>
</pre>
                </blockquote>
                <br>
                <br>
              </blockquote>
            </blockquote>
            <table width="100%" cellpadding="0" cellspacing="0">
              <tbody>
                <tr>
                  <td>
                    <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>

</pre>
                  </td>
                </tr>
              </tbody>
            </table>
          </blockquote>
          <table width="100%" cellpadding="0" cellspacing="0">
            <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 moz-do-not-send="true"
            href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
          <a moz-do-not-send="true"
            href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">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 moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
      </blockquote>
      <br>
      <table width="100%" cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td>
              <pre>-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
</pre>
            </td>
          </tr>
        </tbody>
      </table>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Berlin, Nov 5-8, 2012 - <a class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a>
Kamailio Advanced Training, Miami, USA, Nov 12-14, 2012 - <a class="moz-txt-link-freetext" href="http://asipto.com/u/katu">http://asipto.com/u/katu</a></pre>
  </body>
</html>