Problem: Couldn't negotiate stream 0:audio-0:audio:sendrecv (nothing)

im using Asterisk 16.17.0 on ubuntu 20.04.2 LTS
ok i install libsrtp , and then i reinstall Asterisk (./configure; make; make install) .
I have also ensured that the SRTP module is selected in the Asterisk in the menuselect
I configure tls-sip on my server asterisk, my SIP users that is successfully registered .
the actual PJSIP configuration

[transport-tls]
type=transport
protocol=tls
bind=0.0.0.0:5061
cert_file=/etc/asterisk/keys/asterisk.crt
priv_key_file=/etc/asterisk/keys/asterisk.key
cipher=ADH-AES256-SHA,ADH-AES128-SHA
method=tlsv1

[6006]
type=aor
max_contacts=1
;remove_existing=yes

[6006]
type=auth
auth_type=userpass
password=0001
username=6006

[6006] 
type=endpoint
aors=6006
auth=6006
context= work
disallow=all
allow=ulaw
allow=alaw
allow=gsm
transport=transport-tls
media_encryption=sdes
use_avpf=yes

[6007] 
type=aor
max_contacts=1
; remove_existing=yes

[6007]
type=auth
auth_type=userpass
password=0000
username=6007

[6007] type=endpoint
aors=6007
auth=6007
context= work 
disallow=all
allow=ulaw
allow=alaw
allow=gsm
transport=transport-tls
media_encryption=sdes
use_avpf=yes

the SIP traces using “pjsip set logger on”
sip trace.txt (38.9 KB)

When trying to make a call, I am getting the below error:

ERROR[2650]: res_pjsip_session.c:936 handle_incoming_sdp:  6007: Couldn't negotiate stream 0:audio-0:audio:sendrecv (nothing)

and this is my softphones settings

As I recall it, the peer wasn’t using AVPF.

How to fix them to use avpf ?!

Ask on the support forum for the phone. My guess is that you write a patch for the source code and submit it to them.

Why do you require AVPF, anyway?

even if I don’t use AVPF the solution remains non-functional

As I said before, the debug log channel may contain useful information. You should enable the full log, set high debug and verbose levels, as well as pjsip set logger on, and then use the log, rather than a screen scrape (the last point is always desirable).

plizz how can i enable the full log ??

https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.