mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
update script langs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8249 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user