pjsip shutdown because "Error creating SIP TCP listener"

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

 



Is there anybody knowing this problem? I really need help to solve it
because it blocks my autotesting project.

Thanks.

On Thu, Mar 13, 2008 at 11:23 AM, Jun Yin <hansyin at gmail.com> wrote:

> Hi,
> I'm using pjsua for tcp_sip autotesting.  It helps me so much and I want
> to thank you guys first.
> In my test, I use this application to make a call and check if it's OK.
> and then I change something like network topology configuration, then make
> call again.
> My problem is: somehow sometimes it cannot be loadded successfully, It
> happens when I finished the first call and then kill it or quit it, and then
> load it again very quickly, it will say: Error creating SIP TCP listener.
> I tried this steps manually and found sometimes I have to wait for about 30
> seconds,  then I can load it again successfully.
>
> Could you guys help me to figure out what's the problem? how can I fix it
> or workaround it?
>
> [root at pc5 env_test]# uname -a
> Linux pc5.stress 2.6.18-1.2798.fc6PAE #1 SMP Mon Oct 16 14:54:22 EDT 2006
> i686 i686 i386 GNU/Linux
> [root at pc5 ~]# killall -9 pjsua-i686-pc-linux-gnu
> pjsua-i686-pc-linux-gnu: no process killed
> [root at pc5 ~]# pjsua-i686-pc-linux-gnu
> --config-file=/env_test/voice/sipproxy1_pc2_grp1.pjsip.conf --ip-addr=
> 192.168.10.221
>  10:58:58.961 os_core_unix.c pjlib 0.8.0 for POSIX initialized
>  10:58:58.962 sip_endpoint.c Creating endpoint instance...
>  10:58:58.963          pjlib select() I/O Queue created (0x9dbb594)
>  10:58:58.963 sip_endpoint.c Module "mod-msg-print" registered
>  10:58:58.963 sip_transport. Transport manager created.
>  10:58:58.964 sip_endpoint.c Module "mod-pjsua-log" registered
>  10:58:58.964 sip_endpoint.c Module "mod-tsx-layer" registered
>  10:58:58.964 sip_endpoint.c Module "mod-stateful-util" registered
>  10:58:58.964 sip_endpoint.c Module "mod-ua" registered
>  10:58:58.964 sip_endpoint.c Module "mod-100rel" registered
>  10:58:58.964 sip_endpoint.c Module "mod-pjsua" registered
>  10:58:58.964 sip_endpoint.c Module "mod-invite" registered
>  10:58:59.012      pasound.c PortAudio sound library initialized, status=0
>  10:58:59.012      pasound.c PortAudio host api count=2
>  10:58:59.012      pasound.c Sound device count=12
>  10:58:59.013          pjlib select() I/O Queue created (0x9e0b47c)
>  10:58:59.014   conference.c Creating conference bridge with 32 ports
>  10:58:59.014   conference.c Sound device successfully created for port 0
>  10:58:59.014 sip_endpoint.c Module "mod-evsub" registered
>  10:58:59.014 sip_endpoint.c Module "mod-presence" registered
>  10:58:59.014        evsub.c Event pkg "presence" registered by
> mod-presence
>  10:58:59.014 sip_endpoint.c Module "mod-refer" registered
>  10:58:59.014        evsub.c Event pkg "refer" registered by mod-refer
>  10:58:59.014 sip_endpoint.c Module "mod-pjsua-pres" registered
>  10:58:59.014 sip_endpoint.c Module "mod-pjsua-im" registered
>  10:58:59.014 sip_endpoint.c Module "mod-pjsua-options" registered
>  10:58:59.014   pjsua_core.c 1 SIP worker threads created
>  10:58:59.014   pjsua_core.c pjsua version 0.8.0 for i686-pc-linux-gnu
> initialized
>  10:58:59.014         tcplis SIP TCP listener destroyed
>  10:58:59.014   pjsua_core.c Error creating SIP TCP listener: Address
> already in use [status=120098]   <<<<<<<<<<<<<<<<<<<<<<<
>  10:58:59.015   pjsua_core.c Shutting down...
>  10:59:00.024      pasound.c PortAudio sound library shutting down..
>  10:59:00.024 sip_endpoint.c Destroying endpoing instance..
>  10:59:00.024 sip_endpoint.c Module "mod-pjsua-options" unregistered
>  10:59:00.025 sip_endpoint.c Module "mod-pjsua-im" unregistered
>  10:59:00.025 sip_endpoint.c Module "mod-pjsua-pres" unregistered
>  10:59:00.025 sip_endpoint.c Module "mod-pjsua" unregistered
>  10:59:00.025 sip_endpoint.c Module "mod-stateful-util" unregistered
>  10:59:00.025 sip_endpoint.c Module "mod-refer" unregistered
>  10:59:00.025 sip_endpoint.c Module "mod-presence" unregistered
>  10:59:00.025 sip_endpoint.c Module "mod-evsub" unregistered
>  10:59:00.025 sip_endpoint.c Module "mod-invite" unregistered
>  10:59:00.025 sip_endpoint.c Module "mod-100rel" unregistered
>  10:59:00.025 sip_endpoint.c Module "mod-ua" unregistered
>  10:59:00.025 sip_transactio Stopping transaction layer module
>  10:59:00.025 sip_transactio Transaction layer module destroyed
>  10:59:00.025 sip_endpoint.c Module "mod-tsx-layer" unregistered
>  10:59:00.025 sip_endpoint.c Module "mod-msg-print" unregistered
>  10:59:00.025 sip_endpoint.c Module "mod-pjsua-log" unregistered
>  10:59:00.025 sip_transport. Destroying transport manager
>  10:59:00.025 sip_endpoint.c Endpoint 0x9dba5dc destroyed
>  10:59:00.025   pjsua_core.c PJSUA destroyed...
> [root at pc5 ~]#
>
> Thanks in advance.
>
> --
> Rgds,
>
> Hans Yin
> Web: homeofhans.homeip.net
> Email: hansyin at gmail.com
> MSN: hansyin at hotmail.com
> Skype: hans_yin_vancouver




-- 
Rgds,

Hans Yin
Web: homeofhans.homeip.net
Email: hansyin at gmail.com
MSN: hansyin at hotmail.com
Skype: hans_yin_vancouver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080315/56cfa137/attachment.html 


[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