Re: [SR-Users] A bit trick in msg_translator.c source file

2018-12-29 Thread Henning Westerholt
Am Samstag, 29. Dezember 2018, 10:43:54 CET schrieb Mojtaba: > Hello , > Does anybody know why the lenght of both ip-address (s and name) in > check_via_address function in msg_translator.c source file dose not > check first? > Actually i think it's better do. > For example if via:192.168.122.1

Re: [SR-Users] Logging from cfg file

2018-12-29 Thread David Villasmil
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

Re: [SR-Users] kamailio does not responde if an rtpengine is unreachable

2018-12-29 Thread David Escartin
hello Daniel Thanks a lot for the update. We will also test it. It has not 100% relation with this issue, but i only wanted to share the setup we have for cases where a rtpengine fails having high traffic load, to minimize the impact on the kamailio processes. modparam("rtpengine",

Re: [SR-Users] Logging from cfg file

2018-12-29 Thread Mojtaba
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

[SR-Users] A bit trick in msg_translator.c source file

2018-12-29 Thread Mojtaba
Hello , Does anybody know why the lenght of both ip-address (s and name) in check_via_address function in msg_translator.c source file dose not check first? Actually i think it's better do. For example if via:192.168.122.1 and src:192.168.122.100, the result returned true, as they are not the

Re: [SR-Users] Logging from cfg file

2018-12-29 Thread 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

Re: [SR-Users] Logging from cfg file

2018-12-29 Thread * Paolo Visintin - evosip.cloud
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

Re: [SR-Users] Logging from cfg file

2018-12-29 Thread Joel Serrano
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 >

Re: [SR-Users] Logging from cfg file

2018-12-29 Thread Joel Serrano
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