update script langs

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8249 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2008-05-02 16:43:54 +00:00
parent 540a2fecf8
commit aa47e3e5fd
13 changed files with 1343 additions and 212 deletions

View File

@@ -601,6 +601,27 @@ static struct iam_s {
};
SWITCH_DECLARE(switch_status_t) switch_ivr_menu_str2action(const char *action_name, switch_ivr_action_t *action)
{
int i;
if (!switch_strlen_zero(action_name)) {
for(i = 0;;i++) {
if (!iam[i].name) {
break;
}
if (!strcasecmp(iam[i].name, action_name)) {
*action = iam[i].action;
return SWITCH_STATUS_SUCCESS;
}
}
}
return SWITCH_STATUS_FALSE;
}
static switch_bool_t is_valid_action(const char *action)
{
int i;