[asterisk-dev] SIP user's inuse counter reset during sip reload
Rizwan Hisham
rizwanhasham at gmail.com
Mon Mar 17 11:08:28 CDT 2008
Hi all,
i have just encountered a strange problem. Maybe its a bug.
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.
Can anybody help me solve this problem. Or have another idea to solve this
problem?
Maybe this has been fixed in later versions of asterisk. I am using ast
1.4.2. I havent checked any other version.
--
Best Regards
Rizwan Hisham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20080317/67a3b350/attachment.htm
More information about the asterisk-dev
mailing list