Call_Direction-Outbound Route issues

Status
Not open for further replies.

dcitelecom

Member
Oct 20, 2021
139
3
18
61
Not sure if this is a problem, but I noticed a couple of issues with the new "call_direction-outbound rule" that is now created for each new "outbound route"

1. Initially the Regex in the "call_direction-outbound rule" is the same as the Regex in the matching "outbound route". However, if I make changes to the Regex in the "outbound route" (which happens), those changes are not passed down to the "call_direction-outbound rule" i.e. don't match anymore.

2. If I delete an "outbound route" (for whatever reason) the matching "call_direction-outbound rule" is not deleted and stays there forever. Isn't that a problem?

3. If I delete the "call_direction-outbound rule" and keep the "outbound route" there is no warning message.

If this new "call_direction-outbound" rule is really required, shouldn't there be safeguards or warnings to ensure it always matches with the corresponding outbound rule? What happens if a system has many mismatched and leftover "call_direction-outbound" rules? Just wondering.
 

hfoster

Active Member
Jan 28, 2019
684
81
28
34
Yeh, it's a bit bollocks really. I tend to just remove it all and make my own at the end, usually making the regex encapsulate all the routes like:

^0\d{6,20}$

Problem is, I can't really think of an alternative to suggest as a pull request that would be simple to implement. Thankfully, it seems like they really only affect the CDRs.
 

dcitelecom

Member
Oct 20, 2021
139
3
18
61
So you delete all 'call_direction-outbound' rules and you keep only one with regex ^0\d{6,20}$ to catch all routes? If that works for proper CDR then it's much easier than maintaining multiple 'call_direction-outbound' rules.
 

hfoster

Active Member
Jan 28, 2019
684
81
28
34
Yeh, depends on the outbound routes obviously, but that catches most of the rules for most tenants. All it does is stick an outbound flag on the call so the rest of the dialplan acts appropriately.
 

dcitelecom

Member
Oct 20, 2021
139
3
18
61
^0\d{6,20}$ catches overseas calls starting with zero but I think I get the idea.
^0\d{6,20}$|^1\d{10}$|(^911$|^933$) regex in a 'call_direction-outbound' rule should catch USA, overseas and 911 calls.
 
Status
Not open for further replies.