Please try the latest version and if you can re-create file a bug @ <a href="http://bugs.digium.com">http://bugs.digium.com</a><br><br>Donny<br><br><div class="gmail_quote">On Mon, Mar 17, 2008 at 12:08 PM, Rizwan Hisham <<a href="mailto:rizwanhasham@gmail.com">rizwanhasham@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Hi all,</div>
<div>i have just encountered a strange problem. Maybe its a bug. </div>
<div> </div>
<div>Suppose a is a user is on a call whose call-limit=2. "sip show inuse" shows the inuse counter of the user is set to 1. But after reloading sip (the user is still in conversation and call is up) the "sip show inuse" command shows that its inuse counter is set to zero. It shouldnt do that. i have seen inside the code in chan_sip.c that while doing sip reload, asterisk destroys all the user (not peers) by freeing the memory allocated for all users and destroying their channel variables. As it destroys all the users, their inuse counter is also lost. what i want to do is, before destroying the users, if any user's inuse counter > 0 then save it in some place, rebuiled users after reading the config files and then set their inuse counter again by reading their saved inuse counter.</div>
<div> </div>
<div>Can anybody help me solve this problem. Or have another idea to solve this problem?</div>
<div> </div>
<div>Maybe this has been fixed in later versions of asterisk. I am using ast 1.4.2. I havent checked any other version. <br clear="all"><br>-- <br>Best Regards<br>Rizwan Hisham<br></div>
<br>_______________________________________________<br>
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></blockquote></div><br>