Outbound route filtered by internal extensions

Hi,

I would like to attach a filter of internal extensions in a outbound route instead of a PIN.


Reference: http://repo.vitalpbx.org/vitalpbx/manuals/VitalPBXReferenceGuideVer3EN.pdf

The users can share the PIN code, and with it, all the users that know the PIN can make calls for the trunk with that PIN, in my case is the trunk for internacional calls.
If it is possible to add a filter of internal numbers that can be allowed is more secure.
Do you know any other options similar that can do that?

Class of Service.

This is the correct way how it is done.

1 Like

Hi @PitzKey,

I tried to call to an external number (13055605776) from two internal different numbers, one that is int the filter that I had configured and the other not, but without successed.

What I’m doing wrong?

This is the list that I have from internal numbers that can make calls to international numbers:

You need to put the extensions in the respective COS.

Say you have two outbound routes. Domestic and International.
Create two COSs. Domestic should only access the Domestic Route and the International COS will access both routes.

Then set the COS for each extension.

It is possible to create just one Class of Service (COS) to internacional calls?

We have abouve 2000 internal extensions and just want that 30 internal random extension, not sequential, can make internacional calls.

Sure you can do that. Add those 30 extensions to the COS that allows International Calls.

  1. Change the default COS to use a route selection that only allows domestic dialing
  2. Once you have the COS for international calls, go to PBX > Extensions > Bulk Modification. Select all extensions you want to change to the International COS apply it and you are good to go.

Out of curiosity. What is your server’s hardware specs that you are running 2000 endpoints on?

1 Like

Just one question about this point:

After I created the COS, for Internal extensions and Internal Country Numbers, we received the sound message, acess deny:

Access forbidden to internal extension number.


This is my Internal Extensions and Internal Country filter:

That goes through:

With this COS:

If I have assigned to my extension: the internacional COS, without any filter, works without problems:

What could be the problem, if I have the booth range allowed: 20X and XXXXX?

Thanks for your attention.

Grep both logs

grep C-00000034 /var/log/asterisk/full >> /tmp/C-00000034 
grep C-00000035 /var/log/asterisk/full >> /tmp/C-00000035

Then upload each file to pastebin and share both links

C-00000034:
update

C-00000035
update

This…

Is a block list (source). Remove those and you should be good.

Unrelated. Seems like your logrotate is messed up, or you have grepped through more than one file. In both links you posted there’s 3 calls…

1 Like

I changed the destination.

I had a ring group to final number with terminate call with outbound route to the destination and after create a custom application with the number and the outbound route, it work’s withou problems.