Network card added or enabled after app init problem

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

 



LOG:

 

Aug 27 12:49:12 INFO pjsip [os_core_win32.]:      pjlib 0.8.0 for win32
initialized

Aug 27 12:49:12 INFO pjsip [os_core_win32.]:      pjlib 0.8.0 for win32
initialized

Aug 27 12:49:12 DEBUG pjsip [sip_endpoint.c]:   Creating endpoint
instance...

Aug 27 12:49:12 INFO pjsip [pjlib]:          select() I/O Queue created
(01ACE50C)

Aug 27 12:49:12 INFO pjsip [sip_endpoint.c]:       Module
"mod-msg-print" registered

Aug 27 12:49:12 DEBUG pjsip [sip_transport.]:    Transport manager
created.

Aug 27 12:49:12 INFO pjsip [sip_endpoint.c]:       Module
"mod-pjsua-log" registered

Aug 27 12:49:12 INFO pjsip [pjsua_core.c]:          Nameserver  added

Aug 27 12:49:12 INFO pjsip [sip_endpoint.c]:       Module
"mod-tsx-layer" registered

Aug 27 12:49:12 INFO pjsip [sip_endpoint.c]:       Module
"mod-stateful-util" registered

Aug 27 12:49:12 INFO pjsip [sip_endpoint.c]:       Module "mod-ua"
registered

Aug 27 12:49:12 INFO pjsip [sip_endpoint.c]:       Module "mod-100rel"
registered

Aug 27 12:49:12 INFO pjsip [sip_endpoint.c]:       Module "mod-pjsua"
registered

Aug 27 12:49:12 INFO pjsip [sip_endpoint.c]:       Module "mod-invite"
registered

Aug 27 12:49:12 INFO pjsip [pasound.c]: PortAudio sound library
initialized, status=0

Aug 27 12:49:12 INFO pjsip [pasound.c]: PortAudio host api count=3

Aug 27 12:49:12 INFO pjsip [pasound.c]: Sound device count=8

Aug 27 12:49:12 INFO pjsip [pjlib]:          select() I/O Queue created
(01B0574C)

Aug 27 12:49:12 DEBUG pjsip [conference.c]:      Creating conference
bridge with 32 ports

Aug 27 12:49:12 DEBUG pjsip [conference.c]:      Sound device
successfully created for port 0

Aug 27 12:49:12 INFO pjsip [sip_endpoint.c]:       Module "mod-evsub"
registered

Aug 27 12:49:12 INFO pjsip [sip_endpoint.c]:       Module "mod-presence"
registered

Aug 27 12:49:12 DEBUG pjsip [evsub.c]: Event pkg "presence" registered
by mod-presence

Aug 27 12:49:12 INFO pjsip [sip_endpoint.c]:       Module "mod-refer"
registered

Aug 27 12:49:12 DEBUG pjsip [evsub.c]: Event pkg "refer" registered by
mod-refer

Aug 27 12:49:12 INFO pjsip [sip_endpoint.c]:       Module
"mod-pjsua-pres" registered

Aug 27 12:49:12 INFO pjsip [sip_endpoint.c]:       Module "mod-pjsua-im"
registered

Aug 27 12:49:12 INFO pjsip [sip_endpoint.c]:       Module
"mod-pjsua-options" registered

Aug 27 12:49:12 INFO pjsip [pjsua_core.c]:          1 SIP worker threads
created

Aug 27 12:49:12 NOTICE pjsip [pjsua_core.c]:     pjsua version 0.8.0 for
win32 initialized

Aug 27 12:49:18 INFO pjsip [pjsua_media.c]:       pjsua_set_snd_dev():
attempting to open devices @16000 Hz

Aug 27 12:49:18 DEBUG pjsip [pasound.c]:         Opened device SigmaTel
Audio(MME)/SigmaTel Audio(MME) for recording and playback, sample
rate=16000, ch=1, bits=16, 160 samples per frame, input latency=120 ms,
output latency=120 ms

Aug 27 12:49:18 DEBUG pjsip [pasound.c]:         Starting SigmaTel Audio
stream..

Aug 27 12:49:18 DEBUG pjsip [pasound.c]:         Done, status=0

Aug 27 12:49:18 INFO pjsip [echo_speex.c]:        Speex Echo
canceller/AEC created, clock_rate=16000, samples per frame=160, tail
length=200 ms, latency=240 ms

Aug 27 12:49:18 DEBUG pjsip [pasound.c]:         Recorder thread
startedAug 27 12:49:18 DEBUG pjsip [pasound.c]:            Player thread
started

 

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC reset, delay=-2,
prefetch=10

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC Info: old frame
removed (seq=1, want=-8, count=6)

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC Info: old frame
removed (seq=2, want=-8, count=5)

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC Info: old frame
removed (seq=3, want=-8, count=4)

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC Info: old frame
removed (seq=4, want=-8, count=3)

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC Info: old frame
removed (seq=5, want=-8, count=2)

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC Info: old frame
removed (seq=6, want=-8, count=1)

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC Info: empty queue for
seq=-8!

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC reset, delay=1,
prefetch=10

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC reset, delay=0,
prefetch=10

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC Info: old frame
removed (seq=7, want=-3, count=3)

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC Info: old frame
removed (seq=8, want=-3, count=2)

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC Info: old frame
removed (seq=9, want=-3, count=1)

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC Info: empty queue for
seq=-3!

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC reset, delay=1,
prefetch=10

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC reset, delay=0,
prefetch=10

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC Info: prefetching
(first seq=10)

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC Info: prefetching
(first seq=10)

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC Info: prefetching
(first seq=10)

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC Info: prefetching
(first seq=10)

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC Info: prefetching
(first seq=10)

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC Info: prefetching
(first seq=10)

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC Info: prefetching
(first seq=10)

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC Info: prefetching
(first seq=10)

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC Info: prefetching
(first seq=10)

Aug 27 12:49:18 DEBUG pjsip [aec022A25B8]:    AEC Info: prefetching
(first seq=10)

Aug 27 12:49:23 INFO pjsip [sound_port.c]:         EC suspended because
of inactivity

Aug 27 12:49:48 INFO pjsip [tcplis:3080]:            SIP TCP listener
ready for incoming connections at 192.168.1.25:3080

Aug 27 12:49:48 INFO pjsip [pjsua_core.c]:          SIP UDP socket
reachable at 192.168.1.25:3081

Aug 27 12:49:48 INFO pjsip [udp022CDBD4]:       SIP UDP transport
started, published address is 192.168.1.25:3081

Aug 27 12:49:48 INFO pjsip [pjsua_media.c]:       RTP socket reachable
at 192.168.1.25:30000

Aug 27 12:49:48 INFO pjsip [pjsua_media.c]:       RTCP socket reachable
at 192.168.1.25:30001

Aug 27 12:49:48 INFO pjsip [pjsua_media.c]:       RTP socket reachable
at 192.168.1.25:30002

Aug 27 12:49:48 INFO pjsip [pjsua_media.c]:       RTCP socket reachable
at 192.168.1.25:30003

Aug 27 12:49:48 INFO pjsip [pjsua_media.c]:       RTP socket reachable
at 192.168.1.25:30004

Aug 27 12:49:48 INFO pjsip [pjsua_media.c]:       RTCP socket reachable
at 192.168.1.25:30005

Aug 27 12:49:48 INFO pjsip [pjsua_media.c]:       RTP socket reachable
at 192.168.1.25:30006

Aug 27 12:49:48 INFO pjsip [pjsua_media.c]:       RTCP socket reachable
at 192.168.1.25:30007

Aug 27 12:49:48 INFO pjsip [pjsua_acc.c]:           Account
sip:test1 at dn-ser.dialnet.int:23123 added with id 0

Aug 27 12:49:48 DEBUG pjsip [endpoint]:            Request msg
REGISTER/cseq=18508 (tdta022DBC48) created.

Aug 27 12:49:48 DEBUG pjsip [tsx022DCCEC]:   Transaction created for
Request msg REGISTER/cseq=18509 (tdta022DBC48)

Aug 27 12:49:48 DEBUG pjsip [tsx022DCCEC]:   Sending Request msg
REGISTER/cseq=18509 (tdta022DBC48) in state Null

Aug 27 12:49:48 DEBUG pjsip [sip_resolve.c]:     Starting async DNS A
query: target=dn-ser.dialnet.int, transport=Unspecified, port=23123

Aug 27 12:49:48 DEBUG pjsip [resolver.c]:          Nameserver 0.0.0.0:53
state changed Active --> Probing

Aug 27 12:49:48 INFO pjsip [resolver.c]:  Transmitting -1 bytes to NS 0
(0.0.0.0:53): DNS A query for dn-ser.dialnet.int

Aug 27 12:49:48 DEBUG pjsip [tsx022DCCEC]:   State changed from Null to
Calling, event=TX_MSG

Aug 27 12:49:48 NOTICE pjsip [sip_helper.c]:      Registration sent

Aug 27 12:49:50 INFO pjsip [resolver.c]:  Re-transmitting -1 bytes to NS
0 (0.0.0.0:53): DNS A query for dn-ser.dialnet.int

Aug 27 12:49:52 INFO pjsip [resolver.c]:  Re-transmitting -1 bytes to NS
0 (0.0.0.0:53): DNS A query for dn-ser.dialnet.int

Aug 27 12:49:54 INFO pjsip [resolver.c]:  Re-transmitting -1 bytes to NS
0 (0.0.0.0:53): DNS A query for dn-ser.dialnet.int

Aug 27 12:49:56 INFO pjsip [resolver.c]:  Re-transmitting -1 bytes to NS
0 (0.0.0.0:53): DNS A query for dn-ser.dialnet.int

Aug 27 12:49:58 INFO pjsip [sip_resolve.c]:         DNS A record
resolution failed: Operation timed out (PJ_ETIMEDOUT)

Aug 27 12:49:58 WARNING pjsip [tsx022DCCEC]:           Failed to send
Request msg REGISTER/cseq=18509 (tdta022DBC48)! err=70009 (Operation
timed out (PJ_ETIMEDOUT))

Aug 27 12:49:58 DEBUG pjsip [tsx022DCCEC]:   State changed from Calling
to Terminated, event=TRANSPORT_ERROR

Aug 27 12:49:58 WARNING pjsip [sip_helper.c]:   SIP registration failed,
status=503 (Service Unavailable)

Aug 27 12:49:58 DEBUG pjsip [endpoint]:            Request msg
REGISTER/cseq=18508 (tdta022DDF98) created.

Aug 27 12:49:58 DEBUG pjsip [tsx022E708C]:     Transaction created for
Request msg REGISTER/cseq=18509 (tdta022DDF98)

Aug 27 12:49:58 DEBUG pjsip [tsx022E708C]:     Sending Request msg
REGISTER/cseq=18509 (tdta022DDF98) in state Null

Aug 27 12:49:58 DEBUG pjsip [sip_resolve.c]:     Target
'192.168.1.172:23123' type=Unspecified resolved to '192.168.1.172:23123'
type=UDP

Aug 27 12:49:58 INFO pjsip [pjsua_core.c]:          TX 512 bytes Request
msg REGISTER/cseq=18509 (tdta022DDF98) to UDP 192.168.1.172:23123:

 

Also if close transport with pjsua_transport_close() with "force" set to
non-zero, do I destroy this transport completely? Because if I create
and close transport some limited number of times I get an error: Error
creating transport: Too many objects of the specified type (PJ_ETOOMANY)
[status=70010]

 

Thanks in advance.  

 

________________________________

From: pjsip-bounces@xxxxxxxxxxxxxxx
[mailto:pjsip-bounces at lists.pjsip.org] On Behalf Of Ilya Kalinin
Sent: Wednesday, August 27, 2008 11:48 AM
To: pjsip list
Subject: Re: Network card added or enabled after app init
problem

 

When I recreate transport it's works partly, dns resolver fails, but if
using ip address I can register. Do I need also recreate dns resolver?
How I can do it?

 

________________________________

From: pjsip-bounces@xxxxxxxxxxxxxxx
[mailto:pjsip-bounces at lists.pjsip.org] On Behalf Of Benny Prijono
Sent: Tuesday, August 26, 2008 11:58 AM
To: pjsip list
Subject: Re: Network card added or enabled after app init
problem

 

On Tue, Aug 26, 2008 at 8:33 AM, Ilya Kalinin <ilyak at eimtelecom.com>
wrote:

	Hi.

	I create and initialize pjsua on application start, if I add
network card after that but before sip registration I can't register
because pjsua bound to wrong ip. 

That's not entirely accurate, as the transport is bound to INADDR_ANY by
default. Unless of course if you override this and manually specify the
bound address yourself.

	Do I need destroy pjsua and recreate it on register, or there
more elegant way to solve this?


You can just destroy the transports and recreate new ones. But
destroying pjsua is the easiest option indeed.
 
Cheers
 Benny

	 

	Thanks in advance.

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080827/c68a0f9f/attachment-0001.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