Dialplan modification for Followme in Tennant PBX

VitalPBX Community Support General Discussion Dialplan modification for Followme in Tennant PBX

  • Post
    lmoreira
    Participant

    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.

    0
Viewing 2 replies - 1 through 2 (of 2 total)
  • Replies
    Up
    0
    Down

    Thanks for this, we will fix it on next VitalPBX’s versions.

    We are so glad to hear that you like VitalPBX.

    0
    PitzKey
    Participant
    US
    Up
    0
    Down

    Good job @lmoreira Thank you for that!

    0
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.