[SR-Users] Working with Variables.

dotnetdub dotnetdub at gmail.com
Wed Oct 27 08:30:09 CEST 2010


On 27 October 2010 07:27, Alex Balashov <abalashov at evaristesys.com> wrote:

> On 10/27/2010 02:16 AM, dotnetdub wrote:
>
>  Where is the best place to lookup documentation about working with
>> variables.
>>
>> I come from the if len(x$)=y then
>>
>>                                     xxx
>>                                     xxx
>>                                     xxx
>>
>>                         End If
>>
>>
>>  school!
>>
>> Looking for the best place to lookup documentation for checking
>> characters, lengths of strings and removing or prepending stuff based
>> on the results.
>>
>
> The best place to learn about types of variables and variable-related
> syntax and behaviour in general is the core cookbook:
>
>  http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.1.x
>
> This also describes many matching operations, operators for prepending,
> etc.
>
> More sophisticated string operations, such as selection of substrings,
> regular expression matching, component extraction, splitting into tokens by
> a delimeter, etc. are known as "transformations."  They can be applied to
> most variables, and an examination of them is found here:
>
>  http://www.kamailio.org/dokuwiki/doku.php/transformations:3.1.x
>
> If the question is more about which variables are defined/exposed in
> certain situations, the pseudovariables doc is most appropriate:
>
>  http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:3.1.x
>
> -- Alex
>



Thank you for the excellent swift reply. Exactly what I required.

Regards
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20101027/3c5cf502/attachment.htm>


More information about the sr-users mailing list