Hello,<div><br></div><div>I have a .NET managed module handling calls transferred to it via dial plan.</div><div><br></div><div>Now, I would like to maintain concurrent call count and decline the call if it has reached certain limit.</div>
<div><br></div><div>What I do is, have a static variable to track this.</div><div><b>private static int mIntCurCalls = 0;</b></div><div><br></div><div>Then, when Run() is executed, I <b>mIntCurCalls++</b> after answering the call.</div>
<div><br></div><div>I perform check <b>if mIntCurCalls > "max allowed calls"</b> then I play a message and hangup.</div><div><br></div><div>I <b>mIntCurCalls--</b> this when call is hung up.</div><div><br></div>
<div>Since last few days users have been complaining they get "busy" or "number not available" when dialing toll-free number.</div><div><br></div><div>However, I don't see them getting the message that I have in the code.</div>
<div><br></div><div>Is the method of keeping call count correct?</div><div><br></div><div>Thanks.</div><div><br></div>