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.
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
These changes in a source code allow to choose a free port at program
start :)
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