And here are logs
pt., 31 maj 2019 o 11:49 Janusz Kolarczyk <januszkol@xxxxxxxxx> napisał(a):
I'm using latest revision from svnpt., 31 maj 2019 o 11:45 Ming <ming@xxxxxxxxx> napisał(a):Hi Janusz,I tested it here with the latest trunk version, adding video call with ICE, and it seemed to work fine.Which PJSIP version are you using and can you forward us the PJSIP log?Regards,Ming_______________________________________________On Fri, May 31, 2019 at 4:25 PM Janusz Kolarczyk <januszkol@xxxxxxxxx> wrote:Hello._______________________________________________In scenario:UA 1 calling to UA 2. After connected UA 2 is trying to add video.After call pjsua_call_set_vid_strm(callid, PJSUA_CALL_VID_STRM_ADD, NULL); i got crash in func create_ice_media_transport section "/* Create ICE stream transport configuration */"It is caused because m is NULL after this: m = call_med->call->async_call.rem_sdp->media[call_med->idx]; and next line: c = m->conn? m->conn : call_med->call->async_call.rem_sdp->conn; is causing crash.m is NULL because call_med->call->async_call.rem_sdp has only one media and call_med->idx is equal to 1.Any idea? Am I doing something wrong? Or it is a bug?Best RegardsJanusz
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
12:01:10.430 os_core_unix.c pjlib 2.8-svn for POSIX initialized 12:01:10.430 sip_endpoint.c .Creating endpoint instance... 12:01:10.431 sip_endpoint.c .Module "mod-msg-print" registered 12:01:10.431 sip_transport.c .Transport manager created. 12:01:10.431 pjsua_core.c .PJSUA state changed: NULL --> CREATED 12:01:10.432 sip_endpoint.c .Module "mod-pjsua-log" registered 12:01:10.432 sip_endpoint.c .Module "mod-tsx-lay12:01:10.432 sip_endpoint.c .Module "mod-stateful-util" registered 12:01:10.432 sip_endpoint.c .Module "mod-ua" registered 12:01:10.432 sip_endpoint.c .Module "mod-100rel" registered 12:01:10.432 sip_endpoint.c .Module "mod-pjsua" registered 12:01:10.432 sip_endpoint.c .Module "mod-invite" registered 12:01:10.499 coreaudio_dev.c .. dev_id 0: iPhone IO device (in=1, out=1) 8000Hz 12:01:10.499 coreaudio_dev.c ..core audio initialized 12:01:10.500 speex_codec.c ..Adjusting quality to 5 for uwb 12:01:10.500 bcg729.c ..BCG729 codec initialized 12:01:10.500 conference.c ..Creating conference bridge with 12 ports 12:01:10.503 pjsua_vid.c ..Initializing video subsystem.. 12:01:10.503 vid_conf.c ...Created video conference bridge with 32 ports 12:01:10.503 pj_vpx.c ...Init vpx codec 12:01:10.503 pj_vpx.c ...Enum codecs... 12:01:10.557 colorbar_dev.c ...Colorbar video src initialized with 2 device(s): 12:01:10.557 colorbar_dev.c ... 0: Colorbar generator 12:01:10.557 colorbar_dev.c ... 1: Colorbar-active 12:01:10.557 sip_endpoint.c .Module "mod-evsub" registered 12:01:10.557 sip_endpoint.c .Module "mod-presence" registered 12:01:10.557 evsub.c .Event pkg "presence" registered by mod-presence endpoint.c .Module "mod-mwi" registered 12:01:10.557 evsub.c .Event pkg "message-summary" registered by mod-mwi 12:01:10.557 sip_endpoint.c .Module "mod-refer" registered 12:01:10.557 evsub.c .Event pkg "refer" registered by mod-refer 12:01:10.557 sip_endpoint.c .Module "mod-pjsua-pres" registered 12:01:10.557 sip_endpoint.c .Module "mod-pjsua-im" registered 12:01:10.557 sip_endpoint.c .Module "mod-pjsua-options" registered .557 pjsua_core.c .1 SIP worker threads created 12:01:10.557 pjsua_core.c .pjsua version 2.8-svn for iOS-12.3.1/arm-iPhone10,6/iOS-SDK initialized 12:01:10.557 pjsua_core.c .PJSUA state changed: CREATED --> INIT .557 sip_endpoint.c Module "" registered 12:01:10.557 sip_endpoint.c Module "info_typing_read_module" registered 12:01:10.557 pjsua_core.c PJSUA state changed: INIT --> STARTING 12:01:10.557 pjsua_core.c .PJSUA state changed: STARTING --> RUNNING 12:01:10.557 pjsua_aud.c Setting null sound device.. 12:01:10.804 pjsua_aud.c .Opening null sound device.. 12:01:10.804 config.c PJLIB (c)2008-2016 Teluu Inc. 12:01:10.804 config.c Dumping configurations: 12:01:10.804 config.c PJ_VERSION : 2.8-svn 12:01:10.804 config.c PJ_M_NAME : arm64 12:01:10.804 config.c PJ_HAS_PENTIUM : 0 12:01:10.804 config.c PJ_OS_NAME : arm64-apple-darwin_ios 10.804 config.c PJ_CC_NAME/VER_(1,2,3) : gcc-4.2.1 12:01:10.804 config.c PJ_IS_(BIG/LITTLE)_ENDIAN : little-endian 12:01:10.804 config.c PJ_HAS_INT64 : 1 12:01:10.804 config.c PJ_DEBUG : 1 12:01:10.804 config.c PJ_FUNCTIONS_ARE_INLINED : 0 12:01:10.804 config.c PJ_LOG_MAX_LEVEL : 6 12:01:10.804 config.c PJ_LOG_MAX_SIZE : 4000 12:01:10.804 config.c PJ_LOG_USE_STACK_BUFFER : 1 12:01:10.804 config.c PJ_POOL_DEBUG : 0 12:01:10.804 config.c PJ_HAS_POOL_ALT_API 12:01:10.804 config.c PJ_HAS_TCP : 1 12:01:10.804 config.c PJ_MAX_HOSTNAME : 128 12:01:10.804 config.c ioqueue type : select 12:01:10.804 config.c PJ_IOQUEUE_MAX_HANDLES : 64 12:01:10.804 config.c PJ_IOQUEUE_HAS_SAFE_UNREG : 1 12:01:10.804 config.c PJ_HAS_THREADS : 1 12:01:10.804 config.c PJ_LOG_USE_STACK_BUFFER : 1 config.c PJ_HAS_SEMAPHORE : 1 12:01:10.804 config.c PJ_HAS_EVENT_OBJ : 1 12:01:10.804 config.c PJ_ENABLE_EXTRA_CHECK : 1 12:01:10.804 config.c PJ_HAS_EXCEPTION_NAMES 12:01:10.804 config.c PJ_MAX_EXCEPTION_ID : 16 12:01:10.804 config.c PJ_EXCEPTION_USE_WIN32_SEH: 0 12:01:10.804 config.c PJ_TIMESTAMP_USE_RDTSC: : 0 12:01:10.804 config.c PJ_12:01:10.804 config.c PJ_HAS_HIGH_RES_TIMER : 1 12:01:10.804 config.c PJ_HAS_IPV6 : 1 :01:10.812 pj_vpx.c vpx default attr 12:01:10.926 pjsua_core.c .STUN resolution success, using sip.voipswitchr12:01:10.926 stun_session.c .tdata 0x167c51028 destroy request, force=0, tsx=0x167c511b0 pjsua_acc.c .Account "48504421128"<sip:48504421128@xxxxxxxxxxxxxxxxxxxxx;transport=tls> added with id 0 12:01:11.009 pjsua_acc.c Adding account: id="48504421128"<sip:48504421128@sip.voi12:01:11.009 pjsua_acc.c .Account "48504421128"<sip:48504421128@xxxxxxxxxxxxxxxxxxxxx;transport=tls> added with id 1 pjsua_acc.c Acc 0: setting registration.. 12:01:11.013 sip_resolve.c ..DNS resolver not available, target 'sip.voipswitchrcs.com:0' type=TLS will be resolved with getaddrinfo() 12:01:11.014 sip_resolve.c ..Target 'sip.voipswitchrc12:01:11.014 pjsua_core.c ..TX 742 bytes Request msg REGISTER/cseq=11001 (tdta0x17d33d5a8) to TLS 63.32.153.19:5061: 12:01:11.014 pjsua_acc.c .Acc 0: Registration sent 12:01:11.228 stun_session.c STUN transaction 0x167c511b0 destroyed 12:01:11.228 stun_session.c STUN session 0x17c119aa8 destroyed 12:01:11.273 sip_endpoint.c Processing incoming message: Response msg 401/REGISTER/cseq=11001 (rdata0x169528848) 12:01:11.274 pjsua_core.c .RX 478 bytes Response msg 401/REGISTER/cseq=11001 (rdata0x169528848) from TLS 63.32.153.19:5061: 12:01:11.275 pjsua_core.c ....TX 946 sip_endpoint.c Processing incoming message: Response msg 100/REGISTER/cseq=11002 (rdata0x169528848) 12:01:11.337 pjsua_core.c .RX 362 bytes Response msg 100/REGISTER/cseq=11002 (rdata0x169528848) from TLS 63.32.153.19:5061: 12:01:11.386 sip_endpoint.c Processing incoming message: Response msg 200/REGISTER/cseq=11002 (rdata0x169528848) 12:01:11.386 pjsua_core.c .RX 454 bytes Response msg 200/REGISTER/cseq=11002 (rdata0x169528848) from TLS 63.32.153.19:5061: 12:01:11.386 pjsua_acc.c ....SIP outbound status for acc 0 is not active 12:01:11.386 pjsua_acc.c ...."48504421128"<sip:48504421128@xxxxxxxxxxxxxxxxxxxxx;transport=tls>: registration success, status=200 (OK), will re-register in 3600 seconds 12:01:11.390 sip_resolve.c ..DNS12:01:11.391 sip_resolve.c ..Target 'sip.voipswitchrcs.com:0' type=TLS resolved to '63.32.153.19:5061' type=TLS (TLS transport) pjsua_core.c ..TX 1218 bytes Request msg PUBLISH/cseq=54225 (tdta0x17d34b1a8) to TLS 63.32.153.19:5061: 12:01:11.485 pjsua_core.c .RX 477 bytes Response msg 401/PUBLISH/cseq=54225 (rdata0x169528848) from TLS 63.32.153.19:5061: 12:01:11.485 pjsua_core.c ....TX 1434 bytes Request msg PUBLISH/cseq=54226 (tdta0x17d34b1a8) to TLS 63.32.153.19:5061: 12:01:11.541 sip_endpoint.c Processing incoming message: Response msg 100/PUBLISH/cseq=54226 (rdata0x169528848) 12:01:11.541 pjsua_core.c .RX 361 bytes Response msg 100/PUBLISH/cseq=54226 (rdata0x169528848) from TLS 63.32.153.19:5061: 12:01:11.596 sip_endpoint.c Processing incoming message: Response msg 200/PUBLISH/cseq=54226 (rdata0x169528848) 12:01:11.596 pjsua_core.c .RX 417 bytes Response msg 200/PUBLISH/cseq=54226 (rdata0x169528848) from TLS 63.32.153.19:5061: 12:01:39.318 sip_endpoint.c Processing incoming message: Request msg INVITE/cseq=1 (rdata0x169528848) 12:01:39.318 pjsua_core.c .RX 1326 bytes Request msg INVITE/cseq=1 (rdata0x169528848) from TLS 63.32.153.19:5061: 12:01:39.318 pjsua_call.c .Incoming Request msg INVITE/cseq=1 (rdata0x169528848) 12:01:39.320 pjsua_media.c ..Call 0: initializing media.. edia.c ...Media index 0 selected for audio call 0 12:01:43.178 pjsua_core.c .....TX 328 bytes Response msg 100/INVITE/cseq=1 (tdta0x17d2975a8) to TLS 63.32.153.19:5061: 12:01:52.464 pjsua_call.c ..Answering call 0: code=180 12:01:52.464 pjsua_call.c ...Pending answering call 0 upon completion of media transport 12:01:52.466 stun_session.c .tdata 0x167c1a028 destroy request, force=0, tsx=0x167c1a1b0 12:01:52.466 stun_session.c .tdata 0x292e16e28 destroy request, force=0, tsx=0x292e16fb0 12:01:52.467 pjsua_media.c Call 0: media transport initialization complete: Success 12:01:52.468 pjsua_call.c Answering call 0: code=180 12:01:52.468 sip_transport.c ..Tx data Respon12:01:52.468 pjsua_core.c ..12:01:52.769 stun_session.c STUN transaction 0x292e16fb0 destroyed 12:01:52.769 stun_session.c STUN transaction 0x167c1a1b0 destroyed 12:01:54.824 sip_transport.c ..Tx data Response msg 180/INVITE/cseq=1 (tdta0x17d2939a8) cloned 12:01:54.824 pjsua_media.c ...Call 0: updating media.. 12:01:54.824 pjsua_media.c .....Media stream call00:0 is destroyed 12:01:54.825 pjsua_aud.c ....Audio channel update.. 12:01:54.825 rtp.c .....pjmedia_rtp_session_init: ses=0x167c5fd58, default_pt=18, ssrc=0x14f1a551 12:01:54.825 rtp.c .....pjmedia_rtp_session_init: ses=12:01:54.825 stream.c .....Stream strm0x1694f0128 created :54.825 resample.c .....resample created: high qualiy, small filter, in/out rate=8000/32000 12:01:54.825 resample.c .....resample created: high qualiy, small filter, in/out rate=32000/8000 12:01:54.825 pjsua_media.c ..12:01:54.825 pjsua_aud.c ...Conf connect: 2 --> 0 5 conference.c ....Port 2 (sip:48732104220@63.32.153.19:5061) transmitting to port 0 (Master/sound) 12:01:54.825 pjsua_aud.c ...Conf connect: 0 --> 2 12:01:54.825 conference.c ....Port 0 (Master/sound) transmitting to po12:01:54.828 pjsua_core.c ....TX 1838 bytes Response msg 200/INVITE/cseq=1 (tdta0x17d2939a8) to TLS 63.32.153.19:5061: 12:01:55.101 pjsua_aud.c .Opening null sound device.. 12:01:55.101 pjsua_aud.c Set sound device: capture=-1, playback=-2 12:01:55.103 pjsua_aud.c ..Closing null sound device.. 12:01:55.122 coreaudio_dev.c ..Using VoiceProcessingIO audio unit jsua_core.c .TX 1838 bytes Response msg 200/INVITE/cseq=1 (tdta0x17d2939a8) to TLS 63.32.153.19:5061: 12:01:55.414 os_core_unix.c Info: possibly re-registering existing thread 12:01:57.132 sip_endpoint.c Processing incoming message: Request msg ACK/cseq=1 (rdata0x169528848) 12:01:57.133 pjsua_core.c .RX 453 bytes Request msg ACK/cseq=1 (rdata0x169528848) from TLS 63.32.153.19:5061: 12:01:57.642 stun_session.c .tdata 0x167c91128 destroy request, force=0, tsx=0x167c91300 12:01:57.659 stun_session.c .tdata 0x167cc1d28 destroy request, force=0, tsx=0x167cc1f00 12:01:57.661 stun_session.c .tdata 0x167cb8c212:01:57.661 stun_session.c .tdata 0x167cd6728 destroy request, force=0, tsx=0x167cd6900 12:01:57.661 stun_session.c .tdata 0x167cb2328 destroy request, force=0, tsx=0x167cb2500 1:57.661 stun_session.c .tdata 0x167c25428 destroy request, force=0, tsx=0x167c25600 12:01:57.661 stun_session.c .tdata 0x167c06028 destroy request,12:01:57.661 stun_session.c .tdata 0x167cd3528 destroy request, force=0, tsx=0x167cd3700 12:01:57.662 stun_session.c .tdata 0x292e05628 destroy request, force=0, tsx=0x292e05800 12:01:57.662 stun_session.c 12:01:57.662 stun_session.c .tdata 0x167cd5d28 destroy request, force=0, tsx=0x167cd5f00 12:01:57.662 stun_session.c .tdata 0x167c18un_session.c .tdata 0x167c20e28 destroy request, force=0, tsx=0x167c21000 12:01:57.670 stun_session.c .tdata 0x167cda328 destroy request, force=0, tsx=0x167cd12:01:57.670 stun_session.c .tdata 0x167c0ec28 destroy request, force=0, tsx=0x167c0ee00 12:01:57.670 stun_session.c .tdata 0x167c9d428 destroy request, force=0, tsx=0x167c9d600 12:01:57.670 stun_session.c .tdata 012:01:57.670 stun_session.c .tdata 0x167cf2928 destroy request, force=0, tsx=0x167cf2b00 12:01:57.670 stun_session.c .tdata 0x167cf2428 destroy request, force=0, tsx=0x167cf2600 70 stun_session.c .tdata 0x167ccf428 destroy request, force=0, tsx=0x167ccf600 12:01:57.670 stun_session.c .tdata 0x167c89e28 destroy request, force=012:01:57.671 stun_session.c .tdata 0x292e1dc28 destroy request, force=0, tsx=0x292e1de00 12:01:57.671 stun_session.c .tdata 0x292e17d28 destroy request, force=0, tsx=0x292e17f00 12:01:57.671 stun_session.c .tdata 0x167c89928 destroy request, force=0, tsx=01:57.675 sip_endpoint.c Processing incoming message: Request msg UPDATE/cseq=2 (rdata0x169528848) 12:01:57.675 pjsua_core.c .RX 1038 bytes Request msg UPDATE/cseq=2 (rdata0x169528848) from TLS 63.32.153.19:5061: 12:01:57.676 pjsua_call.c .....Call 0: received updated media offer 12:01:57.677 pjsua_media.c ......Call 0: re-initializing media.. 12:01:57.677 pjsua_media.c .......Media index 0 selected for audio call 0 12:01:57.678 pjsua_media.c ......Call 0: updating media.. 12:01:57.678 pjsua_media.c ........Media stream call00:0 is destroyed 12:01:57.679 pjsua_aud.c .......Audio channel update.. 12:01:57.679 rtp.c ........pjmedia_rtp_session_init: ses=0x167cf7b58, default_pt=18, ssrc=0x14f1a551 12:01:57.679 rtp.c ........pjmedia_rtp_session_i12:01:57.679 stream.c ........Stream strm0x169412128 created 12:01:57.679 resample.c ........resample created: high qualiy, small filter, in/out rate=8000/32000 12:01:57.679 resample.c ........resample created: high qualiy, small filter, in/out rate=32000/8000 pjsua_media.c .......Audio updated, stream #0: G729 (sendrecv) 12:01:57.680 pjsua_aud.c ......Conf connect: 2 --> 0 12:01:57.680 conference.c .......Port 2 (sip:4873210412:01:57.680 pjsua_aud.c ......Conf connect: 0 --> 2 12:01:57.680 conference.c .......Port 0 (iPhone IO device) transmitting to port 2 (sip:48732104220@63.32.153.19:512:01:57.685 pjsua_core.c .......TX 1280 bytes Response msg 200/UPDATE/cseq=2 (tdt12:01:57.943 stun_session.c STUN transaction 0x167c91300 destroyed 12:01:57.960 stun_session.c STUN transaction 0x167cc1f00 destroyed 12:01:57.962 stun_session.c STUN transaction 0x167cb8e00 destroyed 12:01:57.962 stun_session.c STUN transaction 0x167cd6900 destroyed 12:01:57.962 stun_session.c STUN transaction 0x167c25600 destroyed 12:01:57.962 stun_session.c STUN transaction 0x167c06200 destroyed 12:01:57.962 stun_session.c STUN transaction 0x167cb2500 destroyed 12:01:57.962 stun_session.c STUN transaction 0x167cd5f00 destroyed12:01:57.962 stun_session.c STUN transaction 0x167c18e00 destroyed 12:01:57.962 stun_session.c STUN transaction 0x167cd3700 destroyed 12:01:57.962 stun_session.c STUN transaction 0x167c67a00 destroyed 12:01:57.962 stun_session.c STUN transaction 0x292e05800 destroyed 12:01:57.973 stun_session.c STUN transaction 0x167c9d600 destroyed 12:01:57.973 stun_session.c STUN transaction 0x167cda500 destroyed 12:01:57.973 stun_session.c STUN transaction 0x167c21000 destroyed 12:01:57.973 stun_session.c STUN transaction 0x167c60c00 destroyed 12:01:57.973 stun_session.c STUN transaction 0x167c0ee00 destroyed 12:01:57.973 stun_session.c STUN transaction 0x167cf2b00 destroyed12:01:57.973 stun_session.c STUN transaction 0x167cf2600 destroyed 12:01:57.973 stun_session.c STUN transaction 0x292e17f00 destroyed 12:01:57.973 stun_session.c STUN transaction 0x167c89b00 destroye12:01:57.973 stun_session.c STUN transaction 0x167c8a000 destroyed 12:01:57.973 stun_session.c STUN transaction 0x167ccf600 destroyed 12:01:57.973 stun_session.c STUN transaction 0x292e1de00 destroyed 12:02:07.420 stun_session.c tdata 0x292e08828 destroy request, force=0, tsx=0x0 12:02:07.422 stun_session.c tdata 0x167c12828 destroy request, force=0, tsx=0x0 12:02:07.423 stun_session.c tdata 0x167c15528 destroy request, force=0, tsx=0x0 12:02:07.522 stun_session.c .tdata 0x167cfc928 destroy request, force=0, tsx=0x167cfcab0 12:02:07.522 stun_session.c .tdata 0x167cf9228 destroy request, force=0, tsx=0x167cf93b0 12:02:07.642 stun_session.c tdata 0x292e10028 destroy request, force=0, tsx=0x0 12:02:07.661 stun_session.c tdata 0x167c01a28 destroy request, force=0, tsx=0x0 12:02:07.664 stun_session.c tdata 0x167c42a28 destroy request, force=0, tsx=0x0 12:02:07.664 stun_session.c tdata 0x167c71d28 destroy request, force=0, tsx=0x0 12:02:07.665 stun_session.c tdata 0x167c47528 destroy request, force=0, tsx=0x0 12:02:07.667 stun_session.c tdata 0x167cb8728 destroy request, force=0, tsx=0x0 12:02:07.667 stun_session.c tdata 0x167cb7d28 destroy request, force=0, tsx=0x0 12:02:07.667 stun_session.c tdata 0x167c2f428 destroy request, force=0, tsx=0x0 12:02:07.668 stun_session.c tdata 0x167cf5128 destroy request, force=0, tsx=0x0 12:02:07.668 stun_session.c tdata 0x167cf5628 destroy request, force=0, tsx=0x0 12:02:07.822 stun_session.c STUN transaction 0x167cfcab0 destroyed 12:02:07.823 stun_session.c STUN transaction 0x167cf93b0 destroyed 12:02:08.672 stun_session.c .tdata 0x167c1dc28 destroy request, force=0, tsx=0x0 12:02:19.674 stun_session.c .tdata 0x167c83f28 destroy request, force=0, tsx=0x0 12:02:20.273 pjsua_vid.c Call 0: set video stream, op=1
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org