Skip to content

Commit

Permalink
Merge pull request #4 from nethesis/6039
Browse files Browse the repository at this point in the history
Use extension context in group pickup list instead of from-internal nethesis/dev#6039
  • Loading branch information
Stell0 committed Jun 24, 2021
2 parents 22e42ee + 3c49192 commit db5229d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion functions.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1305,7 +1305,10 @@ function core_do_get_config($engine) {
$picklist .= '&'.$exten.'@PICKUPMARK';

foreach ($grps as $grp) {
$picklist .= '&'.$grp.'@from-internal';
// Add GROPUEXTENSION_CONTEXT nethesis/dev#6039
$exten_data = \FreePBX::Core()->getDevice($exten);
$exten_context = (!empty($exten_data['context']) ? $exten_data['context'] : 'from-internal');
$picklist .= '&'.$grp.'@'.$exten_context;
$picklist .= '&'.$grp.'@from-internal-xfer';
$picklist .= '&'.$grp.'@ext-group';
}
Expand Down

0 comments on commit db5229d

Please sign in to comment.