Hi, Liusheng it just because both SIP UA try to bind same port, see your log line > 13:54:27.954 pjsua_core.c bind() error: Address already in use try to use the settings bellow to get dynamic port for each instances of your SIP UA udp_cfg.port = 0; rtp_cfg.port = 0; Hope this help atik 2008/8/5 Liusheng <liu_sx2006 at hotmail.com>: > I developed SIP Ua by PJSUA, but I want one pc can run two SIP UA(with > different account). > > however, when the first one start, the other one cannot start, it will print > error: > > 13:54:27.946 os_core_unix.c pjlib 0.9.0-release for POSIX initialized > 13:54:27.946 sip_endpoint.c Creating endpoint instance... > 13:54:27.946 pjlib select() I/O Queue created (0xb7ad0098) > 13:54:27.946 sip_endpoint.c Module "mod-msg-print" registered > 13:54:27.946 sip_transport. Transport manager created. > ERROR connecting > ERROR connecting > 13:54:27.947 sip_endpoint.c Module "mod-pjsua-log" registered > 13:54:27.947 sip_endpoint.c Module "mod-tsx-layer" registered > 13:54:27.949 sip_endpoint.c Module "mod-stateful-util" registered > 13:54:27.949 sip_endpoint.c Module "mod-ua" registered > 13:54:27.949 sip_endpoint.c Module "mod-100rel" registered > 13:54:27.949 sip_endpoint.c Module "mod-pjsua" registered > 13:54:27.949 sip_endpoint.c Module "mod-invite" registered > 13:54:27.953 pasound.c PortAudio sound library initialized, status=0 > 13:54:27.953 pasound.c PortAudio host api count=1 > 13:54:27.953 pasound.c Sound device count=0 > 13:54:27.953 pjlib select() I/O Queue created (0x81bc004) > 13:54:27.953 sip_endpoint.c Module "mod-evsub" registered > 13:54:27.953 sip_endpoint.c Module "mod-presence" registered > 13:54:27.954 sip_endpoint.c Module "mod-refer" registered > 13:54:27.954 sip_endpoint.c Module "mod-pjsua-pres" registered > 13:54:27.954 sip_endpoint.c Module "mod-pjsua-im" registered > 13:54:27.954 sip_endpoint.c Module "mod-pjsua-options" registered > 13:54:27.954 pjsua_core.c 1 SIP worker threads created > 13:54:27.954 pjsua_core.c pjsua version 0.9.0-release for > i686-pc-linux-gnu initialized > 13:54:27.954 pjsua_core.c bind() error: Address already in use > [status=120098] > 13:54:27.954 pjsua_core.c Shutting down... > 13:54:29.454 pasound.c PortAudio sound library shutting down.. > 13:54:29.455 sip_endpoint.c Module "mod-pjsua-options" unregistered > 13:54:29.455 sip_endpoint.c Module "mod-pjsua-im" unregistered > 13:54:29.455 sip_endpoint.c Module "mod-pjsua-pres" unregistered > 13:54:29.455 sip_endpoint.c Module "mod-pjsua" unregistered > 13:54:29.455 sip_endpoint.c Module "mod-stateful-util" unregistered > 13:54:29.455 sip_endpoint.c Module "mod-refer" unregistered > 13:54:29.455 sip_endpoint.c Module "mod-presence" unregistered > 13:54:29.455 sip_endpoint.c Module "mod-evsub" unregistered > 13:54:29.455 sip_endpoint.c Module "mod-invite" unregistered > 13:54:29.455 sip_endpoint.c Module "mod-100rel" unregistered > 13:54:29.455 sip_endpoint.c Module "mod-ua" unregistered > 13:54:29.455 sip_transactio Stopping transaction layer module > 13:54:29.455 sip_transactio Transaction layer module destroyed > 13:54:29.455 sip_endpoint.c Module "mod-tsx-layer" unregistered > 13:54:29.455 sip_endpoint.c Module "mod-msg-print" unregistered > 13:54:29.455 sip_endpoint.c Module "mod-pjsua-log" unregistered > 13:54:29.455 sip_endpoint.c Endpoint 0x8192bfc destroyed > 13:54:29.455 pjsua_core.c PJSUA destroyed... > CDMASIP: ../src/pjsua-lib/pjsua_media.c:819: pjsua_media_transports_create: > Assertion `pjsua_var.ua_cfg.max_calls>0' failed. > Aborted (core dumped) > > > Does someone have such experience? how to solve this problem? > > Thanks for your help. > > ________________________________ > ?MSN??????????????? ???????? > _______________________________________________ > 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 > >