[asterisk-users] Use dialplan variables from MySQL database and replace with value
Joshua Colp
jcolp at digium.com
Wed Mar 18 16:21:20 CDT 2015
Jonas Kellens wrote:
> Hello
>
>
> i have the following field (text string) in a MySQL database :
> "${KNUMMER} ${phone_number_to} ${phone_number_from} ${CHANNEL:4}"
>
> I read this string form the database and want to have the dialplan
> variables to be replaced with the correct content.
Sounds like you need the EVAL dialplan function[1].
https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Function_EVAL
Cheers,
--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org
More information about the asterisk-users
mailing list