Outbound rules

Status
Not open for further replies.

danny

New Member
Mar 8, 2019
5
0
1
39
Hey guys,

I hope someone can help me with this.

A year ago we started with FusionPBX on our main office. (Amsterdam)
Now I`m implementing a new office (London) on our PBX, everything works fine but outbound is not working for our office in London.

The situation how it should go:
Extension: 1xxx should use our Amsterdam number. (that is working)
Extension: 2xxx should use the number I ported to the PBX (number London)

My question is, how can I configure that 1xxx goes to one number and the 2xxx to the other?

For extra info I attached a screenshot.

Thanks in advance!
 

Attachments

  • pbx outbound.PNG
    pbx outbound.PNG
    67.8 KB · Views: 16

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,038
556
113
Duplicate the outbound route and add an additional condition at the top, I think the variable you want is sip_from_user. So if sip_from_user =1XX sort of thing. then just change effective_caller_id_number=theoneyouwant.

Make sure this route is evaluated before the other.
 
  • Like
Reactions: JamesBorne

danny

New Member
Mar 8, 2019
5
0
1
39
Hi DigitalDaz,

Thanks for your answer, but with outbound routes I`m really a noob.

What I understand is that I need to copy the outbound route and change the number to the number of our London office.
But the thing I don`t get is the sip_from_user=1xxx, can you please give me a bit more info?

Thanks!
 

ad5ou

Active Member
Jun 12, 2018
884
195
43
condition ${sip_from_user} ^1\d{3}$ would check if the from user is 1000-1999.
Add that to the top of your copied/modified route, and make the new route a lower order number than the other route so it checks the 1xxx version first.
 

danny

New Member
Mar 8, 2019
5
0
1
39
Thanks for the quick reply!

Ok so I did ^2\d{3}$ because extensions 2xxx needs to be outgoing with our other number.
So this should be fine? (screenshot attached)

Thanks for your help guys!
 

Attachments

  • example.PNG
    example.PNG
    43 KB · Views: 8

ad5ou

Active Member
Jun 12, 2018
884
195
43
That dial plan should work.
edit: it looks like both screen shots you posted are using the same gateway and CID variables.
either the new dial plan needs to use a different gateway, or you hard code the correct CID in this new dial plan, or set correct CID on each extensions.
 
Last edited:
Status
Not open for further replies.