Now it works!
Thanks!
пн, 14 янв. 2019 г. в 12:47, Daniel-Constantin Mierla :
> Hello,
>
> have you loaded corex module?
>
> Cheers,
> Daniel
> On 14.01.19 10:40, Denys Pozniak wrote:
>
> Hello!
> Tried to use $cfg(line), but got error.
> Please point me where the issue is.
>
> loadmodule
Hello,
have you loaded corex module?
Cheers,
Daniel
On 14.01.19 10:40, Denys Pozniak wrote:
> Hello!
> Tried to use $cfg(line), but got error.
> Please point me where the issue is.
>
> loadmodule "cfgutils.so"
> xlog("L_WARNING", "route block: $cfg(line) \n");
>
> Jan 14 10:39:19 dev
request_route {
$avp(sess_mylog_id) = 0;
$var(mylog_data) = 'L_INFO|route[MAIN] INIT SIP REQUEST [ sip_requestId:' +
$mi + ' ]';
route(MYLOG);
.
}
route[MYLOG] {
$avp(sess_mylog_id) = $avp(sess_mylog_id) + 1;
$shv(mylog_id) = $shv(mylog_id) + 1;
$var(mylog_level) =
Hi,
If you need the line from configuration file - then you may use xlogl instead
of xlog.
xlogl("L_WARNING", "route block: \n");
Then you don't need $cfg(line) variable. ;)
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
Hello!
Tried to use $cfg(line), but got error.
Please point me where the issue is.
loadmodule "cfgutils.so"
xlog("L_WARNING", "route block: $cfg(line) \n");
Jan 14 10:39:19 dev kamailio[10856]: ERROR: [core/pvapi.c:903]:
pv_parse_spec2(): error searching pvar "cfg"
Jan 14 10:39:19 dev
Adding it to my log_prefix !!!
Sounds dum but this simplifies my logging so much
Thanks guys, every day you learn something new!
On Sat, Dec 29, 2018 at 14:42 David Villasmil <
david.villasmil.w...@gmail.com> wrote:
> yep: $cfg(route)
> added Jun 2017
> Regards,
>
> David Villasmil
>
yep: $cfg(route)
added Jun 2017
Regards,
David Villasmil
email: david.villasmil.w...@gmail.com
phone: +34669448337
On Sat, Dec 29, 2018 at 10:09 PM * Paolo Visintin - evosip.cloud
wrote:
> Joel , you could use $cfg(route) !
>
> I usually store my breadcrumbs in a define and use on top of
Joel , you could use $cfg(route) !
I usually store my breadcrumbs in a define and use on top of every
interesting route !
Il giorno sab 29 dic 2018 alle 21:29 Joel Serrano ha
scritto:
> I wonder if there is a $something that contains the route-block-name?
>
> Anyone know?
>
>
> On Sat, Dec
I wonder if there is a $something that contains the route-block-name?
Anyone know?
On Sat, Dec 29, 2018 at 10:52 David Villasmil <
david.villasmil.w...@gmail.com> wrote:
> I prefer using
>
> log(“L_ERR”, “[REQUEST_ROUTE]: $ci Register Request\n”);
>
> That way you have the route block where
I prefer using
log(“L_ERR”, “[REQUEST_ROUTE]: $ci Register Request\n”);
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)
Cheers
On Sat, 29 Dec 2018 at 11:02, Mojtaba wrote:
> Hi,
> You could use xlog
Hi,
You could use xlog instead of log, like this:
xlog("Register request...\n");
With Regards.Mojtaba
On Sat, Dec 29, 2018 at 11:14 AM Muhammad Allaudin
wrote:
>
> Hi everyone,
>
> I have recently started working on Kamailio, I am trying to learn the basics.
> For "Register" route, I am trying
Hi everyone,
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.
*if(is_method("REGISTER")){*
* log(2, "Register request");*
*}*
I
12 matches
Mail list logo