[asterisk-dev] SIP user's inuse counter reset during sip reload

Rizwan Hisham rizwanhasham at gmail.com
Tue Mar 18 08:28:43 CDT 2008


Have reported the bug.

On Mon, Mar 17, 2008 at 9:26 PM, Donny Kavanagh <donnyk at gmail.com> wrote:

> Please try the latest version and if you can re-create file a bug @
> http://bugs.digium.com
>
> Donny
>
>   On Mon, Mar 17, 2008 at 12:08 PM, Rizwan Hisham <rizwanhasham at gmail.com>
> wrote:
>
> >   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
> >
> > _______________________________________________
> > --Bandwidth and Colocation Provided by http://www.api-digital.com--
> >
> > asterisk-dev mailing list
> > To UNSUBSCRIBE or update options visit:
> >   http://lists.digium.com/mailman/listinfo/asterisk-dev
> >
>
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>



-- 
Best Regards
Rizwan Hisham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20080318/dacc7d7f/attachment.htm 


More information about the asterisk-dev mailing list