Limit Call per DID

Hi guys.

We have a question: there is a possible to set limit call per DID, without create one route or NAP per DID?
I have so many DIDs and I resseller this for many clients.

One a possible can be create a NAP with dynamic logic call limit, example:

  • NAP Limit 5: all DIDs in this NAP have 5 calls limit each
  • NAP Limit 10: all DIDs in this NAP have 10 calls limit each

I thing that make this mechanism only works using a script .rb.

Too we accept suggestion.

Thanks.

Hi edualopes,

This is not an easy request. Let me give you quick overview of what we can do natively. Then we can discuss how it might be possible, but I have no examples to give you as this is a first time request of this nature.

We can do this natively without scripting. NAP total call limits, Trunk / Interface capcity limits, CPS limits, and Global call limits per routing entity.

If you want to limit calls per Caller ID, you will need scripting logic that does the following.

  1. Extract the caller ID from (From /PAI)
  2. Know how many calls are already active on the same Caller ID
  3. Increment the count on call setup for every call from the Caller ID
  4. Decrement the count on call teardown from same Caller ID
  5. Reject the call if the limit has exceeded you Caller ID setting

Like I said above we have not done a script that fits this request that I know of, but happy to check with the team.

Another possible idea to think about is using RADIUS for this task, less complicated. Have you already thought of this?

-Support