[SR-Users] Print current route

Daniel-Constantin Mierla miconda at gmail.com
Thu Jun 22 09:15:22 CEST 2017


Hello,

no variable to return route block name, afaik. You can get the cfg line,
if that helps in any way for the moment:

  -
https://www.kamailio.org/wiki/cookbooks/devel/pseudovariables#cfg_key_-_config_file_attributes

Perhaps it can be added another one to return route name. For now you
can set a variable at the beginning of route block and then use that
variable in the log messages.

Cheers,
Daniel


On 21.06.17 19:00, David Villasmil wrote:
> Hello guys,
>
> Is is possible to log the current (function) route?
> Something like 
> route[WHATEVER]{
>    xlog("$curroute: Hello World\n");
> }
>
>
> and it would print:
> WHATEVER: Hello World
>
>
>
> Regards,
>
> David Villasmil
> email: david.villasmil.work at gmail.com
> <mailto:david.villasmil.work at gmail.com>
> phone: +34669448337
>>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170622/35670cef/attachment-0001.html>


More information about the sr-users mailing list