feat(trunk): add customizable Asterisk Trunk Dial Options field with quick presets (tTR, TR, T)

This commit is contained in:
sorcier committed 2026-11-04 00:18:37 +01:00
1 parent bf2e2098f0
commit b3c98834c8
5 files changed
+43 -3

No files matched your search

+22
View File
@@ -3517,6 +3517,28 @@ $currentUser = Auth::getUsername();
</label>
</div>
</div>
<!-- Options d'appel Asterisk (Trunk Dial Options style FreePBX) -->
<div class="p-3.5 rounded-xl bg-anthracite-950 border border-anthracite-700/80 flex flex-col sm:flex-row sm:items-center justify-between gap-3">
<div class="max-w-xl">
<label class="block text-xs font-bold text-white mb-0.5 flex items-center gap-1.5">
<span>📞 Options d'appel Asterisk (Asterisk Trunk Dial Options)</span>
<span class="px-1.5 py-0.2 rounded bg-indigo-500/20 text-indigo-300 text-[10px] font-mono font-semibold">FreePBX Dial Options</span>
</label>
<p class="text-[11px] text-slate-300">
Paramètres transmis à l'application Asterisk <code class="text-indigo-300">Dial()</code> pour ce Trunk. <code class="text-emerald-300">R</code> génère la tonalité de sonnerie locale (indispensable pour les passerelles analogiques/FXO type HT813/Livebox). <code class="text-indigo-300">T/t</code> autorise le transfert DTMF.
</p>
</div>
<div class="flex items-center gap-2">
<input type="text" name="dial_options" value="tTR" placeholder="tTR"
class="w-24 px-3 py-1.5 rounded-lg bg-anthracite-900 border border-anthracite-700 text-xs text-white font-mono font-bold text-center focus:border-indigo-500">
<div class="flex items-center gap-1">
<button type="button" onclick="setTrunkDialOptionsPreset('tTR')" class="px-2 py-1 rounded bg-anthracite-800 hover:bg-anthracite-700 text-[11px] text-slate-300 hover:text-white border border-anthracite-600 transition" title="Par défaut recommandé (Transfert DTMF + Tonalité locale)">tTR</button>
<button type="button" onclick="setTrunkDialOptionsPreset('TR')" class="px-2 py-1 rounded bg-emerald-500/20 hover:bg-emerald-500/30 text-[11px] text-emerald-300 border border-emerald-500/40 transition" title="Style FreePBX standard pour passerelles FXO">TR</button>
<button type="button" onclick="setTrunkDialOptionsPreset('T')" class="px-2 py-1 rounded bg-indigo-500/20 hover:bg-indigo-500/30 text-[11px] text-indigo-300 border border-indigo-500/40 transition" title="Standard SIP sans forçage sonnerie">T</button>
</div>
</div>
</div>
</div>
<!-- SOUS-ONGLET 2 : ROUTES ENTRANTES & FILTRAGE PAR ID APPELANT (INBOUND ROUTES) -->