mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-08 08:51:50 +00:00
add patch from MODAPP-161
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10288 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
cf36f64573
commit
23b022fa33
@ -547,7 +547,7 @@ SWITCH_STANDARD_APP(limit_function)
|
|||||||
id = argv[1];
|
id = argv[1];
|
||||||
max = atoi(argv[2]);
|
max = atoi(argv[2]);
|
||||||
|
|
||||||
if (argc == 4) {
|
if (argc >= 4) {
|
||||||
xfer_exten = argv[3];
|
xfer_exten = argv[3];
|
||||||
} else {
|
} else {
|
||||||
xfer_exten = limit_def_xfer_exten;
|
xfer_exten = limit_def_xfer_exten;
|
||||||
@ -568,7 +568,7 @@ SWITCH_STANDARD_APP(limit_function)
|
|||||||
got = atoi(buf);
|
got = atoi(buf);
|
||||||
|
|
||||||
if (got + 1 > max) {
|
if (got + 1 > max) {
|
||||||
switch_ivr_session_transfer(session, xfer_exten, NULL, NULL);
|
switch_ivr_session_transfer(session, xfer_exten, argv[4], argv[5]);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user