<div dir="ltr">Now it works!<div>Thanks!</div></div><br><div class="gmail_quote"><div dir="ltr">пн, 14 янв. 2019 г. в 12:47, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.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 bgcolor="#FFFFFF">
<p>Hello,</p>
<p>have you loaded corex module?</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="gmail-m_3187431573702987437moz-cite-prefix">On 14.01.19 10:40, Denys Pozniak wrote:<br>
</div>
<blockquote type="cite">
<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" target="_blank">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">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_3187431573702987437gmail-m_5136234432669772451m_7264152739064080675gmail-il">route</span>)
<div>added Jun 2017<br clear="all">
<div>
<div dir="ltr" class="gmail-m_3187431573702987437gmail-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">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="gmail-m_3187431573702987437moz-txt-link-rfc2396E" href="mailto:paolo.visintin@evosip.cloud" target="_blank"><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">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">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">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">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">allaudin.github.io</a><br>
>
_______________________________________________<br>
> Kamailio (SER) - Users Mailing
List<br>
> <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
> <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">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">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">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">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">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">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
</div>
-- <br>
<div dir="ltr" class="gmail-m_3187431573702987437gmail-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">evosip.cloud</a></font></div>
<img src="https://pbs.twimg.com/profile_images/994977366991687680/3zZpsQqs_400x400.jpg" alt="Risultati immagini per evosip" width="96" height="96"><br>
</div>
</div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">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">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">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">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">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-m_3187431573702987437gmail_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="gmail-m_3187431573702987437mimeAttachmentHeader"></fieldset>
<pre class="gmail-m_3187431573702987437moz-quote-pre">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="gmail-m_3187431573702987437moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a class="gmail-m_3187431573702987437moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="gmail-m_3187431573702987437moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="gmail-m_3187431573702987437moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a class="gmail-m_3187431573702987437moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="gmail-m_3187431573702987437moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 6-8, 2019 -- <a class="gmail-m_3187431573702987437moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a>
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- <a class="gmail-m_3187431573702987437moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a></pre>
</div>
</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>