mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
Merged revisions 286931 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r286931 | jpeeler | 2010-09-15 14:22:15 -0500 (Wed, 15 Sep 2010) | 16 lines Add parking extension for non-default parking lots. This is a new feature that allows for parking to custom parking lots to be accessed directly, rather than with channel variables or by changing the default parking lot. The extension is set with the parkext option just as the default parking lot is done. Also, the manager action has been updated to optionally allow a specified parking lot. (closes issue #14882) Reported by: vmikhnevych Patches: patch_14882.txt uploaded by mnick (license 874) modified by me Review: https://reviewboard.asterisk.org/r/884/ ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@286939 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1939,7 +1939,7 @@ static void *__analog_ss_thread(void *data)
|
||||
} else {
|
||||
analog_play_tone(p, index, ANALOG_TONE_DIALTONE);
|
||||
}
|
||||
if (ast_exists_extension(chan, chan->context, exten, 1, p->cid_num) && strcmp(exten, ast_parking_ext())) {
|
||||
if (ast_exists_extension(chan, chan->context, exten, 1, p->cid_num) && !ast_parking_ext_valid(exten, chan, chan->context)) {
|
||||
if (!res || !ast_matchmore_extension(chan, chan->context, exten, 1, p->cid_num)) {
|
||||
if (getforward) {
|
||||
/* Record this as the forwarding extension */
|
||||
@@ -2090,7 +2090,7 @@ static void *__analog_ss_thread(void *data)
|
||||
getforward = 0;
|
||||
memset(exten, 0, sizeof(exten));
|
||||
len = 0;
|
||||
} else if ((p->transfer || p->canpark) && !strcmp(exten, ast_parking_ext()) &&
|
||||
} else if ((p->transfer || p->canpark) && ast_parking_ext_valid(exten, chan, chan->context) &&
|
||||
p->subs[ANALOG_SUB_THREEWAY].owner &&
|
||||
ast_bridged_channel(p->subs[ANALOG_SUB_THREEWAY].owner)) {
|
||||
/* This is a three way call, the main call being a real channel,
|
||||
|
Reference in New Issue
Block a user