On 27 October 2010 07:27, Alex Balashov <abalashov@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