Route inbound PSTN calls through FlowerCore IVR, add missing star codes

from-twilio: Changed from Dial(PJSIP/100) to Stasis(flowercore-pbx,inbound-pstn)
so inbound calls go through the FlowerCore IVR workflow engine instead
of directly ringing extensions.

Added missing star codes: *43 (echo test), *80 (intercom), *88 (conference),
*41/*411 (directory). Added catch-all _*X. pattern for future star codes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Andrew M. Stoltz
2026-03-20 10:51:28 -05:00
parent 8611fe521a
commit 92792cdc50

View File

@@ -179,20 +179,15 @@ data:
writeprotect=no
[from-twilio]
; Inbound calls from Twilio SIP trunk
; Ring reception (100) for 30s, then try all extensions in ring group
; Inbound calls from Twilio SIP trunk -> FlowerCore IVR workflow
exten => _+X.,1,Answer()
same => n,Playback(silence/1)
same => n,Dial(PJSIP/100,30,t)
same => n,Dial(PJSIP/101&PJSIP/102&PJSIP/103,30,t)
same => n,Playback(vm-goodbye)
same => n,Wait(1)
same => n,Stasis(flowercore-pbx,inbound-pstn,${EXTEN})
same => n,Hangup()
exten => _X.,1,Answer()
same => n,Playback(silence/1)
same => n,Dial(PJSIP/100,30,t)
same => n,Dial(PJSIP/101&PJSIP/102&PJSIP/103,30,t)
same => n,Playback(vm-goodbye)
same => n,Wait(1)
same => n,Stasis(flowercore-pbx,inbound-pstn,${EXTEN})
same => n,Hangup()
[from-internal]
@@ -247,6 +242,20 @@ data:
same => n,Hangup()
exten => *97,1,Stasis(flowercore-pbx,starcode,*97)
same => n,Hangup()
exten => *43,1,Stasis(flowercore-pbx,starcode,*43)
same => n,Hangup()
exten => *80,1,Stasis(flowercore-pbx,starcode,*80)
same => n,Hangup()
exten => *88,1,Stasis(flowercore-pbx,starcode,*88)
same => n,Hangup()
exten => *41,1,Stasis(flowercore-pbx,starcode,*41)
same => n,Hangup()
exten => *411,1,Stasis(flowercore-pbx,starcode,*411)
same => n,Hangup()
; Catch-all for any other star codes
exten => _*X.,1,Stasis(flowercore-pbx,starcode,${EXTEN})
same => n,Hangup()
[default]
exten => _X.,1,NoOp(Unhandled call to ${EXTEN})