From f5668e339d3e11b05c51e1c7bf50f915ece8cea9 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Fri, 6 Dec 2024 10:44:16 -0500 Subject: [PATCH] [asterisk] Add websocket support to softphones (for WebRTC) --- roles/asterisk/templates/pjsip.conf.j2 | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/roles/asterisk/templates/pjsip.conf.j2 b/roles/asterisk/templates/pjsip.conf.j2 index 247cd95..739fdfa 100644 --- a/roles/asterisk/templates/pjsip.conf.j2 +++ b/roles/asterisk/templates/pjsip.conf.j2 @@ -8,6 +8,12 @@ type=transport protocol=tcp bind=0.0.0.0 +[transport-wss] +type=transport +protocol=wss +bind=0.0.0.0 + +; Correl's main extension [100] type=endpoint context=from-internal @@ -31,11 +37,14 @@ max_contacts=1 ; this set. remove_existing=yes +; Correl's softphone extension [101] type=endpoint context=from-internal +dtls_auto_generate_cert=yes +webrtc=yes disallow=all -allow=ulaw +allow=opus,ulaw auth=101 aors=101 mailboxes=100@sailmaker @@ -48,7 +57,7 @@ username=101 [101] type=aor -max_contacts=1 +max_contacts=5 remove_existing=yes [102]