Hello all,
I’ve been working recently on quite a complicated project that requires some complex routing and pattern matching between the PBX and 3 more systems.
I came across two issues, which from what I understood should be an easy fix…
The first issue is that we wanted to allow dialing different patterns in different IVRs, so we created a directory and tried adding a pattern. After testing, the dialplan is written that it tries to go to the actual pattern instead of the dialed extension.
[from-ivr-directory-4]
include => from-ivr-directory-4-custom
exten => 502,1,Macro(blkvm-clr,)
exten => 502,n,Set(__NODEST=)
exten => 502,n,Goto(from-internal,502,1)
exten => _41XX,1,Macro(blkvm-clr,)
exten => _41XX,n,Set(__NODEST=)
exten => _41XX,n,Goto(from-internal,_41XX,1)
So I created a feature request and submitted a PR that changes the dialplan to go to ${EXTEN}
which ends up looking like this:
[from-ivr-directory-4]
include => from-ivr-directory-4-custom
exten => 502,1,Macro(blkvm-clr,)
exten => 502,n,Set(__NODEST=)
exten => 502,n,Goto(from-internal,${EXTEN},1)
exten => _41XX,1,Macro(blkvm-clr,)
exten => _41XX,n,Set(__NODEST=)
exten => _41XX,n,Goto(from-internal,${EXTEN},1)
The second issue is, that we want to be able to set the outbound caller ID that are routed to the other systems from a variable on the outbound route level. The variable would look like this:
${IF($["empty${myVar}"!="empty"]?${myVar}:8884441234)}
The problem is, that the outbound route Route CID field only accepts 40 characters.
So I created a feature request and submitted a PR that increases from 40 to 255 characters
I would love to see both features in FreePBX, or at least in edge so others can test as well.
This is my first and second PR ever to the FreePBX project, so please go easy on me… LOL.
Thanks
TL;DR
Two feature requests with PRs, I’d love to see in FreePBX.
First:
https://issues.freepbx.org/browse/FREEPBX-23693
https://git.freepbx.org/projects/FREEPBX/repos/ivr/pull-requests/38/overview
Second:
https://issues.freepbx.org/browse/FREEPBX-23697
https://git.freepbx.org/projects/FREEPBX/repos/core/pull-requests/493/overview