Joan Bautista
2005-Jun-24 07:32 UTC
[Asterisk-Users] Extensions Puzzle: Contexts Confligting with each other.
I have a setup for 2 companies. Both ones should have separate
schedules and differents menu options. here is an example:
[default]
include=> company1
include=> company2
[company1]
include => optionscompany1
[company2]
include => optionscompany2
[optionscompany1]
; option 0 Operator
exten => 0,1,Playback,CallTransfer_SP
exten => 0,3,SetCIDName,Operator
exten => 0,4,Goto,CMP1|1100|1
; option 1 Spanish
;exten => 1,1,SetLanguage(sp)
;exten => 1,2,Goto(day1|${CENTRAL1}|7))
; option 2 Addresss
exten => 2,1,Directory,default
exten => 2,2,Goto(day1|${CENTRAL1}|7))
; option 3
exten => 3,1,Playback,CallTransfer_SP
exten => 3,2,Goto(day1|${CENTRAL1}|7))
[optionscompany2]
; option 0 Operator
exten => 0,1,Playback,CallTransfer_SP
exten => 0,3,SetCIDName,Operator
exten => 0,4,Goto,CMP2|1100|1
; option 1 Spanish
;exten => 1,1,SetLanguage(sp)
;exten => 1,2,Goto(day2|${CENTRAL2}|7))
; option 2 Addresss
exten => 2,1,Directory,default
exten => 2,2,Goto(day2|${CENTRAL2}|7))
; option 3
exten => 3,1,Playback,CallTransfer_SP
exten => 3,2,Goto(day2|${CENTRAL2}|7))
The problem I have is that if a valid comes in for Company2 and the
caller select any available options it goes to the context for options
on Company1. Is there any way to correct or prevent this from
happening?
Thanks