Reputation: 1827
What are the datatypes available in asterisk server dial plan?
how to check the date type?
Upvotes: 2
Views: 308
Reputation: 21
There is no type in dialplan, everything can be treated string variable.
But if required, you can always use your favorite programming language using AGI.
Upvotes: -1
Reputation: 54332
No, in dialplan everything is a string. You can use AGI to check date or compare various things.
What exactly do you need? I'm guessing but maybe this will be useful: How to include contexts based on time and date
Upvotes: 0
Reputation: 8604
Asterisk dial plan language is weakly-typed (has no 'types' as such). All values are strings, but can be treated as numbers in some context (e.g. arithmetic expressions). The only way to check 'the type' is to use a regular expression to check the value.
There are some functions like HASH or SORT which seem to operate on some complex data types, but these are not main features of the language, but rather helpers for specific use cases.
Upvotes: 3