[SR-Users] Build-variable name for route[name]

Karsten Horsmann khorsmann at gmail.com
Sat May 2 15:06:24 CEST 2020


David,

thank you again for your help. Dunno why i didnt see it until now. Sorry
for the noise.

Cheers
Karsten

Am Sa., 2. Mai 2020 um 14:58 Uhr schrieb David Villasmil <
david.villasmil.work at gmail.com>:

> Actually, it is here:
>
> https://www.kamailio.org/wiki/cookbooks/5.2.x/pseudovariables
>
>
> On Sat, 2 May 2020 at 13:51, David Villasmil <
> david.villasmil.work at gmail.com> wrote:
>
>> Not sure there’s documentation. I asked because I couldn’t find it
>> either, and Daniel added it I think on 5.2.
>>
>> Might be a good idea to document it, though.
>>
>> On Sat, 2 May 2020 at 13:42, Karsten Horsmann <khorsmann at gmail.com>
>> wrote:
>>
>>> Hi David,
>>>
>>> thank you :) I searched in my emails but you are an active user here.
>>>
>>> After searching for $cfg(route) i found it only in the new feature stuff
>>> website. Hmmm.
>>> Where should i looked for documentation? The module one didnt showed it
>>> up, the cookbook also not.
>>>
>>> https://www.kamailio.org/wiki/features/new-in-5.1.x
>>>
>>>
>>>
>>> Am Sa., 2. Mai 2020 um 14:31 Uhr schrieb David Villasmil <
>>> david.villasmil.work at gmail.com>:
>>>
>>>> For the records, I added a new variable in cfg class to return route
>>>> name for current action whenever it is possible: $cfg(route).
>>>>
>>>> Cheers,
>>>> Daniel
>>>>
>>>> On Sat, 2 May 2020 at 13:24, David Villasmil <
>>>> david.villasmil.work at gmail.com> wrote:
>>>>
>>>>> There is, search the mailing list, I’m using it somewhere :) Daniel
>>>>> gave me the answer a while back.
>>>>>
>>>>> On Sat, 2 May 2020 at 12:45, Karsten Horsmann <khorsmann at gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Hi List,
>>>>>>
>>>>>> my google skills dont help me.
>>>>>>
>>>>>> I know there is a kind of build-in variable that you can use for
>>>>>> example
>>>>>> to return the name of the route you are referring to right now.
>>>>>>
>>>>>> here some pseudo kamailio-scripting-language:
>>>>>>
>>>>>> route[FANCY_ROUTE] {
>>>>>>    xlog("L_INFO", "$??? something happened\n";
>>>>>> }
>>>>>>
>>>>>> I search for $??? (as placeholder) which should return the route-name
>>>>>> "route[FANCY_ROUTE]" or something like that?
>>>>>>
>>>>>> Take care.
>>>>>>
>>>>>> --
>>>>>> Cheers
>>>>>> *Karsten Horsmann*
>>>>>> _______________________________________________
>>>>>> Kamailio (SER) - Users Mailing List
>>>>>> sr-users at lists.kamailio.org
>>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>>
>>>>> --
>>>>> Regards,
>>>>>
>>>>> David Villasmil
>>>>> email: david.villasmil.work at gmail.com
>>>>> phone: +34669448337
>>>>>
>>>> --
>>>> Regards,
>>>>
>>>> David Villasmil
>>>> email: 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
>>>>
>>>
>>>
>>> --
>>> Mit freundlichen Grüßen
>>>
>>> *Karsten Horsmann*
>>> _______________________________________________
>>> Kamailio (SER) - Users Mailing List
>>> sr-users at lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>> --
>> Regards,
>>
>> David Villasmil
>> email: david.villasmil.work at gmail.com
>> phone: +34669448337
>>
> --
> Regards,
>
> David Villasmil
> email: 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
>


-- 
Mit freundlichen Grüßen
*Karsten Horsmann*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200502/3b268702/attachment.html>


More information about the sr-users mailing list