I don't believe there is a way to pull multiple values back from the call to api:execute. However, Lua has native pattern matching with captures. Here are a few resources for you:
Hello!
How can I use regexp with LUA scripts? Yes, I found I may use
api:execute('regex'....) but can't understand how to get matched strings
from it. For example my re is (\d+)#(\d+) and I want to get $1 and $2 in
some variables.
--
Regards,
Boris
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org