Query regarding the deinit_sip_parser

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sandeep, I'm not sure which pjsip version you're using, but I'm looking at
the latest code and the cleanup code is there.

cheers
 Benny

On Fri, Feb 13, 2009 at 11:38 AM, Sandeep Mailk <malik.mca at gmail.com> wrote:

> Hi All,
>
> Has anyone tried creating and destroying pjsua? I think there is some issue
> in the code of deinit_sip_parser and the modified code should be
>
> void deinit_sip_parser(void)
> {
>     pj_enter_critical_section();
>     if (--parser_is_initialized == 0) {
>     /* Clear header handlers */
>     pj_bzero(handler, sizeof(handler));
>     handler_count = 0;
>
>    /* Clear exceptions */
>   exception_cleanup();
>
>     /* Clear URI handlers */
>     pj_bzero(uri_handler, sizeof(uri_handler));
>     uri_handler_count = 0;
>     }
>     pj_leave_critical_section();
> }
>
> Actually while using init_sip_parser function the pjsua installs exception
> and increments the counter which keeps track of number of exceptions in the
> system. While calling the deinit_sip_parser() we are not clearing the
> exceptions so if we keep on creating and destorying the pjsua finally the
> assertion PJ_ASSERT_RETURN(last_exception_id < PJ_MAX_EXCEPTION_ID-1,
> PJ_ETOOMANY); fails and application terminates.
>
> Has any one else also observed the same behavior and is it the correct fix?
>
> Regards,
> Sandeep Malik
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090216/373db4c6/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux