Hi Guys,
Scenario is:
02 Tenants with same extension number.
If an incoming call is routed to tenant followme extension, it’s end up in non-tenant followme extension.
I correct my dialplan to behavior correctly.
This is my sub-extensions-fwm mod:
[sub-extensions-fwm]
exten => _[*#A-Za-z0-9].,1,NoOp(Trying To reach extension follow-me)
same => n,Set(CALLEE=${EXTEN})
same => n,Set(FWM_EXTEN=FW${CUT(CALLEE,-,2)})
; same => n,Set(FWM_CTXT=ext-followme)
same => n,Set(FWM_CTXT=${FOLLOWME_CONTEXT})
same => n,GotoIf(${DIALPLAN_EXISTS(${FWM_CTXT},${FWM_EXTEN},1)}?:noexist)
; same => n,Gosub(ext-followme,${FWM_EXTEN},1)
same => n,Gosub(${FWM_CTXT},${FWM_EXTEN},1)
same => n,Playback(followme/sorry)
same => n,Goto(end)
same => n(noexist),Goto(invalid-dest,s,1)
same => n(end),Hangup
Please review it. It’s working correctly on my server.
BTW, VitalPBX is a great software, and it was fun troubleshoot this issue.