Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support Asterisk 20.6 and newer versions #576

Open
finch71 opened this issue Dec 18, 2024 · 9 comments
Open

support Asterisk 20.6 and newer versions #576

finch71 opened this issue Dec 18, 2024 · 9 comments

Comments

@finch71
Copy link

finch71 commented Dec 18, 2024

it would be nice to support Asterisk 20.6 and newer versions

@InnovateAsterisk
Copy link
Owner

InnovateAsterisk commented Dec 18, 2024

The document should read 18+

It was only while Asterisk was transitioning from chan_sip to pjsip that there was a consideration on the version number. Browser Phone supports any version of Asterisk great than 18, and FreeSWITCH, or any SIP-based PBX.

@finch71 finch71 closed this as completed Dec 19, 2024
@finch71
Copy link
Author

finch71 commented Dec 20, 2024

it seems that even if i set dtlsverify=fingerprint , it still show

InvalidAccessError: Failed to execute 'setRemoteDescription' on 'RTCPeerConnection': Failed to set remote offer sdp: Called with SDP without DTLS fingerprint.

@finch71 finch71 reopened this Dec 20, 2024
@InnovateAsterisk
Copy link
Owner

Rather use ‘webrtc=yes’
then then don’t need to specify that kind of thing.

@finch71
Copy link
Author

finch71 commented Dec 20, 2024

can i do this in sip.conf instead of pjsip?

@InnovateAsterisk
Copy link
Owner

It’s technically possible for chan_sip to do webrtc. I would not tho. Pjsip is a lot more mature now.

Just remember that you have to load only one sip library with load / noload in the modules.conf. They can both be loaded.

If you have to use sip.conf then you must set all the settings (can’t just use webrtc=yes)

@finch71
Copy link
Author

finch71 commented Dec 21, 2024

thanks for the reply!

after configuring webrtc=yes, the previous error are gone but i still can not call.
now browser show no error, but on the asterisk side I get Can't provide secure audio requested in SDP offer

@InnovateAsterisk
Copy link
Owner

Capture the sip trace, and post it here. Make sure it’s the invite from the browser to asterisk.

@finch71
Copy link
Author

finch71 commented Dec 21, 2024

 == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
[Dec 21 05:59:59] WARNING[863][C-0000003f]: chan_sip.c:10943 process_sdp: Can't provide secure audio requested in SDP offer

the browser log shows

SessionDescriptionHandler.setDescription failed - OperationError: SIPCC Failed to parse SDP: SDP Parse Error on line 6:  Invalid port format (21418) specified for transport protocol (RTP/AVPF), parse failed.

SIPCC Failed to parse SDP: SDP Parse Error on line 6:  Invalid port format (21418) specified for transport protocol (RTP/AVPF), parse failed.

@InnovateAsterisk
Copy link
Owner

Ah, ok it’s chan_sip module struggling with it. Below is the last config I used before I stopped using chan sip.

Make sure youse is the same as mine. For the certificate stuff, make a self signed certificate.

https://github.com/InnovateAsterisk/Browser-Phone/blob/master/config/sip.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants