pjsip / pjproject

PJSIP project
http://www.pjsip.org
GNU General Public License v2.0
2.07k stars 783 forks source link

Video problem for outgoing calls #3348

Closed masoudr closed 1 year ago

masoudr commented 1 year ago

Describe the bug

I'm trying to test out the video feature from outgoing calls and transmit the webcam video to another endpoint (a softphone). I've built the app with proper configuration and added OpenH264 as the codec. Whenever I make a video call with pjsua app the access camera on my laptop turns on but I cannot see any output on the endpoint. BTW, the voice is working fine. I'm using Issabel 4 as the server and have enabled the video support along with all codecs. I already tested the server with another softphone and the video is working fine. I also tried out the API and I'm getting the exact same problem. Thanks.

Steps to reproduce

pjsip configuration: ./configure --with-ssl=/home/masoud/pjsip/openssl-openssl-3.0.7 --with-gnutls=/home/masoud/pjsip/gnutls-3.6.16 --with-vpx=/home/masoud/pjsip/libvpx-1.12.0 --with-openh264=/usr/local/lib CFLAGS='-g' --enable-shared

pjsua command:

./pjsip-apps/bin/pjsua-x86_64-unknown-linux-gnu --id=sip:101@issabel.local --registrar=sip:issabel.local --realm="*" --username=101 --password=abc --video --vcapture-dev=0 sip:102@issabel.local

If I only enable h264 on Issable video settings I will not get any Bad RTP pt 34 (expecting 97) error but the behavior is the same.

PJSIP version

2.13

Context

Target is Ubuntu 18.04 amd64.

Log, call stack, etc

PJSIP configuration:
./configure --with-ssl=/home/masoud/pjsip/openssl-openssl-3.0.7 --with-gnutls=/home/masoud/pjsip/gnutls-3.6.16 --with-vpx=/home/masoud/pjsip/libvpx-1.12.0 --with-openh264=/usr/local/lib  CFLAGS='-g' --enable-shared`

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking for ranlib... ranlib
checking for ar... ar
checking for pthread_create in -lpthread... yes
checking for puts in -lwsock32... no
checking for puts in -lws2_32... no
checking for puts in -lole32... no
checking for puts in -lwinmm... no
checking for puts in -lsocket... no
checking for puts in -lrt... yes
checking for sin in -lm... yes
checking for uuid_generate in -luuid... no
checking for uuid_generate in -luuid... (cached) no
checking for library containing gethostbyname... none required
Setting PJ_M_NAME to x86_64
checking memory alignment... 8 bytes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
Checking if floating point is disabled... no
checking for arpa/inet.h... yes
checking for assert.h... yes
checking for ctype.h... yes
checking for errno.h... yes
checking for fcntl.h... yes
checking for linux/socket.h... yes
checking for limits.h... yes
checking for malloc.h... yes
checking for netdb.h... yes
checking for netinet/in_systm.h... yes
checking for netinet/in.h... yes
checking for netinet/ip.h... yes
checking for netinet/tcp.h... yes
checking for ifaddrs.h... yes
checking for getifaddrs... yes
checking for semaphore.h... yes
checking for setjmp.h... yes
checking for stdarg.h... yes
checking for stddef.h... yes
checking for stdio.h... (cached) yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/ioctl.h... yes
checking for sys/select.h... yes
checking for sys/socket.h... yes
checking for sys/time.h... yes
checking for sys/timeb.h... yes
checking for sys/types.h... (cached) yes
checking for sys/filio.h... no
checking for sys/sockio.h... no
checking for sys/utsname.h... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking for execinfo.h... yes
checking for winsock.h... no
checking for winsock2.h... no
checking for mswsock.h... no
checking for ws2tcpip.h... no
checking for uuid/uuid.h... no
checking for net/if.h... yes
checking for localtime_r... yes
Setting PJ_OS_NAME to x86_64-unknown-linux-gnu
Setting PJ_HAS_ERRNO_VAR to 1
Setting PJ_HAS_HIGH_RES_TIMER to 1
Setting PJ_HAS_MALLOC to 1
Setting PJ_NATIVE_STRING_IS_UNICODE to 0
Setting PJ_ATOMIC_VALUE_TYPE to long
checking if inet_aton() is available... yes
checking if inet_pton() is available... yes
checking if inet_ntop() is available... yes
checking if getaddrinfo() is available... yes
checking if socketpair() is available... yes
checking if sockaddr_in has sin_len member... no
checking if socklen_t is available... yes
checking if IPV6_V6ONLY is available... yes
checking if SO_ERROR is available... yes
checking if pthread_rwlock_t is available... yes
checking if pthread_mutexattr_settype() is available... no
checking if pthread_mutexattr_t has recursive member... no
checking ioqueue backend... select()
Building shared libraries... yes
Building pjsua2 library and application... yes
checking UPnP usability... no
checking for sys/soundcard.h... yes
checking for linux/soundcard.h... yes
checking for machine/soundcard.h... no
checking for alsa/version.h... yes
Checking sound device backend... alsa
Checking if small filter is disabled... no
Checking if large filter is disabled... no
Checking if Speex AEC is disabled...no
Checking if G.711 codec is disabled...no
Checking if L16 codec is disabled...no
Checking if GSM codec is disabled...no
Checking if G.722 codec is disabled...no
Checking if G.722.1 codec is disabled...no
Checking if Speex codec is disabled...no
Checking if iLBC codec is disabled...no
Checking if libsamplerate is enabled...no
Building libresample as shared library... no
Checking if Speex resample is enabled... no
checking for sdl2-config... /usr/local/bin/sdl2-config
checking SDL availability... 2.27.0
checking for pkg-config... pkg-config
checking ffmpeg packages...  libavdevice libavformat libavcodec libswscale libavutil
checking for enum AVPixelFormat... yes
checking for v4l2_open in -lv4l2... yes
checking OpenH264 usability... yes
Checking if VPX is disabled... yes
Skipping Intel IPP settings (not wanted)
Using SSL prefix... /home/masoud/pjsip/openssl-openssl-3.0.7
Using GnuTLS prefix... /home/masoud/pjsip/gnutls-3.6.16
checking for x86_64-unknown-linux-gnu-pkg-config... (cached) pkg-config
checking for GnuTLS installations..
checking for gnutls/gnutls.h... yes
GnuTLS library found, SSL support enabled
checking for OpenCORE AMR installations..
checking for opencore-amrnb/interf_enc.h... no
checking for Encoder_Interface_init in -lopencore-amrnb... no
checking for vo-amrwbenc/enc_if.h... no
checking for opencore-amrwb/dec_if.h... no
checking for D_IF_init in -lopencore-amrwb... no
checking for E_IF_init in -lvo-amrwbenc... no
checking for SILK installations..
checking for SKP_Silk_SDK_API.h... no
checking for SKP_Silk_SDK_get_version in -lSKP_SILK_SDK... no
checking for OPUS installations..
checking for opus/opus.h... no
checking for opus_repacketizer_get_size in -lopus... no
OPUS library not found, OPUS support disabled
checking bcg729 usability... no
Checking if libsrtp is disabled...no
Checking if libyuv is disabled...no
Checking if libwebrtc is disabled...no
Checking if libwebrtc-aec3 is enabled...no
checking if select() needs correct nfds... no (default)
** Decided that select() doesn't need correct nfds (please check)
checking if pj_thread_create() should enforce stack size... no (default)
checking if pj_thread_create() should allocate stack... no (default)
** Setting non-blocking recv() retval to EAGAIN (please check)
** Setting non-blocking connect() retval to EINPROGRESS (please check)
checking for pthread_np.h... no
checking for pthread_setname_np... yes
checking for pthread_set_name_np... no
aconfigure: creating ./config.status
config.status: creating build.mak
config.status: creating build/os-auto.mak
config.status: creating build/cc-auto.mak
config.status: creating pjlib/build/os-auto.mak
config.status: creating pjlib-util/build/os-auto.mak
config.status: creating pjmedia/build/os-auto.mak
config.status: creating pjsip/build/os-auto.mak
config.status: creating third_party/build/os-auto.mak
config.status: creating pjlib/include/pj/compat/os_auto.h
config.status: pjlib/include/pj/compat/os_auto.h is unchanged
config.status: creating pjlib/include/pj/compat/m_auto.h
config.status: pjlib/include/pj/compat/m_auto.h is unchanged
config.status: creating pjmedia/include/pjmedia/config_auto.h
config.status: pjmedia/include/pjmedia/config_auto.h is unchanged
config.status: creating pjmedia/include/pjmedia-codec/config_auto.h
config.status: pjmedia/include/pjmedia-codec/config_auto.h is unchanged
config.status: creating pjsip/include/pjsip/sip_autoconf.h
config.status: pjsip/include/pjsip/sip_autoconf.h is unchanged

Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h.

Further customizations can be put in:
  - 'user.mak'
  - 'pjlib/include/pj/config_site.h'

The next step now is to run 'make dep' and 'make'.
----------------------------------------------------
PJSUA output:
./pjsip-apps/bin/pjsua-x86_64-unknown-linux-gnu --id=sip:101@issabel.local --registrar=sip:issabel.local --realm="*" --username=101 --password=abc --video --vcapture-dev=0 sip:102@issabel.local

04:34:30.969         sip_endpoint.c !.Module "mod-pjsua-log" registered
04:34:30.969         sip_endpoint.c  .Module "mod-tsx-layer" registered
04:34:30.969         sip_endpoint.c  .Module "mod-stateful-util" registered
04:34:30.969         sip_endpoint.c  .Module "mod-ua" registered
04:34:30.969         sip_endpoint.c  .Module "mod-100rel" registered
04:34:30.969         sip_endpoint.c  .Module "mod-pjsua" registered
04:34:30.969         sip_endpoint.c  .Module "mod-invite" registered
04:34:31.348             alsa_dev.c  ..ALSA driver found 15 devices
04:34:31.348             alsa_dev.c  ..ALSA initialized
04:34:31.348                  pjlib  ..select() I/O Queue created (0x555ef0f0c5f8)
04:34:31.350            pjsua_vid.c  ..Initializing video subsystem..
04:34:31.352           openh264.cpp  ...OpenH264 codec initialized
04:34:31.352                  vpx.c  ...VPX codec initialized
04:34:31.631             v4l2_dev.c  ...Video4Linux2 has 1 devices
04:34:31.631              sdl_dev.c  ...SDL 2.27 initialized
04:34:31.631         colorbar_dev.c  ...Colorbar video src initialized with 2 device(s):
04:34:31.631         colorbar_dev.c  ... 0: Colorbar generator
04:34:31.631         colorbar_dev.c  ... 1: Colorbar-active
04:34:31.631         sip_endpoint.c  .Module "mod-evsub" registered
04:34:31.631         sip_endpoint.c  .Module "mod-presence" registered
04:34:31.631         sip_endpoint.c  .Module "mod-mwi" registered
04:34:31.631         sip_endpoint.c  .Module "mod-refer" registered
04:34:31.632         sip_endpoint.c  .Module "mod-pjsua-pres" registered
04:34:31.632         sip_endpoint.c  .Module "mod-pjsua-im" registered
04:34:31.632         sip_endpoint.c  .Module "mod-pjsua-options" registered
04:34:31.632           pjsua_core.c  .1 SIP worker threads created
04:34:31.632           pjsua_core.c  .pjsua version 2.13 for Linux-4.18.0.15/x86_64/glibc-2.27 initialized
04:34:31.632           pjsua_core.c  .PJSUA state changed: CREATED --> INIT
04:34:31.632         sip_endpoint.c  Module "mod-default-handler" registered
04:34:31.632           pjsua_core.c  SIP UDP socket reachable at 192.168.245.142:5060
04:34:31.632      udp0x555ef0f5e8e0  SIP UDP transport started, published address is 192.168.245.142:5060
04:34:31.632            pjsua_acc.c  Adding account: id=<sip:192.168.245.142:5060>
04:34:31.632            pjsua_acc.c  .Account <sip:192.168.245.142:5060> added with id 0
04:34:31.632            pjsua_acc.c  Modifying account 0
04:34:31.632            pjsua_acc.c  Acc 0: setting online status to 1..
04:34:31.632             tcptp:5060  SIP TCP listener ready for incoming connections at 192.168.245.142:5060
04:34:31.632            pjsua_acc.c  Adding account: id=<sip:192.168.245.142:5060;transport=TCP>
04:34:31.632            pjsua_acc.c  .Account <sip:192.168.245.142:5060;transport=TCP> added with id 1
04:34:31.632            pjsua_acc.c  Modifying account 1
04:34:31.632            pjsua_acc.c  Acc 1: setting online status to 1..
04:34:31.632            pjsua_acc.c  Adding account: id=sip:101@issabel.local
04:34:31.633            pjsua_acc.c  .Account sip:101@issabel.local added with id 2
04:34:31.633            pjsua_acc.c  .Acc 2: setting registration..
04:34:31.736           pjsua_core.c  ...TX 547 bytes Request msg REGISTER/cseq=20230 (tdta0x555ef0f674d8) to UDP 192.168.245.143:5060:
REGISTER sip:issabel.local SIP/2.0
Via: SIP/2.0/UDP 192.168.245.142:5060;rport;branch=z9hG4bKPjkkkKH.BKc.r.O8XE.kL9GHCtKKd.xTJu
Max-Forwards: 70
From: <sip:101@issabel.local>;tag=vkn0ZAvYpHCsQR9bmBxXPPO2.izR.fcK
To: <sip:101@issabel.local>
Call-ID: JxUoeXC6z7oiY-MqmN2GSmhoNxeENyfn
CSeq: 20230 REGISTER
User-Agent: PJSUA v2.13 Linux-4.18.0.15/x86_64/glibc-2.27
Contact: <sip:101@192.168.245.142:5060;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length:  0

--end msg--
04:34:31.737            pjsua_acc.c  ..Acc 2: Registration sent
04:34:31.737            pjsua_acc.c  Acc 2: setting online status to 1..
04:34:31.737           pjsua_pres.c  Adding buddy: sip:102@issabel.local
04:34:31.737           pjsua_pres.c  .Buddy 0 added.
04:34:31.737           pjsua_pres.c  ..Buddy 0: updating presence..
04:34:31.737           pjsua_core.c  PJSUA state changed: INIT --> STARTING
04:34:31.737         sip_endpoint.c  .Module "mod-unsolicited-mwi" registered
04:34:31.737           pjsua_core.c  .PJSUA state changed: STARTING --> RUNNING
04:34:31.737                 main.c  Ready: Success
04:34:31.737           pjsua_call.c  Making call with acc #2 to sip:102@issabel.local
04:34:31.738            pjsua_aud.c  .Set sound device: capture=-1, playback=-2, mode=0, use_default_settings=0
04:34:31.738            pjsua_app.c  ..Turning sound device -1 -2 ON
04:34:31.738            pjsua_aud.c  ..Opening sound device (speaker + mic) PCM@16000/1/20ms
04:34:31.738           pjsua_core.c  .RX 573 bytes Response msg 401/REGISTER/cseq=20230 (rdata0x555ef0f62e18) from UDP 192.168.245.143:5060:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.245.142:5060;branch=z9hG4bKPjkkkKH.BKc.r.O8XE.kL9GHCtKKd.xTJu;received=192.168.245.142;rport=5060
From: <sip:101@issabel.local>;tag=vkn0ZAvYpHCsQR9bmBxXPPO2.izR.fcK
To: <sip:101@issabel.local>;tag=as1fdc0846
Call-ID: JxUoeXC6z7oiY-MqmN2GSmhoNxeENyfn
CSeq: 20230 REGISTER
Server: IPBX-2.11.0(16.7.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="55eecbd4"
Content-Length: 0

--end msg--
04:34:31.887       ec0x555ef0f2cc60  ...Speex AEC created, clock_rate=16000, channel=1, samples per frame=320, tail length=200 ms, latency=0 ms
04:34:31.887          pjsua_media.c  .Call 0: initializing media..
04:34:31.888          pjsua_media.c  ..RTP socket reachable at 192.168.245.142:4000
04:34:31.888          pjsua_media.c  ..RTCP socket reachable at 192.168.245.142:4001
04:34:31.888          pjsua_media.c  ..RTP socket reachable at 192.168.245.142:4002
04:34:31.888          pjsua_media.c  ..RTCP socket reachable at 192.168.245.142:4003
04:34:31.888          pjsua_media.c  ..Media index 0 selected for audio call 0
04:34:31.888      udp0x555ef0fa6f40  ..UDP media transport created
04:34:31.888      udp0x555ef0fab500  ..UDP media transport created
04:34:31.889     tcpc0x555ef0fba028  ....TCP client transport created
04:34:31.889     tcpc0x555ef0fba028  ....TCP transport 192.168.245.142:32869 is connecting to 192.168.245.143:5060...
04:34:31.889           pjsua_core.c  ....TX 1668 bytes Request msg INVITE/cseq=23633 (tdta0x555ef0fb43a8) to TCP 192.168.245.143:5060:
INVITE sip:102@issabel.local SIP/2.0
Via: SIP/2.0/TCP 192.168.245.142:32869;rport;branch=z9hG4bKPjSoFhYWhjVVR0qSe7tgsvh9.LEHPjasGK;alias
Max-Forwards: 70
From: sip:101@issabel.local;tag=PpEYJitpx-eNpzLiYXC8DZK4wYcHm28j
To: sip:102@issabel.local
Contact: <sip:101@192.168.245.142:5060;ob>
Call-ID: BFJ91LHI9ck.nSOP5dkUTNZ41GoSv6kw
CSeq: 23633 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Session-Expires: 1800
Min-SE: 90
User-Agent: PJSUA v2.13 Linux-4.18.0.15/x86_64/glibc-2.27
Content-Type: application/sdp
Content-Length:  1015

v=0
o=- 3884157271 3884157271 IN IP4 192.168.245.142
s=pjmedia
b=AS:352
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 96 97 98 99 3 0 8 9 120 121 122
c=IN IP4 192.168.245.142
b=TIAS:64000
a=rtcp:4001 IN IP4 192.168.245.142
a=sendrecv
a=rtpmap:96 speex/16000
a=rtpmap:97 speex/8000
a=rtpmap:98 speex/32000
a=rtpmap:99 iLBC/8000
a=fmtp:99 mode=30
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:120 telephone-event/16000
a=fmtp:120 0-16
a=rtpmap:121 telephone-event/8000
a=fmtp:121 0-16
a=rtpmap:122 telephone-event/32000
a=fmtp:122 0-16
a=ssrc:541678230 cname:019ada462608f134
m=video 4002 RTP/AVP 97 96 102
c=IN IP4 192.168.245.142
b=TIAS:256000
a=rtcp:4003 IN IP4 192.168.245.142
a=sendrecv
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=42e01e; packetization-mode=1
a=rtpmap:96 H263-1998/90000
a=fmtp:96 CIF=1;QCIF=1
a=rtpmap:102 VP8/90000
a=fmtp:102 max-fr=30; max-fs=580
a=ssrc:1476734724 cname:019ada462608f134
a=rtcp-fb:* nack pli

--end msg--
04:34:31.893             alsa_dev.c  pb_thread_func: underrun!
04:34:31.894            pjsua_app.c  .......Call 0 state changed to CALLING
>>>>
Account list:
  [ 0] <sip:192.168.245.142:5060>: does not register
       Online status: Online
  [ 1] <sip:192.168.245.142:5060;transport=TCP>: does not register
       Online status: Online
 *[ 2] sip:101@issabel.local: 100/In Progress (expires=-1)
       Online status: Online
Buddy list:
 [ 1] <?>  sip:102@issabel.local

+=============================================================================+
|       Call Commands:         |   Buddy, IM & Presence:  |     Account:      |
|                              |                          |                   |
|  m  Make new call            | +b  Add new buddy        | +a  Add new accnt.|
|  M  Make multiple calls      | -b  Delete buddy         | -a  Delete accnt. |
|  a  Answer call              |  i  Send IM              | !a  Modify accnt. |
|  h  Hangup call  (ha=all)    |  s  Subscribe presence   | rr  (Re-)register |
|  H  Hold call                |  u  Unsubscribe presence | ru  Unregister    |
|  v  re-inVite (release hold) |  t  Toggle online status |  >  Cycle next ac.|
|  U  send UPDATE              |  T  Set online status    |  <  Cycle prev ac.|
| ],[ Select next/prev call    +--------------------------+-------------------+
|  x  Xfer call                |      Media Commands:     |  Status & Config: |
|  X  Xfer with Replaces       |                          |                   |
|  #  Send RFC 2833 DTMF       | cl  List ports           |  d  Dump status   |
|  *  Send DTMF with INFO      | cc  Connect port         | dd  Dump detailed |
| dq  Dump curr. call quality  | cd  Disconnect port      | dc  Dump config   |
|                              |  V  Adjust audio Volume  |  f  Save config   |
|  S  Send arbitrary REQUEST   | Cp  Codec priorities     |                   |
+-----------------------------------------------------------------------------+
| Video: "vid help" for more info                                             |
+-----------------------------------------------------------------------------+
|  q  QUIT      L  ReLoad       I  IP change     n  detect NAT type           |
|  sleep MS     echo [0|1|txt]                                                |
+=============================================================================+
You have 1 active call
Current call id=0 to sip:102@issabel.local [CALLING]
>>> 04:34:31.898      sip_auth_client.c !...Digest algorithm is "MD5"
04:34:31.898           pjsua_core.c  ....TX 706 bytes Request msg REGISTER/cseq=20231 (tdta0x555ef0f674d8) to UDP 192.168.245.143:5060:
REGISTER sip:issabel.local SIP/2.0
Via: SIP/2.0/UDP 192.168.245.142:5060;rport;branch=z9hG4bKPjLhoOKTmfhnnapu1PEmQyD8y2DIfntZjM
Max-Forwards: 70
From: <sip:101@issabel.local>;tag=vkn0ZAvYpHCsQR9bmBxXPPO2.izR.fcK
To: <sip:101@issabel.local>
Call-ID: JxUoeXC6z7oiY-MqmN2GSmhoNxeENyfn
CSeq: 20231 REGISTER
User-Agent: PJSUA v2.13 Linux-4.18.0.15/x86_64/glibc-2.27
Contact: <sip:101@192.168.245.142:5060;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Authorization: Digest username="101", realm="asterisk", nonce="55eecbd4", uri="sip:issabel.local", response="839d480d8021772c1690d18eb373e577", algorithm=MD5
Content-Length:  0

--end msg--
04:34:31.898     tcpc0x555ef0fba028  TCP connect() error: [code=120111]: Connection refused
04:34:31.898      tsx0x555ef0fb7318  Temporary failure in sending Request msg INVITE/cseq=23633 (tdta0x555ef0fb43a8), will try next server: Connection refused
04:34:31.899           pjsua_core.c  TX 1661 bytes Request msg INVITE/cseq=23633 (tdta0x555ef0fb43a8) to UDP 192.168.245.143:5060:
INVITE sip:102@issabel.local SIP/2.0
Via: SIP/2.0/UDP 192.168.245.142:5060;rport;branch=z9hG4bKPjSoFhYWhjVVR0qSe7tgsvh9.LEHPjasGK
Max-Forwards: 70
From: sip:101@issabel.local;tag=PpEYJitpx-eNpzLiYXC8DZK4wYcHm28j
To: sip:102@issabel.local
Contact: <sip:101@192.168.245.142:5060;ob>
Call-ID: BFJ91LHI9ck.nSOP5dkUTNZ41GoSv6kw
CSeq: 23633 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Session-Expires: 1800
Min-SE: 90
User-Agent: PJSUA v2.13 Linux-4.18.0.15/x86_64/glibc-2.27
Content-Type: application/sdp
Content-Length:  1015

v=0
o=- 3884157271 3884157271 IN IP4 192.168.245.142
s=pjmedia
b=AS:352
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 96 97 98 99 3 0 8 9 120 121 122
c=IN IP4 192.168.245.142
b=TIAS:64000
a=rtcp:4001 IN IP4 192.168.245.142
a=sendrecv
a=rtpmap:96 speex/16000
a=rtpmap:97 speex/8000
a=rtpmap:98 speex/32000
a=rtpmap:99 iLBC/8000
a=fmtp:99 mode=30
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:120 telephone-event/16000
a=fmtp:120 0-16
a=rtpmap:121 telephone-event/8000
a=fmtp:121 0-16
a=rtpmap:122 telephone-event/32000
a=fmtp:122 0-16
a=ssrc:541678230 cname:019ada462608f134
m=video 4002 RTP/AVP 97 96 102
c=IN IP4 192.168.245.142
b=TIAS:256000
a=rtcp:4003 IN IP4 192.168.245.142
a=sendrecv
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=42e01e; packetization-mode=1
a=rtpmap:96 H263-1998/90000
a=fmtp:96 CIF=1;QCIF=1
a=rtpmap:102 VP8/90000
a=fmtp:102 max-fr=30; max-fs=580
a=ssrc:1476734724 cname:019ada462608f134
a=rtcp-fb:* nack pli

--end msg--
04:34:31.902            pjsua_app.c  SIP TCP transport is disconnected from 192.168.245.143:5060: Connection refused [status=120111]
04:34:31.902            pjsua_acc.c  Disconnected notification for transport tcpc0x555ef0fba028
04:34:31.902        sip_transport.c  .Transport tcpc0x555ef0fba028 shutting down, force=0
04:34:31.902     tcpc0x555ef0fba028  TCP transport destroyed with reason 120111: Connection refused
04:34:31.903           pjsua_core.c  .RX 569 bytes Request msg OPTIONS/cseq=102 (rdata0x7f3164001b88) from UDP 192.168.245.143:5060:
OPTIONS sip:101@192.168.245.142:5060;ob SIP/2.0
Via: SIP/2.0/UDP 192.168.245.143:5060;branch=z9hG4bK657db31a
Max-Forwards: 70
From: "Unknown" <sip:Unknown@192.168.245.143>;tag=as02ff6164
To: <sip:101@192.168.245.142:5060;ob>
Contact: <sip:Unknown@192.168.245.143:5060>
Call-ID: 32fa857b0038fc5153a8c1f46da3a4b2@192.168.245.143:5060
CSeq: 102 OPTIONS
User-Agent: IPBX-2.11.0(16.7.0)
Date: Mon, 30 Jan 2023 14:04:54 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0

--end msg--
04:34:31.903           pjsua_core.c  .TX 769 bytes Response msg 200/OPTIONS/cseq=102 (tdta0x7f3164003b58) to UDP 192.168.245.143:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.245.143:5060;received=192.168.245.143;branch=z9hG4bK657db31a
Call-ID: 32fa857b0038fc5153a8c1f46da3a4b2@192.168.245.143:5060
From: "Unknown" <sip:Unknown@192.168.245.143>;tag=as02ff6164
To: <sip:101@192.168.245.142;ob>;tag=z9hG4bK657db31a
CSeq: 102 OPTIONS
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Accept: application/sdp, application/pidf+xml, application/xpidf+xml, application/simple-message-summary, message/sipfrag;version=2.0, application/im-iscomposing+xml, text/plain
Supported: replaces, 100rel, timer, norefersub, trickle-ice
Allow-Events: presence, message-summary, refer
User-Agent: PJSUA v2.13 Linux-4.18.0.15/x86_64/glibc-2.27
Content-Length:  0

--end msg--
04:34:31.903           pjsua_core.c  .RX 594 bytes Response msg 200/REGISTER/cseq=20231 (rdata0x7f3164001b88) from UDP 192.168.245.143:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.245.142:5060;branch=z9hG4bKPjLhoOKTmfhnnapu1PEmQyD8y2DIfntZjM;received=192.168.245.142;rport=5060
From: <sip:101@issabel.local>;tag=vkn0ZAvYpHCsQR9bmBxXPPO2.izR.fcK
To: <sip:101@issabel.local>;tag=as1fdc0846
Call-ID: JxUoeXC6z7oiY-MqmN2GSmhoNxeENyfn
CSeq: 20231 REGISTER
Server: IPBX-2.11.0(16.7.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Expires: 300
Contact: <sip:101@192.168.245.142:5060;ob>;expires=300
Date: Mon, 30 Jan 2023 14:04:54 GMT
Content-Length: 0

--end msg--
04:34:31.904            pjsua_acc.c  ....SIP outbound status for acc 2 is not active
04:34:31.904            pjsua_acc.c !....sip:101@issabel.local: registration success, status=200 (OK), will re-register in 300 seconds
04:34:31.904            pjsua_acc.c  ....Keep-alive timer started for acc 2, destination:192.168.245.143:5060, interval:13s
04:34:31.904           pjsua_core.c  .RX 575 bytes Request msg NOTIFY/cseq=102 (rdata0x7f3164001b88) from UDP 192.168.245.143:5060:
NOTIFY sip:101@192.168.245.142:5060;ob SIP/2.0
Via: SIP/2.0/UDP 192.168.245.143:5060;branch=z9hG4bK59c1ffa1
Max-Forwards: 70
From: "Unknown" <sip:Unknown@192.168.245.143>;tag=as093bbcdc
To: <sip:101@192.168.245.142:5060;ob>
Contact: <sip:Unknown@192.168.245.143:5060>
Call-ID: 1ffdce1e7e7a8b3f0855ad030fb2db1f@192.168.245.143:5060
CSeq: 102 NOTIFY
User-Agent: IPBX-2.11.0(16.7.0)
Event: message-summary
Content-Type: application/simple-message-summary
Content-Length: 90

Messages-Waiting: no
Message-Account: sip:*97@192.168.245.143
Voice-Message: 0/0 (0/0)

--end msg--
04:34:31.904           pjsua_pres.c  .Got unsolicited NOTIFY from 192.168.245.143:5060..
04:34:31.904           pjsua_core.c  ...TX 323 bytes Response msg 200/NOTIFY/cseq=102 (tdta0x7f3164003b58) to UDP 192.168.245.143:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.245.143:5060;received=192.168.245.143;branch=z9hG4bK59c1ffa1
Call-ID: 1ffdce1e7e7a8b3f0855ad030fb2db1f@192.168.245.143:5060
From: "Unknown" <sip:Unknown@192.168.245.143>;tag=as093bbcdc
To: <sip:101@192.168.245.142;ob>;tag=z9hG4bK59c1ffa1
CSeq: 102 NOTIFY
Content-Length:  0

--end msg--
04:34:31.905            pjsua_app.c  ..Received MWI for acc 0:
04:34:31.905            pjsua_app.c  .. Content-Type: application/simple-message-summary
04:34:31.905            pjsua_app.c  .. Body:
Messages-Waiting: no
Message-Account: sip:*97@192.168.245.143
Voice-Message: 0/0 (0/0)

04:34:31.905           pjsua_core.c  .RX 567 bytes Response msg 401/INVITE/cseq=23633 (rdata0x7f3164001b88) from UDP 192.168.245.143:5060:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.245.142:5060;branch=z9hG4bKPjSoFhYWhjVVR0qSe7tgsvh9.LEHPjasGK;received=192.168.245.142;rport=5060
From: sip:101@issabel.local;tag=PpEYJitpx-eNpzLiYXC8DZK4wYcHm28j
To: sip:102@issabel.local;tag=as0f2b5639
Call-ID: BFJ91LHI9ck.nSOP5dkUTNZ41GoSv6kw
CSeq: 23633 INVITE
Server: IPBX-2.11.0(16.7.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="04fda5fd"
Content-Length: 0

--end msg--
04:34:31.905           pjsua_core.c  ..TX 337 bytes Request msg ACK/cseq=23633 (tdta0x7f31640072c8) to UDP 192.168.245.143:5060:
ACK sip:102@issabel.local SIP/2.0
Via: SIP/2.0/UDP 192.168.245.142:5060;rport;branch=z9hG4bKPjSoFhYWhjVVR0qSe7tgsvh9.LEHPjasGK
Max-Forwards: 70
From: sip:101@issabel.local;tag=PpEYJitpx-eNpzLiYXC8DZK4wYcHm28j
To: sip:102@issabel.local;tag=as0f2b5639
Call-ID: BFJ91LHI9ck.nSOP5dkUTNZ41GoSv6kw
CSeq: 23633 ACK
Content-Length:  0

--end msg--
04:34:31.905      sip_auth_client.c  ....Digest algorithm is "MD5"
04:34:31.905           pjsua_core.c  .......TX 1824 bytes Request msg INVITE/cseq=23634 (tdta0x555ef0fb43a8) to UDP 192.168.245.143:5060:
INVITE sip:102@issabel.local SIP/2.0
Via: SIP/2.0/UDP 192.168.245.142:5060;rport;branch=z9hG4bKPjXGw-QwQrI4RQSE4GBxU8rLRxzpmlcibM
Max-Forwards: 70
From: sip:101@issabel.local;tag=PpEYJitpx-eNpzLiYXC8DZK4wYcHm28j
To: sip:102@issabel.local
Contact: <sip:101@192.168.245.142:5060;ob>
Call-ID: BFJ91LHI9ck.nSOP5dkUTNZ41GoSv6kw
CSeq: 23634 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Session-Expires: 1800
Min-SE: 90
User-Agent: PJSUA v2.13 Linux-4.18.0.15/x86_64/glibc-2.27
Authorization: Digest username="101", realm="asterisk", nonce="04fda5fd", uri="sip:102@issabel.local", response="ec95bd6872c327058891fab4d4ec61d3", algorithm=MD5
Content-Type: application/sdp
Content-Length:  1015

v=0
o=- 3884157271 3884157271 IN IP4 192.168.245.142
s=pjmedia
b=AS:352
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 96 97 98 99 3 0 8 9 120 121 122
c=IN IP4 192.168.245.142
b=TIAS:64000
a=rtcp:4001 IN IP4 192.168.245.142
a=sendrecv
a=rtpmap:96 speex/16000
a=rtpmap:97 speex/8000
a=rtpmap:98 speex/32000
a=rtpmap:99 iLBC/8000
a=fmtp:99 mode=30
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:120 telephone-event/16000
a=fmtp:120 0-16
a=rtpmap:121 telephone-event/8000
a=fmtp:121 0-16
a=rtpmap:122 telephone-event/32000
a=fmtp:122 0-16
a=ssrc:541678230 cname:019ada462608f134
m=video 4002 RTP/AVP 97 96 102
c=IN IP4 192.168.245.142
b=TIAS:256000
a=rtcp:4003 IN IP4 192.168.245.142
a=sendrecv
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=42e01e; packetization-mode=1
a=rtpmap:96 H263-1998/90000
a=fmtp:96 CIF=1;QCIF=1
a=rtpmap:102 VP8/90000
a=fmtp:102 max-fr=30; max-fs=580
a=ssrc:1476734724 cname:019ada462608f134
a=rtcp-fb:* nack pli

--end msg--
04:34:31.907           pjsua_core.c  .RX 548 bytes Response msg 100/INVITE/cseq=23634 (rdata0x7f3164001b88) from UDP 192.168.245.143:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.245.142:5060;branch=z9hG4bKPjXGw-QwQrI4RQSE4GBxU8rLRxzpmlcibM;received=192.168.245.142;rport=5060
From: sip:101@issabel.local;tag=PpEYJitpx-eNpzLiYXC8DZK4wYcHm28j
To: sip:102@issabel.local
Call-ID: BFJ91LHI9ck.nSOP5dkUTNZ41GoSv6kw
CSeq: 23634 INVITE
Server: IPBX-2.11.0(16.7.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:102@192.168.245.143:5060>
Content-Length: 0

--end msg--
04:34:31.971           pjsua_core.c  .RX 564 bytes Response msg 180/INVITE/cseq=23634 (rdata0x7f3164001b88) from UDP 192.168.245.143:5060:
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.245.142:5060;branch=z9hG4bKPjXGw-QwQrI4RQSE4GBxU8rLRxzpmlcibM;received=192.168.245.142;rport=5060
From: sip:101@issabel.local;tag=PpEYJitpx-eNpzLiYXC8DZK4wYcHm28j
To: sip:102@issabel.local;tag=as616ff385
Call-ID: BFJ91LHI9ck.nSOP5dkUTNZ41GoSv6kw
CSeq: 23634 INVITE
Server: IPBX-2.11.0(16.7.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:102@192.168.245.143:5060>
Content-Length: 0

--end msg--
04:34:31.972            pjsua_aud.c  .....Conf connect: 1 --> 0
04:34:31.972           conference.c  ......Port 1 (ringback) transmitting to port 0 (default)
04:34:31.972            pjsua_app.c  .....Call 0 state changed to EARLY (180 Ringing)
04:34:32.077           pjsua_core.c  .RX 564 bytes Response msg 180/INVITE/cseq=23634 (rdata0x7f3164001b88) from UDP 192.168.245.143:5060:
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.245.142:5060;branch=z9hG4bKPjXGw-QwQrI4RQSE4GBxU8rLRxzpmlcibM;received=192.168.245.142;rport=5060
From: sip:101@issabel.local;tag=PpEYJitpx-eNpzLiYXC8DZK4wYcHm28j
To: sip:102@issabel.local;tag=as616ff385
Call-ID: BFJ91LHI9ck.nSOP5dkUTNZ41GoSv6kw
CSeq: 23634 INVITE
Server: IPBX-2.11.0(16.7.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:102@192.168.245.143:5060>
Content-Length: 0

--end msg--
04:34:32.077            pjsua_app.c  .....Call 0 state changed to EARLY (180 Ringing)
04:34:34.496           pjsua_core.c  .RX 1384 bytes Response msg 200/INVITE/cseq=23634 (rdata0x7f3164001b88) from UDP 192.168.245.143:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.245.142:5060;branch=z9hG4bKPjXGw-QwQrI4RQSE4GBxU8rLRxzpmlcibM;received=192.168.245.142;rport=5060
From: sip:101@issabel.local;tag=PpEYJitpx-eNpzLiYXC8DZK4wYcHm28j
To: sip:102@issabel.local;tag=as616ff385
Call-ID: BFJ91LHI9ck.nSOP5dkUTNZ41GoSv6kw
CSeq: 23634 INVITE
Server: IPBX-2.11.0(16.7.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:102@192.168.245.143:5060>
Content-Type: application/sdp
Require: timer
Content-Length: 776

v=0
o=root 1598122069 1598122069 IN IP4 192.168.245.143
s=Asterisk PBX 16.7.0
c=IN IP4 192.168.245.143
b=CT:16000
t=0 0
m=audio 18564 RTP/AVP 0 3 8 98 96 99 9 97 121
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:98 speex/32000
a=rtpmap:96 speex/16000
a=rtpmap:99 iLBC/8000
a=fmtp:99 mode=30
a=rtpmap:9 G722/8000
a=rtpmap:97 speex/8000
a=rtpmap:121 telephone-event/8000
a=fmtp:121 0-16
a=maxptime:60
a=sendrecv
m=video 16778 RTP/AVP 97 102 96
a=rtpmap:97 H264/90000
a=fmtp:97 packetization-mode=1;profile-level-id=42E01E
a=rtpmap:102 VP8/90000
a=rtcp-fb:* ccm fir
a=fmtp:102 max-fr=30;max-fs=580
a=rtpmap:96 h263-1998/90000
a=fmtp:96 SQCIF=0;QCIF=1;CIF=1;CIF4=0;CIF16=0;VGA=0;F=0;I=0;J=0;T=0;K=0;N=0;BPP=0;HRD=0
a=sendrecv

--end msg--
04:34:34.497            pjsua_app.c  .....Call 0 state changed to CONNECTING
04:34:34.497      inv0x555ef0fa5b78  ....SDP negotiation done: Success
04:34:34.497          pjsua_media.c  .....Call 0: updating media..
04:34:34.497          pjsua_media.c  .......Media stream call00:0 is destroyed
04:34:34.497      udp0x555ef0fa6f40  ......UDP media transport started
04:34:34.497            pjsua_aud.c  ......Audio channel update..
04:34:34.497     strm0x7f316400fe28  .......VAD temporarily disabled
04:34:34.497      udp0x555ef0fa6f40  .......UDP media transport attached
04:34:34.497     strm0x7f316400fe28  .......Encoder stream started
04:34:34.497     strm0x7f316400fe28  .......Decoder stream started
04:34:34.498          pjsua_media.c  ......Audio updated, stream #0: PCMU (sendrecv)
04:34:34.498          pjsua_media.c  .......Media stream call00:1 is destroyed
04:34:34.498      udp0x555ef0fab500  ......UDP media transport started
04:34:34.498            pjsua_vid.c  ......Video channel update..
04:34:34.503      udp0x555ef0fab500  .......UDP media transport attached
04:34:34.503   vstenc0x7f3164016478  .......Encoder stream started
04:34:34.503   vstdec0x7f3164016478  .......Decoder stream started
04:34:34.503            pjsua_vid.c  .......Setting up RX..
04:34:34.503            pjsua_vid.c  ........Creating video window: type=stream, cap_id=-1, rend_id=-2
04:34:34.503             vid_port.c  .........Opening device SDL renderer [SDL] for render: format=I420, size=656x656 @22:1 fps
04:34:34.513             vid_port.c  .........Device SDL renderer [SDL] opened: format=I420, size=656x656 @22:1 fps
04:34:34.515             vid_conf.c  .........Added port 0 (SDL renderer)
04:34:34.515            pjsua_vid.c  .........stream window id 0 created for cap_dev=-1 rend_dev=-2
04:34:34.515            pjsua_vid.c  .........Window 0 created
04:34:34.515             vid_conf.c  ........Added port 1 (vstdec0x7f3164016478)
04:34:34.515              sdl_dev.c  ........Starting sdl video stream
04:34:34.516             vid_conf.c  .......Added port 2 (vstenc0x7f3164016478)
04:34:34.516            pjsua_vid.c  .......Setting up TX..
04:34:34.516            pjsua_vid.c  ........Creating video window: type=preview, cap_id=0, rend_id=-2
04:34:34.516             vid_port.c  .........Opening device USB2.0 HD UVC WebCam: USB2.0 HD [v4l2] for capture: format=I420, size=720x480 @15:1 fps
04:34:34.532             vid_conf.c  Port 1 (vstdec0x7f3164016478) transmitting to port 0 (SDL renderer)
04:34:34.647             vid_port.c  .........Device USB2.0 HD UVC WebCam: USB2.0 HD [v4l2] opened: format=I420, size=640x480 @15:1 fps
04:34:34.647             vid_conf.c  .........Added port 3 (USB2.0 HD UVC WebCam: USB2.0 HD)
04:34:34.647             vid_port.c  .........Opening device SDL renderer [SDL] for render: format=I420, size=720x480 @15:1 fps
04:34:34.651             vid_port.c  .........Device SDL renderer [SDL] opened: format=I420, size=720x480 @15:1 fps
04:34:34.653             vid_conf.c  .........Added port 4 (SDL renderer)
04:34:34.653            pjsua_vid.c  .........preview window id 1 created for cap_dev=0 rend_dev=-2
04:34:34.653            pjsua_vid.c  .........Window 1 created
04:34:34.653             v4l2_dev.c  ........Starting v4l2 video stream USB2.0 HD UVC WebCam: USB2.0 HD
04:34:34.775             vid_conf.c  Port 3 (USB2.0 HD UVC WebCam: USB2.0 HD) transmitting to port 2 (vstenc0x7f3164016478)
04:34:34.775            pjsua_vid.c !........Call 0 media 1: video capture set up with dev 0, wid=1
04:34:34.776          pjsua_media.c  ......Video updated, stream #1: H264 (sendrecv)
04:34:34.776            pjsua_app.c  .....Call 0 media 0 [type=audio], status is Active
04:34:34.776            pjsua_aud.c  .....Conf disconnect: 1 -x- 0
04:34:34.776           conference.c  ......Port 1 (ringback) stop transmitting to port 0 (default)
04:34:34.776            pjsua_aud.c  .....Conf connect: 3 --> 0
04:34:34.776           conference.c  ......Port 3 (sip:102@issabel.local) transmitting to port 0 (default)
04:34:34.776            pjsua_aud.c  .....Conf connect: 0 --> 3
04:34:34.776           conference.c  ......Port 0 (default) transmitting to port 3 (sip:102@issabel.local)
04:34:34.776            pjsua_app.c  .....Call 0 media 1 [type=video], status is Active
04:34:34.776           pjsua_core.c  .....TX 344 bytes Request msg ACK/cseq=23634 (tdta0x7f31640c8c58) to UDP 192.168.245.143:5060:
ACK sip:102@192.168.245.143:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.245.142:5060;rport;branch=z9hG4bKPjzoWc0QujbZWAFtWtf4IXgrCqw9JGUwZB
Max-Forwards: 70
From: sip:101@issabel.local;tag=PpEYJitpx-eNpzLiYXC8DZK4wYcHm28j
To: sip:102@issabel.local;tag=as616ff385
Call-ID: BFJ91LHI9ck.nSOP5dkUTNZ41GoSv6kw
CSeq: 23634 ACK
Content-Length:  0

--end msg--
04:34:34.776            pjsua_app.c  .....Call 0 state changed to CONFIRMED
04:34:34.776           pjsua_core.c  .RX 1384 bytes Response msg 200/INVITE/cseq=23634 (rdata0x7f3164001b88) from UDP 192.168.245.143:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.245.142:5060;branch=z9hG4bKPjXGw-QwQrI4RQSE4GBxU8rLRxzpmlcibM;received=192.168.245.142;rport=5060
From: sip:101@issabel.local;tag=PpEYJitpx-eNpzLiYXC8DZK4wYcHm28j
To: sip:102@issabel.local;tag=as616ff385
Call-ID: BFJ91LHI9ck.nSOP5dkUTNZ41GoSv6kw
CSeq: 23634 INVITE
Server: IPBX-2.11.0(16.7.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:102@192.168.245.143:5060>
Content-Type: application/sdp
Require: timer
Content-Length: 776

v=0
o=root 1598122069 1598122069 IN IP4 192.168.245.143
s=Asterisk PBX 16.7.0
c=IN IP4 192.168.245.143
b=CT:16000
t=0 0
m=audio 18564 RTP/AVP 0 3 8 98 96 99 9 97 121
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:98 speex/32000
a=rtpmap:96 speex/16000
a=rtpmap:99 iLBC/8000
a=fmtp:99 mode=30
a=rtpmap:9 G722/8000
a=rtpmap:97 speex/8000
a=rtpmap:121 telephone-event/8000
a=fmtp:121 0-16
a=maxptime:60
a=sendrecv
m=video 16778 RTP/AVP 97 102 96
a=rtpmap:97 H264/90000
a=fmtp:97 packetization-mode=1;profile-level-id=42E01E
a=rtpmap:102 VP8/90000
a=rtcp-fb:* ccm fir
a=fmtp:102 max-fr=30;max-fs=580
a=rtpmap:96 h263-1998/90000
a=fmtp:96 SQCIF=0;QCIF=1;CIF=1;CIF4=0;CIF16=0;VGA=0;F=0;I=0;J=0;T=0;K=0;N=0;BPP=0;HRD=0
a=sendrecv

--end msg--
04:34:34.777           pjsua_core.c  ...TX 344 bytes Request msg ACK/cseq=23634 (tdta0x7f31640c8c58) to UDP 192.168.245.143:5060:
ACK sip:102@192.168.245.143:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.245.142:5060;rport;branch=z9hG4bKPjzoWc0QujbZWAFtWtf4IXgrCqw9JGUwZB
Max-Forwards: 70
From: sip:101@issabel.local;tag=PpEYJitpx-eNpzLiYXC8DZK4wYcHm28j
To: sip:102@issabel.local;tag=as616ff385
Call-ID: BFJ91LHI9ck.nSOP5dkUTNZ41GoSv6kw
CSeq: 23634 ACK
Content-Length:  0

--end msg--
04:34:34.777           pjsua_core.c  .RX 1384 bytes Response msg 200/INVITE/cseq=23634 (rdata0x7f3164001b88) from UDP 192.168.245.143:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.245.142:5060;branch=z9hG4bKPjXGw-QwQrI4RQSE4GBxU8rLRxzpmlcibM;received=192.168.245.142;rport=5060
From: sip:101@issabel.local;tag=PpEYJitpx-eNpzLiYXC8DZK4wYcHm28j
To: sip:102@issabel.local;tag=as616ff385
Call-ID: BFJ91LHI9ck.nSOP5dkUTNZ41GoSv6kw
CSeq: 23634 INVITE
Server: IPBX-2.11.0(16.7.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:102@192.168.245.143:5060>
Content-Type: application/sdp
Require: timer
Content-Length: 776

v=0
o=root 1598122069 1598122069 IN IP4 192.168.245.143
s=Asterisk PBX 16.7.0
c=IN IP4 192.168.245.143
b=CT:16000
t=0 0
m=audio 18564 RTP/AVP 0 3 8 98 96 99 9 97 121
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:98 speex/32000
a=rtpmap:96 speex/16000
a=rtpmap:99 iLBC/8000
a=fmtp:99 mode=30
a=rtpmap:9 G722/8000
a=rtpmap:97 speex/8000
a=rtpmap:121 telephone-event/8000
a=fmtp:121 0-16
a=maxptime:60
a=sendrecv
m=video 16778 RTP/AVP 97 102 96
a=rtpmap:97 H264/90000
a=fmtp:97 packetization-mode=1;profile-level-id=42E01E
a=rtpmap:102 VP8/90000
a=rtcp-fb:* ccm fir
a=fmtp:102 max-fr=30;max-fs=580
a=rtpmap:96 h263-1998/90000
a=fmtp:96 SQCIF=0;QCIF=1;CIF=1;CIF4=0;CIF16=0;VGA=0;F=0;I=0;J=0;T=0;K=0;N=0;BPP=0;HRD=0
a=sendrecv

--end msg--
04:34:34.778           pjsua_core.c  ...TX 344 bytes Request msg ACK/cseq=23634 (tdta0x7f31640c8c58) to UDP 192.168.245.143:5060:
ACK sip:102@192.168.245.143:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.245.142:5060;rport;branch=z9hG4bKPjzoWc0QujbZWAFtWtf4IXgrCqw9JGUwZB
Max-Forwards: 70
From: sip:101@issabel.local;tag=PpEYJitpx-eNpzLiYXC8DZK4wYcHm28j
To: sip:102@issabel.local;tag=as616ff385
Call-ID: BFJ91LHI9ck.nSOP5dkUTNZ41GoSv6kw
CSeq: 23634 ACK
Content-Length:  0

--end msg--
04:34:34.779           pjsua_call.c  .Call 0 sending re-INVITE for updating media session to use only one codec
04:34:34.779           pjsua_core.c  ....TX 1207 bytes Request msg INVITE/cseq=23635 (tdta0x7f31640cea98) to UDP 192.168.245.143:5060:
INVITE sip:102@192.168.245.143:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.245.142:5060;rport;branch=z9hG4bKPjsdUvkzk07hP80HsWSGUnWF5ralYkpsPm
Max-Forwards: 70
From: sip:101@issabel.local;tag=PpEYJitpx-eNpzLiYXC8DZK4wYcHm28j
To: sip:102@issabel.local;tag=as616ff385
Contact: <sip:101@192.168.245.142:5060;ob>
Call-ID: BFJ91LHI9ck.nSOP5dkUTNZ41GoSv6kw
CSeq: 23635 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Session-Expires: 1800;refresher=uas
Min-SE: 90
Content-Type: application/sdp
Content-Length:   584

v=0
o=- 3884157271 3884157272 IN IP4 192.168.245.142
s=pjmedia
b=AS:352
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 0 121
c=IN IP4 192.168.245.142
b=TIAS:64000
a=rtcp:4001 IN IP4 192.168.245.142
a=ssrc:541678230 cname:019ada462608f134
a=rtpmap:0 PCMU/8000
a=rtpmap:121 telephone-event/8000
a=fmtp:121 0-16
a=sendrecv
m=video 4002 RTP/AVP 97
c=IN IP4 192.168.245.142
b=TIAS:256000
a=rtcp:4003 IN IP4 192.168.245.142
a=ssrc:1476734724 cname:019ada462608f134
a=rtcp-fb:* nack pli
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=42e01e; packetization-mode=1
a=sendrecv

--end msg--
04:34:34.780           pjsua_core.c  .RX 563 bytes Response msg 100/INVITE/cseq=23635 (rdata0x7f3164001b88) from UDP 192.168.245.143:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.245.142:5060;branch=z9hG4bKPjsdUvkzk07hP80HsWSGUnWF5ralYkpsPm;received=192.168.245.142;rport=5060
From: sip:101@issabel.local;tag=PpEYJitpx-eNpzLiYXC8DZK4wYcHm28j
To: sip:102@issabel.local;tag=as616ff385
Call-ID: BFJ91LHI9ck.nSOP5dkUTNZ41GoSv6kw
CSeq: 23635 INVITE
Server: IPBX-2.11.0(16.7.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:102@192.168.245.143:5060>
Content-Length: 0

--end msg--
04:34:34.781           pjsua_core.c  .RX 983 bytes Response msg 200/INVITE/cseq=23635 (rdata0x7f3164001b88) from UDP 192.168.245.143:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.245.142:5060;branch=z9hG4bKPjsdUvkzk07hP80HsWSGUnWF5ralYkpsPm;received=192.168.245.142;rport=5060
From: sip:101@issabel.local;tag=PpEYJitpx-eNpzLiYXC8DZK4wYcHm28j
To: sip:102@issabel.local;tag=as616ff385
Call-ID: BFJ91LHI9ck.nSOP5dkUTNZ41GoSv6kw
CSeq: 23635 INVITE
Server: IPBX-2.11.0(16.7.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:102@192.168.245.143:5060>
Content-Type: application/sdp
Require: timer
Content-Length: 375

v=0
o=root 1598122069 1598122070 IN IP4 192.168.245.143
s=Asterisk PBX 16.7.0
c=IN IP4 192.168.245.143
b=CT:16000
t=0 0
m=audio 18564 RTP/AVP 0 121
a=rtpmap:0 PCMU/8000
a=rtpmap:121 telephone-event/8000
a=fmtp:121 0-16
a=maxptime:150
a=sendrecv
m=video 16778 RTP/AVP 97
a=rtpmap:97 H264/90000
a=fmtp:97 packetization-mode=1;profile-level-id=42E01E
a=sendrecv

--end msg--
04:34:34.781      inv0x555ef0fa5b78  ....SDP negotiation done: Success
04:34:34.782          pjsua_media.c  .....Call 0: updating media..
04:34:34.782      udp0x555ef0fa6f40  .......UDP media transport detached
04:34:34.782          pjsua_media.c  .......Media stream call00:0 is destroyed
04:34:34.782      udp0x555ef0fa6f40  ......UDP media transport started
04:34:34.782            pjsua_aud.c  ......Audio channel update..
04:34:34.782     strm0x7f316400fe28  .......VAD temporarily disabled
04:34:34.782      udp0x555ef0fa6f40  .......UDP media transport attached
04:34:34.782     strm0x7f316400fe28  .......Encoder stream started
04:34:34.782     strm0x7f316400fe28  .......Decoder stream started
04:34:34.782          pjsua_media.c  ......Audio updated, stream #0: PCMU (sendrecv)
04:34:34.782          pjsua_media.c  ......Call 0: stream #1 (video) unchanged.
04:34:34.783          pjsua_media.c  ......Video updated, stream #1: H264 (sendrecv)
04:34:34.783            pjsua_app.c  .....Call 0 media 0 [type=audio], status is Active
04:34:34.783            pjsua_aud.c  .....Conf connect: 3 --> 0
04:34:34.783           conference.c  ......Port 3 (sip:102@issabel.local) transmitting to port 0 (default)
04:34:34.783            pjsua_aud.c  .....Conf connect: 0 --> 3
04:34:34.783           conference.c  ......Port 0 (default) transmitting to port 3 (sip:102@issabel.local)
04:34:34.783            pjsua_app.c  .....Call 0 media 1 [type=video], status is Active
04:34:34.783           pjsua_core.c  .....TX 344 bytes Request msg ACK/cseq=23635 (tdta0x7f31640c8c58) to UDP 192.168.245.143:5060:
ACK sip:102@192.168.245.143:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.245.142:5060;rport;branch=z9hG4bKPjfqdI.KT47wmyv2iNeAjjsARWgu9lizNq
Max-Forwards: 70
From: sip:101@issabel.local;tag=PpEYJitpx-eNpzLiYXC8DZK4wYcHm28j
To: sip:102@issabel.local;tag=as616ff385
Call-ID: BFJ91LHI9ck.nSOP5dkUTNZ41GoSv6kw
CSeq: 23635 ACK
Content-Length:  0

--end msg--
04:34:34.786   vstdec0x7f3164016478  Bad RTP pt 34 (expecting 97)
04:34:34.787     strm0x7f316400fe28 !Resetting jitter buffer in stream playback start
04:34:34.821   vstdec0x7f3164016478  Bad RTP pt 34 (expecting 97)
04:34:34.854   vstdec0x7f3164016478  Bad RTP pt 34 (expecting 97)
04:34:34.878           Master/sound  Underflow, buf_cnt=0, will generate 1 frame
04:34:34.888   vstdec0x7f3164016478  Bad RTP pt 34 (expecting 97)
04:34:34.922   vstdec0x7f3164016478  Bad RTP pt 34 (expecting 97)
04:34:34.957   vstdec0x7f3164016478  Bad RTP pt 34 (expecting 97)
04:34:34.990   vstdec0x7f3164016478  Bad RTP pt 34 (expecting 97)
...
04:34:37.622           pjsua_core.c  .RX 589 bytes Request msg BYE/cseq=102 (rdata0x7f3164001b88) from UDP 192.168.245.143:5060:
BYE sip:101@192.168.245.142:5060;ob SIP/2.0
Via: SIP/2.0/UDP 192.168.245.143:5060;branch=z9hG4bK7e5f1f9f;rport
Max-Forwards: 70
From: sip:102@issabel.local;tag=as616ff385
To: sip:101@issabel.local;tag=PpEYJitpx-eNpzLiYXC8DZK4wYcHm28j
Call-ID: BFJ91LHI9ck.nSOP5dkUTNZ41GoSv6kw
CSeq: 102 BYE
User-Agent: IPBX-2.11.0(16.7.0)
Proxy-Authorization: Digest username="101", realm="asterisk", algorithm=MD5, uri="sip:issabel.local", nonce="04fda5fd", response="086e111ca99c7b651bc01bd584860381"
X-Asterisk-HangupCause: Normal Clearing
X-Asterisk-HangupCauseCode: 16
Content-Length: 0

--end msg--
04:34:37.622           pjsua_core.c  .......TX 306 bytes Response msg 200/BYE/cseq=102 (tdta0x7f316400e6e8) to UDP 192.168.245.143:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.245.143:5060;rport=5060;received=192.168.245.143;branch=z9hG4bK7e5f1f9f
Call-ID: BFJ91LHI9ck.nSOP5dkUTNZ41GoSv6kw
From: <sip:102@issabel.local>;tag=as616ff385
To: <sip:101@issabel.local>;tag=PpEYJitpx-eNpzLiYXC8DZK4wYcHm28j
CSeq: 102 BYE
Content-Length:  0

--end msg--
04:34:37.622          pjsua_media.c  ......Call 0: deinitializing media..
04:34:37.622          pjsua_media.c  .......
  [DISCONNCTD] To: sip:102@issabel.local;tag=as616ff385
    Call time: 00h:00m:02s, 1st res in 85 ms, conn in 2889ms
    #0 audio PCMU @8kHz, sendrecv, peer=192.168.245.143:18564
       SRTP status: Not active Crypto-suite: 
       RX pt=0, last update:00h:00m:02.664s ago
          total 144pkt 23.0KB (28.8KB +IP hdr) @avg=64.9Kbps/81.1Kbps
          pkt loss=0 (0.0%), discrd=0 (0.0%), dup=0 (0.0%), reord=0 (0.0%)
                (msec)    min     avg     max     last    dev
          loss period:   0.000   0.000   0.000   0.000   0.000
          jitter     :   0.000   2.591  13.125   4.625   2.763
       TX pt=0, ptime=20, last update:never
          total 32pkt 5.1KB (6.4KB +IP hdr) @avg=14.4Kbps/18.0Kbps
          pkt loss=0 (0.0%), dup=0 (0.0%), reorder=0 (0.0%)
                (msec)    min     avg     max     last    dev 
          loss period:   0.000   0.000   0.000   0.000   0.000
          jitter     :   0.000   0.000   0.000   0.000   0.000
       RTT msec      :   0.000   0.000   0.000   0.000   0.000
    #1 video H264, sendrecv, peer=192.168.245.143:16778
       SRTP status: Not active Crypto-suite: 
       RX pt=97, size=656x656, fps=22.00, last update:00h:00m:02.530s ago
          total 97pkt 14.7KB (18.6KB +IP hdr) @avg=37.9Kbps/47.9Kbps
          pkt loss=0 (0.0%), discrd=0 (0.0%), dup=0 (0.0%), reord=0 (0.0%)
                (msec)    min     avg     max     last    dev
          loss period:   0.000   0.000   0.000   0.000   0.000
          jitter     :   2.077  25.881  33.055  33.055   8.216
       TX pt=97, size=720x480, fps=15.00, last update:never
          total 75pkt 63.7KB (66.7KB +IP hdr) @avg=163.5Kbps/171.2Kbps
          pkt loss=0 (0.0%), dup=0 (0.0%), reorder=0 (0.0%)
                (msec)    min     avg     max     last    dev 
          loss period:   0.000   0.000   0.000   0.000   0.000
          jitter     :   0.000   0.000   0.000   0.000   0.000
       RTT msec      :   0.000   0.000   0.000   0.000   0.000
04:34:37.622      udp0x555ef0fa6f40  ........UDP media transport detached
04:34:37.622          pjsua_media.c  ........Media stream call00:0 is destroyed
04:34:37.622            pjsua_vid.c  ........Stopping video stream..
04:34:37.622              sdl_dev.c  .........Stopping sdl video stream
04:34:37.623            pjsua_vid.c  .........Window 1: destroying..
04:34:37.623             v4l2_dev.c  ..........Stopping v4l2 video stream USB2.0 HD UVC WebCam: USB2.0 HD
04:34:37.886             vid_port.c !..........Destroy request on USB2.0 HD UVC WebCam: USB2.0 HD..
04:34:37.886              sdl_dev.c  ..........Stopping sdl video stream
04:34:37.886             vid_port.c  ..........Destroy request on SDL renderer..
04:34:37.886            pjsua_vid.c  .........Call 0 media 1: Preview video window released
04:34:37.886            pjsua_vid.c  .........Window 0: destroying..
04:34:37.886              sdl_dev.c  ..........Stopping sdl video stream
04:34:37.886             vid_port.c  ..........Destroy request on SDL renderer..
04:34:37.886            pjsua_vid.c  .........Call 0 media 1: Stream video window released
04:34:37.886           vid_stream.c  .........Destroy request on vstrm0x7f3164016478..
04:34:37.886      udp0x555ef0fab500  .........UDP media transport detached
04:34:37.886          pjsua_media.c  ........Media stream call00:1 is destroyed
04:34:37.886      udp0x555ef0fa6f40  .......UDP media transport destroyed
04:34:37.886      udp0x555ef0fab500  .......UDP media transport destroyed
04:34:37.886            pjsua_app.c  ......Call 0 is DISCONNECTED [reason=200 (Normal call clearing)]
libv4l2: error dequeuing buf: Invalid argument
04:34:37.887             vid_conf.c  Port 3 (USB2.0 HD UVC WebCam: USB2.0 HD) stop transmitting to port 2 (vstenc0x7f3164016478)
04:34:37.887             vid_conf.c  Removed port 3 (USB2.0 HD UVC WebCam: USB2.0 HD)
04:34:37.887             vid_port.c  Destroying USB2.0 HD UVC WebCam: USB2.0 HD..
04:34:37.887             v4l2_dev.c  Stopping v4l2 video stream USB2.0 HD UVC WebCam: USB2.0 HD
04:34:37.887             v4l2_dev.c  Destroying v4l2 video stream USB2.0 HD UVC WebCam: USB2.0 HD
04:34:37.887             vid_conf.c  Removed port 4 (SDL renderer)
04:34:37.887             vid_port.c  Destroying SDL renderer..
04:34:37.887              sdl_dev.c  Stopping sdl video stream
04:34:37.887             vid_conf.c  Port 1 (vstdec0x7f3164016478) stop transmitting to port 0 (SDL renderer)
04:34:37.887             vid_conf.c  Removed port 0 (SDL renderer)
04:34:37.887             vid_port.c  Destroying SDL renderer..
04:34:37.887              sdl_dev.c  Stopping sdl video stream
04:34:37.888             vid_conf.c  Removed port 2 (vstenc0x7f3164016478)
04:34:37.888             vid_conf.c  Removed port 1 (vstdec0x7f3164016478)
04:34:37.888           vid_stream.c  Destroying vstrm0x7f3164016478..
04:34:38.623            pjsua_aud.c !Closing sound device after idle for 1 second(s)
04:34:38.623            pjsua_app.c  .Turning sound device -1 -2 OFF
04:34:38.623            pjsua_aud.c  .Closing default sound playback device and default sound capture device
sauwming commented 1 year ago

Is the problem with the local or remote video display? Your description seems to suggest that the problem is with the (remote?) endpoint, but the log "Bad RTP PT" indicates that there's a problem locally.

If the problem is local, it's caused by the remote sending the wrong payload. The SDP clearly specifies that we're using PT 97. Another possible cause is that there's an entity in the middle that modifies the SDP.

If the problem is remote, then you need to check the remote's log since from PJSIP's perspective, everything seems to be transmitted just fine:

#1 video H264, sendrecv, peer=[192.168.245.143:16778](http://192.168.245.143:16778/)
       TX pt=97, size=720x480, fps=15.00, last update:never
          total 75pkt 63.7KB (66.7KB +IP hdr) @avg=163.5Kbps/171.2Kbps

Check if:

In either case, I don't see there's a possible issue with PJSIP, so I'm going to close this. Please reopen if you have new data that indicates the problem is with PJSIP.

masoudr commented 1 year ago

Thank you for the answer. My problem is that the PJSIP client can't correctly send the captured video to another client. Assume a topology is like this: PJSIP(client) video output ---> (Issabel Server) ----> 3CX softphone (client). And if I replace PJSIP with another 3cx softphone, everything will work fine. If I select all the decoders on the Issabel server, I will get Bad RTP PT errors, which indicates that PJSIP is trying to use the wrong decoding protocol. So how can I force it to use the H264? (I tried to increase its priority with vid codec prior H264/97 PRIO but didn't solve that). And it is very strange for me because if I select only H264 on the server, the error will vanish.

sauwming commented 1 year ago

https://trac.pjsip.org/repos/wiki/FAQ#bad-rtp-pt