<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>have you loaded corex module?</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 14.01.19 10:40, Denys Pozniak wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+x3Axq_K7ej02L4fDgz22wSj5bq_89j2fJiqG_5ah1PQ9+WTA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div dir="ltr">
              <div dir="ltr">
                <div dir="ltr">Hello!
                  <div>Tried to use $cfg(line), but got error.</div>
                  <div>Please point me where the issue is.</div>
                  <div><br>
                  </div>
                  <div>loadmodule "cfgutils.so"<br>
                  </div>
                  <div>xlog("L_WARNING", "route block: $cfg(line) \n");<br>
                  </div>
                  <div><br>
                  </div>
                  <div>
                    <div>
                      <div>Jan 14 10:39:19 dev kamailio[10856]: ERROR:
                        <core> [core/pvapi.c:903]:
                        pv_parse_spec2(): error searching pvar "cfg"</div>
                      <div>Jan 14 10:39:19 dev kamailio[10856]: ERROR:
                        <core> [core/pvapi.c:1107]:
                        pv_parse_spec2(): wrong char [l/108] in
                        [$cfg(line)] at [5 (5)]</div>
                      <div>Jan 14 10:39:19 dev kamailio[10856]: ERROR:
                        xlog [xlog.c:513]: xdbg_fixup_helper(): wrong
                        format[pvar $cfg(line) #012]</div>
                      <div>Jan 14 10:39:19 dev kamailio[10856]: ERROR:
                        <core> [core/route.c:1154]: fix_actions():
                        fixing failed (code=-1) at
                        cfg:/etc/kamailio/routing.d/main.cfg:8</div>
                    </div>
                  </div>
                  <div><br>
                  </div>
                  <div>
                    <div># kamailio -v</div>
                    <div>version: kamailio 5.1.6 (x86_64/linux)</div>
                  </div>
                  <div><br>
                  </div>
                  <div><br>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr">вс, 30 дек. 2018 г. в 05:19, Joel Serrano <<a
            href="mailto:joel@textplus.com" moz-do-not-send="true">joel@textplus.com</a>>:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div>
            <div dir="auto">Adding it to my log_prefix !!!</div>
          </div>
          <div dir="auto"><br>
          </div>
          <div dir="auto">Sounds dum but this simplifies my logging so
            much 😂😂</div>
          <div dir="auto"><br>
          </div>
          <div dir="auto">Thanks guys, every day you learn something
            new! </div>
          <div dir="auto"><br>
          </div>
          <div><br>
            <div class="gmail_quote">
              <div dir="ltr">On Sat, Dec 29, 2018 at 14:42 David
                Villasmil <<a
                  href="mailto:david.villasmil.work@gmail.com"
                  target="_blank" moz-do-not-send="true">david.villasmil.work@gmail.com</a>>
                wrote:<br>
              </div>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px
                0.8ex;border-left:1px solid
                rgb(204,204,204);padding-left:1ex">
                <div dir="ltr">yep: $cfg(<span
                    class="gmail-m_5136234432669772451m_7264152739064080675gmail-il">route</span>)
                  <div>added Jun 2017<br clear="all">
                    <div>
                      <div dir="ltr"
class="gmail-m_5136234432669772451m_7264152739064080675m_4819720344338814038gmail_signature">
                        <div dir="ltr">
                          <div>Regards,</div>
                          <div><br>
                          </div>
                          David Villasmil
                          <div>email: <a
                              href="mailto:david.villasmil.work@gmail.com"
                              target="_blank" moz-do-not-send="true">david.villasmil.work@gmail.com</a></div>
                          <div>phone: +34669448337</div>
                        </div>
                      </div>
                    </div>
                    <br>
                  </div>
                </div>
                <br>
                <div class="gmail_quote">
                  <div dir="ltr">On Sat, Dec 29, 2018 at 10:09 PM *
                    Paolo Visintin - evosip.cloud
                    <a class="moz-txt-link-rfc2396E" href="mailto:paolo.visintin@evosip.cloud"><paolo.visintin@evosip.cloud></a> wrote:<br>
                  </div>
                  <blockquote class="gmail_quote" style="margin:0px 0px
                    0px 0.8ex;border-left:1px solid
                    rgb(204,204,204);padding-left:1ex">
                    <div>
                      <div dir="auto">Joel , you could use $cfg(route) !</div>
                    </div>
                    <div dir="auto"><br>
                    </div>
                    <div dir="auto">I usually store my breadcrumbs in a
                      define and use on top of every interesting route
                      ! </div>
                    <div dir="auto"><br>
                    </div>
                    <div><br>
                      <div class="gmail_quote">
                        <div dir="ltr">Il giorno sab 29 dic 2018 alle
                          21:29 Joel Serrano <<a
                            href="mailto:joel@textplus.com"
                            target="_blank" moz-do-not-send="true">joel@textplus.com</a>>
                          ha scritto:<br>
                        </div>
                        <blockquote class="gmail_quote"
                          style="margin:0px 0px 0px
                          0.8ex;border-left:1px solid
                          rgb(204,204,204);padding-left:1ex">
                          <div>
                            <div dir="auto">I wonder if there is a
                              $something that contains the
                              route-block-name?</div>
                          </div>
                          <div dir="auto"><br>
                          </div>
                          <div dir="auto">Anyone know?</div>
                          <div dir="auto"><br>
                          </div>
                          <div><br>
                            <div class="gmail_quote">
                              <div dir="ltr">On Sat, Dec 29, 2018 at
                                10:52 David Villasmil <<a
                                  href="mailto:david.villasmil.work@gmail.com"
                                  target="_blank" moz-do-not-send="true">david.villasmil.work@gmail.com</a>>
                                wrote:<br>
                              </div>
                              <blockquote class="gmail_quote"
                                style="margin:0px 0px 0px
                                0.8ex;border-left:1px solid
                                rgb(204,204,204);padding-left:1ex">I
                                prefer using<br>
                                <br>
                                log(“L_ERR”, “[REQUEST_ROUTE]: $ci
                                Register Request\n”);<br>
                                <br>
                                That way you have the route block where
                                you are logging from and the Call-ID
                                with your information string. (I mostly
                                use L_ERR when debugging)<br>
                                <br>
                                Cheers<br>
                                <div class="gmail_quote">
                                  <div dir="ltr">On Sat, 29 Dec 2018 at
                                    11:02, Mojtaba <<a
                                      href="mailto:mespio@gmail.com"
                                      target="_blank"
                                      moz-do-not-send="true">mespio@gmail.com</a>>
                                    wrote:<br>
                                  </div>
                                  <blockquote class="gmail_quote"
                                    style="margin:0px 0px 0px
                                    0.8ex;border-left:1px solid
                                    rgb(204,204,204);padding-left:1ex">Hi,<br>
                                    You could use xlog instead of log,
                                    like this:<br>
                                     xlog("Register request...\n");<br>
                                    With Regards.Mojtaba<br>
                                    <br>
                                    On Sat, Dec 29, 2018 at 11:14 AM
                                    Muhammad Allaudin<br>
                                    <<a
                                      href="mailto:mallaudinqazi@gmail.com"
                                      target="_blank"
                                      moz-do-not-send="true">mallaudinqazi@gmail.com</a>>
                                    wrote:<br>
                                    ><br>
                                    > Hi everyone,<br>
                                    ><br>
                                    > I have recently started working
                                    on Kamailio, I am trying to learn
                                    the basics. For "Register" route, I
                                    am trying to print the log but log
                                    is not appearing in log file. Other
                                    logs are there, only this one is
                                    missing.<br>
                                    ><br>
                                    > if(is_method("REGISTER")){<br>
                                    >  log(2, "Register request");<br>
                                    > }<br>
                                    ><br>
                                    > I will be really helpful if you
                                    can help me with this.<br>
                                    ><br>
                                    > Thanks & Kind Regards<br>
                                    ><br>
                                    > Regards,<br>
                                    > M.Allaudin<br>
                                    > Software Engineer<br>
                                    > Nowtel Group<br>
                                    > Phone # +92-333-8291874<br>
                                    > Blogger @ <a
                                      href="http://allaudin.github.io"
                                      rel="noreferrer" target="_blank"
                                      moz-do-not-send="true">allaudin.github.io</a><br>
                                    >
                                    _______________________________________________<br>
                                    > Kamailio (SER) - Users Mailing
                                    List<br>
                                    > <a
                                      href="mailto:sr-users@lists.kamailio.org"
                                      target="_blank"
                                      moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
                                    > <a
                                      href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
                                      rel="noreferrer" target="_blank"
                                      moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                                    <br>
                                    <br>
                                    <br>
                                    -- <br>
                                    --Mojtaba Esfandiari.S<br>
                                    <br>
_______________________________________________<br>
                                    Kamailio (SER) - Users Mailing List<br>
                                    <a
                                      href="mailto:sr-users@lists.kamailio.org"
                                      target="_blank"
                                      moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
                                    <a
                                      href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
                                      rel="noreferrer" target="_blank"
                                      moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                                  </blockquote>
                                </div>
_______________________________________________<br>
                                Kamailio (SER) - Users Mailing List<br>
                                <a
                                  href="mailto:sr-users@lists.kamailio.org"
                                  target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
                                <a
                                  href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
                                  rel="noreferrer" target="_blank"
                                  moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                              </blockquote>
                            </div>
                          </div>
_______________________________________________<br>
                          Kamailio (SER) - Users Mailing List<br>
                          <a href="mailto:sr-users@lists.kamailio.org"
                            target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
                          <a
                            href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
                            rel="noreferrer" target="_blank"
                            moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                        </blockquote>
                      </div>
                    </div>
                    -- <br>
                    <div dir="ltr"
class="gmail-m_5136234432669772451m_7264152739064080675gmail-m_4819720344338814038gmail-m_5667975294226527048gmail_signature">
                      <div dir="ltr">
                        <div><font face="tahoma, sans-serif"><b>Paolo
                              Visintin</b></font></div>
                        <div><font face="tahoma, sans-serif"><i>CTO</i></font></div>
                        <div><font face="tahoma, sans-serif"><a
                              href="http://evosip.cloud" target="_blank"
                              moz-do-not-send="true">evosip.cloud</a></font></div>
                        <img
src="https://pbs.twimg.com/profile_images/994977366991687680/3zZpsQqs_400x400.jpg"
                          alt="Risultati immagini per evosip"
                          moz-do-not-send="true" width="96" height="96"><br>
                      </div>
                    </div>
                    _______________________________________________<br>
                    Kamailio (SER) - Users Mailing List<br>
                    <a href="mailto:sr-users@lists.kamailio.org"
                      target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
                    <a
                      href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
                      rel="noreferrer" target="_blank"
                      moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
                  </blockquote>
                </div>
                _______________________________________________<br>
                Kamailio (SER) - Users Mailing List<br>
                <a href="mailto:sr-users@lists.kamailio.org"
                  target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
                <a
                  href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
                  rel="noreferrer" target="_blank"
                  moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
              </blockquote>
            </div>
          </div>
          _______________________________________________<br>
          Kamailio (SER) - Users Mailing List<br>
          <a href="mailto:sr-users@lists.kamailio.org" target="_blank"
            moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
          <a
            href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
        </blockquote>
      </div>
      <br clear="all">
      <div><br>
      </div>
      -- <br>
      <div dir="ltr" class="gmail_signature">
        <div dir="ltr"><br>
          <div>
            <div>BR,</div>
            <div>Denys Pozniak<br>
            </div>
            <div><br>
            </div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 6-8, 2019 -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a>
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a></pre>
  </body>
</html>