Skip to content

Commit

Permalink
Исправил баг с установкой значения DIAL_COMMAND
Browse files Browse the repository at this point in the history
  • Loading branch information
boffart committed May 7, 2024
1 parent d2abae1 commit 9bbdeae
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ private function generateProviderContext(string &$conf, $id_dialplan, array $rou
$dialCommand = $this->getDialCommand($rout);

// Set DIAL_COMMAND variable
$conf .= 'same => n,ExecIf($["${DIAL_COMMAND}x" == "x"]?Set(DIAL_COMMAND='.$dialCommand.'))' . "\n\t";
$conf .= 'same => n,Set(DIAL_COMMAND='.$dialCommand.')' . "\n\t";
$conf .= 'same => n,ExecIf($["${DEF_DIAL_COMMAND}x" != "x"]?Set(DIAL_COMMAND=${DEF_DIAL_COMMAND}))' . "\n\t";

// Customize all-outgoing context
$conf .= 'same => n,GosubIf($["${DIALPLAN_EXISTS(all-outgoing-custom,${EXTEN},1)}" == "1"]?all-outgoing-custom,${EXTEN},1)' . "\n\t";
Expand Down

0 comments on commit 9bbdeae

Please sign in to comment.