Closed masoudr closed 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.
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.
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:
If I only enable
h264
on Issable video settings I will not get anyBad 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