How to PJSIP reload config.

WR
Wanlop Runsiyangkul
Fri, Dec 26, 2008 8:14 AM

Hi!
I want to reload PJSIP. I do exit programe and run programe again. But have error with bind port. This follow print
01:33:24.877  pjsua_core.c  bind() error: Address already in use [status=120125] 01:33:24.877    pjsua_app.c  Error pjsua_transport_create: Address already in use [status=120125]

 It don't work. How to reload config with do not rerun programe.

Thank you.


Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.

http://www.microsoft.com/windows/windowslive/photos.aspx

Hi! I want to reload PJSIP. I do exit programe and run programe again. But have error with bind port. This follow print 01:33:24.877 pjsua_core.c bind() error: Address already in use [status=120125] 01:33:24.877 pjsua_app.c Error pjsua_transport_create: Address already in use [status=120125] It don't work. How to reload config with do not rerun programe. Thank you. _________________________________________________________________ Drag n’ drop—Get easy photo sharing with Windows Live™ Photos. http://www.microsoft.com/windows/windowslive/photos.aspx
PE
P.Muge Ersoy
Sat, Dec 27, 2008 9:55 PM

Hi;
Sip msging port(default is 5060) is still in use...Try to find out which
application is using the port.. netstat -a will help to find out..AFAK there
is no reloading config file in the pjsip.. you may code a function to reload
the config file..

On Fri, Dec 26, 2008 at 10:14 AM, Wanlop Runsiyangkul <
machatronics@hotmail.com> wrote:

Hi!
I want to reload PJSIP. I do exit programe and run programe again. But
have error with bind port. This follow print
01:33:24.877  pjsua_core.c  bind() error: Address already in use
[status=120125]
01:33:24.877    pjsua_app.c  Error pjsua_transport_create: Address already
in use [status=120125]

  It don't work. How to reload config with do not rerun programe.

Thank you.


Get easy photo sharing with Windows Live™ Photos. Drag n' drophttp://www.microsoft.com/windows/windowslive/photos.aspx


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hi; Sip msging port(default is 5060) is still in use...Try to find out which application is using the port.. netstat -a will help to find out..AFAK there is no reloading config file in the pjsip.. you may code a function to reload the config file.. On Fri, Dec 26, 2008 at 10:14 AM, Wanlop Runsiyangkul < machatronics@hotmail.com> wrote: > > > Hi! > I want to reload PJSIP. I do exit programe and run programe again. But > have error with bind port. This follow print > 01:33:24.877 pjsua_core.c bind() error: Address already in use > [status=120125] > 01:33:24.877 pjsua_app.c Error pjsua_transport_create: Address already > in use [status=120125] > > It don't work. How to reload config with do not rerun programe. > > Thank you. > > > > > > ------------------------------ > Get easy photo sharing with Windows Live™ Photos. Drag n' drop<http://www.microsoft.com/windows/windowslive/photos.aspx> > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
H
H.Kropf
Mon, Dec 29, 2008 8:58 AM

Hi

These changes in a source code allow to choose a free port at program
start :)

================================
pjsua_app.c

pj_status_t app_init(int argc, char argv[])
{
......
unsigned int udp_port_max = 10000; /
app_config.udp_cfg.port = 5060; */

/* Add UDP transport unless it's disabled. */
if (!m_app_config.no_udp)
{
pjsua_acc_id aid;
do {
status = pjsua_transport_create(PJSIP_TRANSPORT_UDP,
&app_config.udp_cfg, &transport_id);
if (status == PJ_SUCCESS) break;
++app_config.udp_cfg.port;
} while (status != PJ_SUCCESS && app_config.udp_cfg.port <= udp_port_max);
if (status != PJ_SUCCESS) goto on_error;
......
}
......
}

Wanlop Runsiyangkul ???????(??):

Hi!
I want to reload PJSIP. I do exit programe and run programe again. But
have error with bind port. This follow print
01:33:24.877 pjsua_core.c bind() error: Address already in use
[status=120125]
01:33:24.877 pjsua_app.c Error pjsua_transport_create: Address already
in use [status=120125]
It don't work. How to reload config with do not rerun programe.
Thank you.


Oleg L.Didenko

Hi These changes in a source code allow to choose a free port at program start :) ================================ pjsua_app.c ================================ pj_status_t app_init(int argc, char *argv[]) { ...... unsigned int udp_port_max = 10000; /* app_config.udp_cfg.port = 5060; */ /* Add UDP transport unless it's disabled. */ if (!m_app_config.no_udp) { pjsua_acc_id aid; do { status = pjsua_transport_create(PJSIP_TRANSPORT_UDP, &app_config.udp_cfg, &transport_id); if (status == PJ_SUCCESS) break; ++app_config.udp_cfg.port; } while (status != PJ_SUCCESS && app_config.udp_cfg.port <= udp_port_max); if (status != PJ_SUCCESS) goto on_error; ...... } ...... } Wanlop Runsiyangkul ???????(??): > > > Hi! > I want to reload PJSIP. I do exit programe and run programe again. But > have error with bind port. This follow print > 01:33:24.877 pjsua_core.c bind() error: Address already in use > [status=120125] > 01:33:24.877 pjsua_app.c Error pjsua_transport_create: Address already > in use [status=120125] > It don't work. How to reload config with do not rerun programe. > Thank you. ------ Oleg L.Didenko