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:
@@ -179,20 +179,15 @@ data:
|
|||||||
writeprotect=no
|
writeprotect=no
|
||||||
|
|
||||||
[from-twilio]
|
[from-twilio]
|
||||||
; Inbound calls from Twilio SIP trunk
|
; Inbound calls from Twilio SIP trunk -> FlowerCore IVR workflow
|
||||||
; Ring reception (100) for 30s, then try all extensions in ring group
|
|
||||||
exten => _+X.,1,Answer()
|
exten => _+X.,1,Answer()
|
||||||
same => n,Playback(silence/1)
|
same => n,Wait(1)
|
||||||
same => n,Dial(PJSIP/100,30,t)
|
same => n,Stasis(flowercore-pbx,inbound-pstn,${EXTEN})
|
||||||
same => n,Dial(PJSIP/101&PJSIP/102&PJSIP/103,30,t)
|
|
||||||
same => n,Playback(vm-goodbye)
|
|
||||||
same => n,Hangup()
|
same => n,Hangup()
|
||||||
|
|
||||||
exten => _X.,1,Answer()
|
exten => _X.,1,Answer()
|
||||||
same => n,Playback(silence/1)
|
same => n,Wait(1)
|
||||||
same => n,Dial(PJSIP/100,30,t)
|
same => n,Stasis(flowercore-pbx,inbound-pstn,${EXTEN})
|
||||||
same => n,Dial(PJSIP/101&PJSIP/102&PJSIP/103,30,t)
|
|
||||||
same => n,Playback(vm-goodbye)
|
|
||||||
same => n,Hangup()
|
same => n,Hangup()
|
||||||
|
|
||||||
[from-internal]
|
[from-internal]
|
||||||
@@ -247,6 +242,20 @@ data:
|
|||||||
same => n,Hangup()
|
same => n,Hangup()
|
||||||
exten => *97,1,Stasis(flowercore-pbx,starcode,*97)
|
exten => *97,1,Stasis(flowercore-pbx,starcode,*97)
|
||||||
same => n,Hangup()
|
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]
|
[default]
|
||||||
exten => _X.,1,NoOp(Unhandled call to ${EXTEN})
|
exten => _X.,1,NoOp(Unhandled call to ${EXTEN})
|
||||||
|
|||||||
Reference in New Issue
Block a user