PJSIP Endpoint Restart Issue - Supported header

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

 



On Fri, Oct 15, 2010 at 8:37 AM, Steve King <sking at zetron.com> wrote:
> Hi all,
>
> As part of our application, there is a need to shutdown the SIP endpoint
> during configuration changes (Hostname / IP Address / Port etc...).
>
> The simplified steps to handle re-configuration are:
> 1. pjsip_endpt_destroy()
> 2. Configuration update.
> 3. pjsip_endpt_create()
> 4. Initialize modules (100rel timer etc...)
>
> The issue I have noticed is that the capabilities of the endpoint
> (pjsip_endpt_get_capability()) for the Supported headers will *not* be
> updated due to static initialization within certain modules (i.e
> replaces, timer) stopping calls to pjsip_endpt_add_capability(). So
> outgoing INVITE and outgoing OPTIONS Supported header will *not* include
> all supported features of the endpoint.
>

Hi Steve, you'd also need to call pj_shutdown(). This will call the
atexit() handlers, which would reset the static variables.

 Benny



[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