Discussion:
ver 1.10 pjsua_core.c bind() error: Address already in use
Travis Kestler
2011-07-30 07:18:55 UTC
Permalink
Hi,



I got pjsipproject 1.10 tar release and I'm trying to run the sample iPhone app on the device. I compiled the libraries and then ran the XCode project. I'm getting the following error on the device, which does not make sense to me as there should be no app claiming this port. I've restart the device but still the same error. Any ideas?

Thanks,


2011-07-29 23:53:15.073 ipjsua[1337:707] Using two-stage rotation animation. To use the smoother single-stage animation, this application must remove two-stage method implementations.
2011-07-29 23:53:15.112 ipjsua[1337:6c03]  23:53:15.110 os_core_unix.c  pjlib 1.10.0 for POSIX initialized
2011-07-29 23:53:15.310 ipjsua[1337:6c03]  23:53:15.310 sip_endpoint.c  Creating endpoint instance...
2011-07-29 23:53:15.322 ipjsua[1337:6c03]  23:53:15.322          pjlib  select() I/O Queue created (0xc0b130)
2011-07-29 23:53:15.326 ipjsua[1337:6c03]  23:53:15.326 sip_endpoint.c  Module "mod-msg-print" registered
2011-07-29 23:53:15.329 ipjsua[1337:6c03]  23:53:15.329 sip_transport.  Transport manager created.
2011-07-29 23:53:15.349 ipjsua[1337:6c03]  23:53:15.349 sip_endpoint.c  Module "mod-pjsua-log" registered
2011-07-29 23:53:15.354 ipjsua[1337:6c03]  23:53:15.354 sip_endpoint.c  Module "mod-tsx-layer" registered
2011-07-29 23:53:15.356 ipjsua[1337:6c03]  23:53:15.356 sip_endpoint.c  Module "mod-stateful-util" registered
2011-07-29 23:53:15.362 ipjsua[1337:6c03]  23:53:15.362 sip_endpoint.c  Module "mod-ua" registered
2011-07-29 23:53:15.365 ipjsua[1337:6c03]  23:53:15.365 sip_endpoint.c  Module "mod-100rel" registered
2011-07-29 23:53:15.368 ipjsua[1337:6c03]  23:53:15.368 sip_endpoint.c  Module "mod-pjsua" registered
2011-07-29 23:53:15.373 ipjsua[1337:6c03]  23:53:15.373 sip_endpoint.c  Module "mod-invite" registered
2011-07-29 23:53:15.389 ipjsua[1337:6c03]  23:53:15.388 coreaudio_dev.   dev_id 0: iPhone IO device  (in=1, out=1) 8000Hz
2011-07-29 23:53:15.398 ipjsua[1337:6c03]  23:53:15.398 coreaudio_dev.  core audio initialized
2011-07-29 23:53:15.404 ipjsua[1337:6c03]  23:53:15.403          pjlib  select() I/O Queue created (0xc14c14)
2011-07-29 23:53:15.457 ipjsua[1337:6c03]  23:53:15.456 sip_endpoint.c  Module "mod-evsub" registered
2011-07-29 23:53:15.460 ipjsua[1337:6c03]  23:53:15.460 sip_endpoint.c  Module "mod-presence" registered
2011-07-29 23:53:15.463 ipjsua[1337:6c03]  23:53:15.463 sip_endpoint.c  Module "mod-mwi" registered
2011-07-29 23:53:15.466 ipjsua[1337:6c03]  23:53:15.466 sip_endpoint.c  Module "mod-refer" registered
2011-07-29 23:53:15.473 ipjsua[1337:6c03]  23:53:15.473 sip_endpoint.c  Module "mod-pjsua-pres" registered
2011-07-29 23:53:15.476 ipjsua[1337:6c03]  23:53:15.476 sip_endpoint.c  Module "mod-pjsua-im" registered
2011-07-29 23:53:15.478 ipjsua[1337:6c03]  23:53:15.478 sip_endpoint.c  Module "mod-pjsua-options" registered
2011-07-29 23:53:15.481 ipjsua[1337:6c03]  23:53:15.481   pjsua_core.c  1 SIP worker threads created
2011-07-29 23:53:15.484 ipjsua[1337:6c03]  23:53:15.484   pjsua_core.c  pjsua version 1.10.0 for iPhone OS-4.3.3/arm/iOS-SDK-4.3 initialized
2011-07-29 23:53:15.486 ipjsua[1337:6c03]  23:53:15.486 sip_endpoint.c  Module "mod-default-handler" registered
2011-07-29 23:53:15.490 ipjsua[1337:6c03]  23:53:15.490   pjsua_core.c  bind() error: Address already in use [status=120048]
2011-07-29 23:53:15.504 ipjsua[1337:6c03]  23:53:15.503   pjsua_core.c  Shutting down...
2011-07-29 23:53:15.506 ipjsua[1337:6c03]  23:53:15.506   pjsua_pres.c  Shutting down presence..
2011-07-29 23:53:15.508 ipjsua[1337:6c03]  23:53:15.508  pjsua_media.c  Shutting down media..
2011-07-29 23:53:16.921 ipjsua[1337:6c03]  23:53:16.920   pjsua_core.c  Destroying...
2011-07-29 23:53:16.925 ipjsua[1337:6c03]  23:53:16.925 sip_transactio  Stopping transaction layer module
2011-07-29 23:53:16.929 ipjsua[1337:6c03]  23:53:16.929 sip_endpoint.c  Module "mod-default-handler" unregistered
2011-07-29 23:53:16.931 ipjsua[1337:6c03]  23:53:16.931 sip_endpoint.c  Module "mod-pjsua-options" unregistered
2011-07-29 23:53:16.933 ipjsua[1337:6c03]  23:53:16.933 sip_endpoint.c  Module "mod-pjsua-im" unregistered
2011-07-29 23:53:16.935 ipjsua[1337:6c03]  23:53:16.935 sip_endpoint.c  Module "mod-pjsua-pres" unregistered
2011-07-29 23:53:16.937 ipjsua[1337:6c03]  23:53:16.937 sip_endpoint.c  Module "mod-pjsua" unregistered
2011-07-29 23:53:16.938 ipjsua[1337:6c03]  23:53:16.938 sip_endpoint.c  Module "mod-stateful-util" unregistered
2011-07-29 23:53:16.945 ipjsua[1337:6c03]  23:53:16.945 sip_endpoint.c  Module "mod-refer" unregistered
2011-07-29 23:53:16.947 ipjsua[1337:6c03]  23:53:16.947 sip_endpoint.c  Module "mod-mwi" unregistered
2011-07-29 23:53:16.949 ipjsua[1337:6c03]  23:53:16.949 sip_endpoint.c  Module "mod-presence" unregistered
2011-07-29 23:53:16.954 ipjsua[1337:6c03]  23:53:16.954 sip_endpoint.c  Module "mod-evsub" unregistered
2011-07-29 23:53:16.958 ipjsua[1337:6c03]  23:53:16.958 sip_endpoint.c  Module "mod-invite" unregistered
2011-07-29 23:53:16.961 ipjsua[1337:6c03]  23:53:16.961 sip_endpoint.c  Module "mod-100rel" unregistered
2011-07-29 23:53:16.964 ipjsua[1337:6c03]  23:53:16.964 sip_endpoint.c  Module "mod-ua" unregistered
2011-07-29 23:53:16.968 ipjsua[1337:6c03]  23:53:16.967 sip_transactio  Transaction layer module destroyed
2011-07-29 23:53:16.971 ipjsua[1337:6c03]  23:53:16.971 sip_endpoint.c  Module "mod-tsx-layer" unregistered
2011-07-29 23:53:16.974 ipjsua[1337:6c03]  23:53:16.974 sip_endpoint.c  Module "mod-msg-print" unregistered
2011-07-29 23:53:16.977 ipjsua[1337:6c03]  23:53:16.977 sip_endpoint.c  Module "mod-pjsua-log" unregistered
2011-07-29 23:53:16.980 ipjsua[1337:6c03]  23:53:16.980 sip_endpoint.c  Endpoint 0xc0aa64 destroyed
2011-07-29 23:53:16.983 ipjsua[1337:6c03]  23:53:16.983   pjsua_core.c  PJSUA destroyed...
Alejandro Orellana
2011-07-30 15:46:24 UTC
Permalink
works fine for me.
the error usually means there is another app using the same ip/port.
you may have another maybe voip app running .


thanks
On Jul 30, 2011, at 3:18 AM, Travis Kestler wrote:

Hi,

I got pjsipproject 1.10 tar release and I'm trying to run the sample iPhone app on the device. I compiled the libraries and then ran the XCode project. I'm getting the following error on the device, which does not make sense to me as there should be no app claiming this port. I've restart the device but still the same error. Any ideas?

Thanks,


2011-07-29 23:53:15.073 ipjsua[1337:707] Using two-stage rotation animation. To use the smoother single-stage animation, this application must remove two-stage method implementations.
2011-07-29 23:53:15.112 ipjsua[1337:6c03] 23:53:15.110 os_core_unix.c pjlib 1.10.0 for POSIX initialized
2011-07-29 23:53:15.310 ipjsua[1337:6c03] 23:53:15.310 sip_endpoint.c Creating endpoint instance...
2011-07-29 23:53:15.322 ipjsua[1337:6c03] 23:53:15.322 pjlib select() I/O Queue created (0xc0b130)
2011-07-29 23:53:15.326 ipjsua[1337:6c03] 23:53:15.326 sip_endpoint.c Module "mod-msg-print" registered
2011-07-29 23:53:15.329 ipjsua[1337:6c03] 23:53:15.329 sip_transport. Transport manager created.
2011-07-29 23:53:15.349 ipjsua[1337:6c03] 23:53:15.349 sip_endpoint.c Module "mod-pjsua-log" registered
2011-07-29 23:53:15.354 ipjsua[1337:6c03] 23:53:15.354 sip_endpoint.c Module "mod-tsx-layer" registered
2011-07-29 23:53:15.356 ipjsua[1337:6c03] 23:53:15.356 sip_endpoint.c Module "mod-stateful-util" registered
2011-07-29 23:53:15.362 ipjsua[1337:6c03] 23:53:15.362 sip_endpoint.c Module "mod-ua" registered
2011-07-29 23:53:15.365 ipjsua[1337:6c03] 23:53:15.365 sip_endpoint.c Module "mod-100rel" registered
2011-07-29 23:53:15.368 ipjsua[1337:6c03] 23:53:15.368 sip_endpoint.c Module "mod-pjsua" registered
2011-07-29 23:53:15.373 ipjsua[1337:6c03] 23:53:15.373 sip_endpoint.c Module "mod-invite" registered
2011-07-29 23:53:15.389 ipjsua[1337:6c03] 23:53:15.388 coreaudio_dev. dev_id 0: iPhone IO device (in=1, out=1) 8000Hz
2011-07-29 23:53:15.398 ipjsua[1337:6c03] 23:53:15.398 coreaudio_dev. core audio initialized
2011-07-29 23:53:15.404 ipjsua[1337:6c03] 23:53:15.403 pjlib select() I/O Queue created (0xc14c14)
2011-07-29 23:53:15.457 ipjsua[1337:6c03] 23:53:15.456 sip_endpoint.c Module "mod-evsub" registered
2011-07-29 23:53:15.460 ipjsua[1337:6c03] 23:53:15.460 sip_endpoint.c Module "mod-presence" registered
2011-07-29 23:53:15.463 ipjsua[1337:6c03] 23:53:15.463 sip_endpoint.c Module "mod-mwi" registered
2011-07-29 23:53:15.466 ipjsua[1337:6c03] 23:53:15.466 sip_endpoint.c Module "mod-refer" registered
2011-07-29 23:53:15.473 ipjsua[1337:6c03] 23:53:15.473 sip_endpoint.c Module "mod-pjsua-pres" registered
2011-07-29 23:53:15.476 ipjsua[1337:6c03] 23:53:15.476 sip_endpoint.c Module "mod-pjsua-im" registered
2011-07-29 23:53:15.478 ipjsua[1337:6c03] 23:53:15.478 sip_endpoint.c Module "mod-pjsua-options" registered
2011-07-29 23:53:15.481 ipjsua[1337:6c03] 23:53:15.481 pjsua_core.c 1 SIP worker threads created
2011-07-29 23:53:15.484 ipjsua[1337:6c03] 23:53:15.484 pjsua_core.c pjsua version 1.10.0 for iPhone OS-4.3.3/arm/iOS-SDK-4.3 initialized
2011-07-29 23:53:15.486 ipjsua[1337:6c03] 23:53:15.486 sip_endpoint.c Module "mod-default-handler" registered
2011-07-29 23:53:15.490 ipjsua[1337:6c03] 23:53:15.490 pjsua_core.c bind() error: Address already in use [status=120048]
2011-07-29 23:53:15.504 ipjsua[1337:6c03] 23:53:15.503 pjsua_core.c Shutting down...
2011-07-29 23:53:15.506 ipjsua[1337:6c03] 23:53:15.506 pjsua_pres.c Shutting down presence..
2011-07-29 23:53:15.508 ipjsua[1337:6c03] 23:53:15.508 pjsua_media.c Shutting down media..
2011-07-29 23:53:16.921 ipjsua[1337:6c03] 23:53:16.920 pjsua_core.c Destroying...
2011-07-29 23:53:16.925 ipjsua[1337:6c03] 23:53:16.925 sip_transactio Stopping transaction layer module
2011-07-29 23:53:16.929 ipjsua[1337:6c03] 23:53:16.929 sip_endpoint.c Module "mod-default-handler" unregistered
2011-07-29 23:53:16.931 ipjsua[1337:6c03] 23:53:16.931 sip_endpoint.c Module "mod-pjsua-options" unregistered
2011-07-29 23:53:16.933 ipjsua[1337:6c03] 23:53:16.933 sip_endpoint.c Module "mod-pjsua-im" unregistered
2011-07-29 23:53:16.935 ipjsua[1337:6c03] 23:53:16.935 sip_endpoint.c Module "mod-pjsua-pres" unregistered
2011-07-29 23:53:16.937 ipjsua[1337:6c03] 23:53:16.937 sip_endpoint.c Module "mod-pjsua" unregistered
2011-07-29 23:53:16.938 ipjsua[1337:6c03] 23:53:16.938 sip_endpoint.c Module "mod-stateful-util" unregistered
2011-07-29 23:53:16.945 ipjsua[1337:6c03] 23:53:16.945 sip_endpoint.c Module "mod-refer" unregistered
2011-07-29 23:53:16.947 ipjsua[1337:6c03] 23:53:16.947 sip_endpoint.c Module "mod-mwi" unregistered
2011-07-29 23:53:16.949 ipjsua[1337:6c03] 23:53:16.949 sip_endpoint.c Module "mod-presence" unregistered
2011-07-29 23:53:16.954 ipjsua[1337:6c03] 23:53:16.954 sip_endpoint.c Module "mod-evsub" unregistered
2011-07-29 23:53:16.958 ipjsua[1337:6c03] 23:53:16.958 sip_endpoint.c Module "mod-invite" unregistered
2011-07-29 23:53:16.961 ipjsua[1337:6c03] 23:53:16.961 sip_endpoint.c Module "mod-100rel" unregistered
2011-07-29 23:53:16.964 ipjsua[1337:6c03] 23:53:16.964 sip_endpoint.c Module "mod-ua" unregistered
2011-07-29 23:53:16.968 ipjsua[1337:6c03] 23:53:16.967 sip_transactio Transaction layer module destroyed
2011-07-29 23:53:16.971 ipjsua[1337:6c03] 23:53:16.971 sip_endpoint.c Module "mod-tsx-layer" unregistered
2011-07-29 23:53:16.974 ipjsua[1337:6c03] 23:53:16.974 sip_endpoint.c Module "mod-msg-print" unregistered
2011-07-29 23:53:16.977 ipjsua[1337:6c03] 23:53:16.977 sip_endpoint.c Module "mod-pjsua-log" unregistered
2011-07-29 23:53:16.980 ipjsua[1337:6c03] 23:53:16.980 sip_endpoint.c Endpoint 0xc0aa64 destroyed
2011-07-29 23:53:16.983 ipjsua[1337:6c03] 23:53:16.983 pjsua_core.c PJSUA destroyed...


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

pjsip mailing list
***@lists.pjsip.org<mailto:***@lists.pjsip.org>
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

------
Alejandro Orellana
Savant Systems, LLC
770 Main Street
Osterville, Ma. 02655
(508) 683-2547 (W)
(508) 683-2647 (F)
***@savantav.com<mailto:***@savantav.com>

Statement of Confidentiality
The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or at 508.683-2500 and delete this message and its attachments, if any.





Statement of Confidentiality
The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or at 508.683.2500 and delete this message and its attachments, if any.
Loading...