# \[HELP\] Call limit Explanation

**URL:** <https://community.asterisk.org/t/help-call-limit-explanation/4382>\
**Category:** Asterisk Support\
**Created:** [February 13, 2006, 6:36pm UTC](https://community.asterisk.org/t/help-call-limit-explanation/4382 "2006-02-13T18:36:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dimitripietro](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@Dimitripietro](https://community.asterisk.org/u/Dimitripietro)\
**Post date:** [February 13, 2006, 6:36pm UTC](https://community.asterisk.org/t/help-call-limit-explanation/4382/1 "2006-02-13T18:36:12Z")

</div>

Hello,

Here is what I would like to be able to do : I have a Aastra 480i phone with 4 line. If i’m on the phone, I would like every other incoming call to go to my voicemail. But I wouls also be able put the present call on hold and the initiate another call ex : go to voicemail.

If I use the call-limit function : I can only have 1 active call. There is no way I could put this call on hold and cinitiate another call. My SIP conf is friend.

Ex: 201 call 202. On 202 I put the call on hold and I can’t make another call.

Would like to have this limit : 1 incomming call and 4 outgoing call max.

How could I fix this.

---

<div class="post-metadata">

**Author:** ![whoiswes](https://avatars.discourse-cdn.com/v4/letter/w/dec6dc/32.png) [@whoiswes](https://community.asterisk.org/u/whoiswes)\
**Post date:** [February 13, 2006, 6:59pm UTC](https://community.asterisk.org/t/help-call-limit-explanation/4382/2 "2006-02-13T18:59:01Z")

</div>

we did this with a softphone…

it had four lines, and we only registered one line with the server. but we put the outbound proxy in on all four lines.

this way, there could only be one incoming call, but all four lines worked for outbound calls.

this is a dirty way of doing things, and probably only works because we don’t have our server secured as well as we should, but it works.

HTH.

Wes

---

<div class="post-metadata">

**Author:** ![batrams](https://avatars.discourse-cdn.com/v4/letter/b/f0a364/32.png) [@batrams](https://community.asterisk.org/u/batrams)\
**Post date:** [February 14, 2006, 1:00am UTC](https://community.asterisk.org/t/help-call-limit-explanation/4382/3 "2006-02-14T01:00:36Z")

</div>

What version of Asterisk are you running?

---

<div class="post-metadata">

**Author:** ![Dimitripietro](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@Dimitripietro](https://community.asterisk.org/u/Dimitripietro)\
**Post date:** [February 14, 2006, 4:22am UTC](https://community.asterisk.org/t/help-call-limit-explanation/4382/4 "2006-02-14T04:22:52Z")

</div>

1.2.4. I will post the CLI verbose 3 soon.

---

<div class="post-metadata">

**Author:** ![Dimitripietro](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@Dimitripietro](https://community.asterisk.org/u/Dimitripietro)\
**Post date:** [February 14, 2006, 3:53pm UTC](https://community.asterisk.org/t/help-call-limit-explanation/4382/5 "2006-02-14T15:53:42Z")

</div>

Here is how I finally did

exten =\> 202,1,Set(GROUP(${EXTEN})=OUTBOUND\_GROUP)  
exten =\> 202,n,GotoIf($[${GROUP\_COUNT(OUTBOUND\_GROUP@${EXTEN})} \> 1]?5)  
exten =\> 202,n,Set(GROUP(${CALLERIDNUM})=OUTBOUND\_GROUP)

By adding this to each extension you want to limit the number of call. In this exemple \> 1 mean no more than 1 active call.

I’m not sure to understand the group function, anyone could give me more information ?

thx
