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];
|
||||
max = atoi(argv[2]);
|
||||
|
||||
if (argc == 4) {
|
||||
if (argc >= 4) {
|
||||
xfer_exten = argv[3];
|
||||
} else {
|
||||
xfer_exten = limit_def_xfer_exten;
|
||||
|
@ -568,7 +568,7 @@ SWITCH_STANDARD_APP(limit_function)
|
|||
got = atoi(buf);
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue