I've had a quick look over the wiki and played around with my config a bit but still can't seem to come up with an easy answer to what I want to do.. I have an Asterisk box set up and have a DID from iconnecthere. They allow multiple simultaneous inbound calls to that number. My question is: Is there any way to limit at my end the number of calls received? Initial thoughts are to use a counter, increment on call presentation, decrement on call tear down, and give the inbound call busy or congestion treatment if the counter is above a certain value when the call is presented? I played with incominglimit in sip.conf and that worked fine for my local SIP devices but I don't think it can be applied to peers that I've registered with via a "register =>" type line? Thanks in advance Paul
Philipp von Klitzing
2004-Mar-08 16:45 UTC
[Asterisk-Users] Limiting simultaneous inbound SIP calls
Hi!> Initial thoughts are to use a counter, increment on call presentation, > decrement on call tear down, and give the inbound call busy or congestion > treatment if the counter is above a certain value when the call is > presented?I guess you need to "protect" your rather thin Internet uplink so that "one call too many" doesn't bring all existing calls down? The above approach will give you trouble with transferred or prematurely disconnected calls I assume... But you could use AGI and/or a SYSTEM command to do SHOW CHANNELS or something similar and that way determine what exactly is going on on your box. Another approach would be to use the manager API for this, however the first approach looks easier and more advisable to me for your case. Cheers, Philipp