func_env: Add DIRNAME and BASENAME functions

Adds the DIRNAME and BASENAME functions, which are
wrappers around the corresponding C library functions.
These can be used to safely and conveniently work with
file paths and names in the dialplan.

ASTERISK-29628 #close

Change-Id: Id3aeb907f65c0ff96b6e57751ff0cb49d61db7f3
This commit is contained in:
Naveen Albert
2021-09-03 00:00:50 +00:00
committed by George Joseph
parent b6b7b1490b
commit 19de228e8b
2 changed files with 92 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
Subject: func_env.c
Two new functions, DIRNAME and BASENAME, are now
included which allow users to obtain the directory
or the base filename of any file.