feat(outbound): add voice announcement on trunk congestion & clarify MoH options
This commit is contained in:
1 parent
a308f5d0ed
commit
e98410202f
4 files changed
+47
-9
No files matched your search
+23
-1
@@ -1240,6 +1240,24 @@ class ConfigGenerator
|
||||
$lines[] = " same => n,Congestion(20)";
|
||||
$lines[] = " same => n,Hangup()";
|
||||
$lines[] = "";
|
||||
$lines[] = "exten => all-circuits-busy,1,NoOp(Terminate Call: Message vocal toutes les lignes sont occupees)";
|
||||
$lines[] = " same => n,Answer()";
|
||||
$lines[] = " same => n,Playback(all-circuits-busy-now)";
|
||||
$lines[] = " same => n,Congestion(10)";
|
||||
$lines[] = " same => n,Hangup()";
|
||||
$lines[] = "";
|
||||
$lines[] = "exten => _play-custom-.,1,NoOp(Terminate Call: Lecture annonce personnalisee \${EXTEN:12})";
|
||||
$lines[] = " same => n,Answer()";
|
||||
$lines[] = " same => n,Playback(custom/\${EXTEN:12})";
|
||||
$lines[] = " same => n,Congestion(10)";
|
||||
$lines[] = " same => n,Hangup()";
|
||||
$lines[] = "";
|
||||
$lines[] = "exten => _play-.,1,NoOp(Terminate Call: Lecture annonce systeme \${EXTEN:5})";
|
||||
$lines[] = " same => n,Answer()";
|
||||
$lines[] = " same => n,Playback(\${EXTEN:5})";
|
||||
$lines[] = " same => n,Congestion(10)";
|
||||
$lines[] = " same => n,Hangup()";
|
||||
$lines[] = "";
|
||||
$lines[] = "exten => zapateller,1,NoOp(Terminate Call: Tonalite SIT Anti-Robot)";
|
||||
$lines[] = " same => n,Answer()";
|
||||
$lines[] = " same => n,Zapateller()";
|
||||
@@ -2130,6 +2148,9 @@ class ConfigGenerator
|
||||
if ($dest === 'congestion' || $dest === 'terminate-congestion') {
|
||||
return 'Goto(app-terminate,congestion,1)';
|
||||
}
|
||||
if ($dest === 'all-circuits-busy' || $dest === 'voice-all-circuits-busy') {
|
||||
return 'Goto(app-terminate,all-circuits-busy,1)';
|
||||
}
|
||||
if ($dest === 'zapateller' || $dest === 'terminate-zapateller') {
|
||||
return 'Goto(app-terminate,zapateller,1)';
|
||||
}
|
||||
@@ -2160,7 +2181,8 @@ class ConfigGenerator
|
||||
if (str_starts_with($dest, 'sound-')) {
|
||||
$snd = $this->resolveSoundFile(substr($dest, 6));
|
||||
if ($snd !== '') {
|
||||
return "Playback({$snd})";
|
||||
$safeTarget = str_replace('/', '-', $snd);
|
||||
return "Goto(app-terminate,play-{$safeTarget},1)";
|
||||
}
|
||||
return 'Goto(app-terminate,hangup,1)';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user