mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-30 02:20:11 +00:00
ivr menu tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3985 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
832c48cb9b
commit
aed84d4179
@ -3965,7 +3965,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_menu_bind_action(switch_ivr_menu_t *m
|
|||||||
action->bind = switch_core_strdup(menu->pool, bind);
|
action->bind = switch_core_strdup(menu->pool, bind);
|
||||||
action->next = menu->actions;
|
action->next = menu->actions;
|
||||||
action->arg = switch_core_strdup(menu->pool, arg);
|
action->arg = switch_core_strdup(menu->pool, arg);
|
||||||
len = (uint32_t)strlen(action->bind);
|
len = (uint32_t)strlen(action->bind) + 1;
|
||||||
if (len > menu->inlen) {
|
if (len > menu->inlen) {
|
||||||
menu->inlen = len;
|
menu->inlen = len;
|
||||||
}
|
}
|
||||||
@ -3986,7 +3986,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_menu_bind_function(switch_ivr_menu_t
|
|||||||
action->bind = bind;
|
action->bind = bind;
|
||||||
action->next = menu->actions;
|
action->next = menu->actions;
|
||||||
action->arg = switch_core_strdup(menu->pool, arg);
|
action->arg = switch_core_strdup(menu->pool, arg);
|
||||||
len = (uint32_t)strlen(action->bind);
|
len = (uint32_t)strlen(action->bind) + 1;
|
||||||
if (len > menu->inlen) {
|
if (len > menu->inlen) {
|
||||||
menu->inlen = len;
|
menu->inlen = len;
|
||||||
}
|
}
|
||||||
@ -4029,7 +4029,7 @@ static switch_status_t play_or_say(switch_core_session_t *session, switch_ivr_me
|
|||||||
len = 1;
|
len = 1;
|
||||||
ptr = NULL;
|
ptr = NULL;
|
||||||
} else {
|
} else {
|
||||||
len = menu->inlen + 1;
|
len = menu->inlen;
|
||||||
ptr = menu->ptr;
|
ptr = menu->ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user