[general] static=yes writeprotect=no [internal] ; Dial 600 from any extension to hear yourself (echo test) — useful for ; confirming audio/codec works. exten => 600,1,Answer() same => n,Echo() same => n,Hangup() ; Generic extension-to-extension dialing — matches any active PJSIP ; extension (3, 4 or 5 digits) created via the admin panel, so new ; extensions never need a dialplan change. Every call is recorded ; (MixMonitor) per the client's requirement that all calls be recorded. exten => _XXX,1,Answer() same => n,MixMonitor(${UNIQUEID}.wav) same => n,Dial(PJSIP/${EXTEN},20) same => n,Hangup() exten => _XXXX,1,Answer() same => n,MixMonitor(${UNIQUEID}.wav) same => n,Dial(PJSIP/${EXTEN},20) same => n,Hangup() exten => _XXXXX,1,Answer() same => n,MixMonitor(${UNIQUEID}.wav) same => n,Dial(PJSIP/${EXTEN},20) same => n,Hangup() ; Outbound dialing to real mobile numbers via the SIP trunk — this section ; is appended to by AsteriskConfigWriter (extensions_generated.conf) once a ; trunk is configured in the admin panel. #include extensions_generated.conf ; Every inbound call from any configured SIP trunk/DID lands here, gets ; recorded, and rings the "support" queue — every active agent extension ; is a member (see queues.conf / queues_members.conf, kept in sync by the ; admin panel whenever an extension is added/disabled). [from-trunk] exten => _X.,1,Answer() same => n,MixMonitor(${UNIQUEID}.wav) same => n,Set(QUEUE_NAME=${IF($["${RINGGROUP}"=""]?support:${RINGGROUP})}) same => n,Queue(${QUEUE_NAME},t,,,45) same => n,Hangup()