Outbound route for group of extensions only

Status
Not open for further replies.

mos

New Member
Sep 15, 2019
22
0
1
25
Hi All ,

in outbound route how I can create a group of extensions and add condition if the number is part of the group then allow to be routed to gateway otherwise reject it ?

thanks
 

mos

New Member
Sep 15, 2019
22
0
1
25
I am not sure this is what I asked for, I want to allow a group of extension to be able to call to a specific destination. for example, I have an outbound route called

outbound-777, I want to the below extension be able to route via this outbound route, the rest being rejected.

3331212
3334900
3330001
3331234
3338000
 

ad5ou

Active Member
Jun 12, 2018
884
196
43
the docs might be hard to decipher but will do exactly what you are asking. You can make a custom condition matching $sip_from_user to a proper regex to include those extensions.

The Toll Allow method would allow you to create the route once then easily add/change who has that "toll allow" field in their extension info
 

mos

New Member
Sep 15, 2019
22
0
1
25
Hi, I have tried the
Code:
${toll_allow}
but it seems not working, please check the screen shot attached,

I have added toll allow to "mobile" inside extension and then add condition inside outbound route
Code:
${toll_allow}
and in data column I have add "mobile"
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,412
376
83
I do it using caller_id_number as the second condition. Four digit extension numbers, 11xx go out on one outbound route, 22xx go out on another. I found using $sip_from_user for this was problematic if end users used click to dial. See the attached screen shot.
Screenshot from 2019-09-26 06-12-29.png
 

mos

New Member
Sep 15, 2019
22
0
1
25
but imagine, when you cannot define a proper regular expression for group of caller_id_numbers, maybe the numbers are not in sequence

3331212
3334900
3330001
3331234
3338000

so its better to use Toll Allow for those extensions and then in outbound route add the condition and say if the ${toll_allow} is equal "something" then it will be routed to gateway otherwise not allowed, I did this but I have no idea why it is not working .
 

ad5ou

Active Member
Jun 12, 2018
884
196
43
Adrian's method should work also but can get messy as additional extension numbers are added/removed. You can build a regex to match each extension but I feel Toll Allow method is easier to manage.
1569505290717.png
 

mos

New Member
Sep 15, 2019
22
0
1
25
As I mentioned previously I have added this configuration, but it is not working.
 

Attachments

  • Screen Shot 2019-09-26 at 7.55.21 AM.png
    Screen Shot 2019-09-26 at 7.55.21 AM.png
    17.4 KB · Views: 24
  • Screen Shot 2019-09-26 at 7.56.13 AM.png
    Screen Shot 2019-09-26 at 7.56.13 AM.png
    90.6 KB · Views: 22

rbrar

New Member
Sep 25, 2019
23
0
1
30
Hi,
Not Sure if this is gonna help but for limited users or group of users you can just set a condition based on the the extensions. For eg.
 

Attachments

  • everyonestartingwith333.PNG
    everyonestartingwith333.PNG
    2.2 KB · Views: 33
  • LimitedUsers.PNG
    LimitedUsers.PNG
    2.9 KB · Views: 34
Last edited:

mos

New Member
Sep 15, 2019
22
0
1
25
Hi all,
I tried the "rbar" solution, but didn't work, I tried many condition as attached, none of the working :(
 

Attachments

  • Screen Shot 2019-09-29 at 8.40.50 AM.png
    Screen Shot 2019-09-29 at 8.40.50 AM.png
    813.2 KB · Views: 18

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,412
376
83
@mos, I have just tested the "toll_allow" method on my test lab (Fusion 4.5.9 Fs 1.10.1) it worked first time for me.

I set up ext 201 with a toll allow values of foo and set up ext 202 with a toll allow value of bar. I then configured two gateways on different SIP trunks. Then created two outbound routes that take any number beginning with a 0 (zero) one pointing to each gateway and set up the toll allow accordingly:
Screenshot from 2019-09-29 13-15-28.png

Screenshot from 2019-09-29 13-15-54.png

This works as expected, so maybe you have some other part of your configuration that is causing you trouble.
 

rbrar

New Member
Sep 25, 2019
23
0
1
30
I have a question @mos , what's the value of 'extension in contact' and 'caller Id in from' in your gateway configuration.
 

mos

New Member
Sep 15, 2019
22
0
1
25
Thanks Adrian, for your test and explanation,

@rbrar please find the attached screenshot of the extension configuration.
 

Attachments

  • Screen Shot 2019-09-30 at 12.32.52 PM.png
    Screen Shot 2019-09-30 at 12.32.52 PM.png
    280.2 KB · Views: 34
  • Screen Shot 2019-09-30 at 12.35.47 PM.png
    Screen Shot 2019-09-30 at 12.35.47 PM.png
    287.6 KB · Views: 34

rbrar

New Member
Sep 25, 2019
23
0
1
30
Sorry @mos, the settings i am talking about should be in gateway configuration not in extension configuration.
 

mos

New Member
Sep 15, 2019
22
0
1
25
I tried different conditions please check the attachment,
so it becomes like this :

condition Caller ID Number 3238769
 

Attachments

  • Screen Shot 2019-09-29 at 8.40.38 AM.png
    Screen Shot 2019-09-29 at 8.40.38 AM.png
    773.2 KB · Views: 19

rbrar

New Member
Sep 25, 2019
23
0
1
30
Sorry @mos , is it possible to share the actual complete outbound route you are using/creating?

I might have an idea about what might be problem, why it is not working for you.
 

mos

New Member
Sep 15, 2019
22
0
1
25
Hi rbrar, thanks for your response, please find the screenshot of the outbound route for both condition :
Toll Allow and Username
 

Attachments

  • Screen Shot 2019-10-02 at 11.58.36 PM.png
    Screen Shot 2019-10-02 at 11.58.36 PM.png
    138.1 KB · Views: 32
  • Screen Shot 2019-10-02 at 11.57.10 PM.png
    Screen Shot 2019-10-02 at 11.57.10 PM.png
    133.1 KB · Views: 31
Status
Not open for further replies.