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:
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.
Perhaps others have come across a way to handle changes to IP?
--
BRgds,
Steve King
Design Engineer
Zetron Australasia
On Fri, Oct 15, 2010 at 8:37 AM, Steve King sking@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:
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
Hi Benny,
Thanks for the information.
However, other portions of our application require the PJ library to be
available (even if the SIP endpoint is not running).
My current hack is to
Hopefully, this will work :)
Cheers,
Steve
On Fri, 2010-10-15 at 09:31 +0700, Benny Prijono wrote:
On Fri, Oct 15, 2010 at 8:37 AM, Steve King sking@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:
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
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
BRgds,
Steve King
Design Engineer
Zetron Australasia