diff --git a/codecs.conf b/codecs.conf index 475594a..a193dd1 100644 --- a/codecs.conf +++ b/codecs.conf @@ -18,7 +18,7 @@ vad => true ; variable bit rate [true / false] ; uses bit rate proportionate to voice complexity -vbr => true +vbr => false ; available bit rate [bps, 0 = off] ; encoding quality modulated to match this target bit rate @@ -213,11 +213,17 @@ packetloss_percentage=10; ; ; audio bandwidth at 16Khz sample rate) ;cbr=yes ; Negotiate a constant bit rate +[opusloss] +type=opus +cbr=yes +packet_loss=10 + [opus48] type=opus max_playback_rate=48000 max_bandwidth=wide bitrate=48000 +cbr=yes packet_loss=10 [opus64] diff --git a/extensions.conf b/extensions.conf index 82def42..52d32e8 100644 --- a/extensions.conf +++ b/extensions.conf @@ -115,6 +115,9 @@ exten => _42401353.,5,NoOp() exten => _42400119.,5,NoOp() same => n,Dial(PJSIP/${EXTEN}@jrb0001) +exten => _42403914.,5,NoOp() + same => n,Dial(PJSIP/${EXTEN}@kioubit) + [jerry] exten => _4240XXXX.,1,Goto(extpeers,${EXTEN},5) exten => _0XXXX. ,1,Goto(extpeers,424${EXTEN},5) diff --git a/pjsip.conf b/pjsip.conf index 3307352..2703833 100644 --- a/pjsip.conf +++ b/pjsip.conf @@ -18,7 +18,7 @@ bind=[::]:5060 type=endpoint context=jerry ;message_context=jerry-msg -allow=!all,opus48,opus,ulaw,speex,alaw +allow=!all,opusloss,speex,ulaw,alaw ;direct_media=no rtp_symmetric=no force_rport=yes @@ -26,7 +26,7 @@ rewrite_contact=yes [peers-endpoint-template](!,endpoint-template) context=jerry-peers -allow=!all,ulaw,opus48,opus,speex,alaw +allow=!all,speex,ulaw,alaw,opusloss [auth-template](!) type=auth @@ -61,7 +61,6 @@ password=REDACTED [REDACTED](endpoint-template) auth = REDACTED aors = REDACTED -allow=!all,opus48,opus,ulaw,speex,alaw callerid=Jerry <424036180003> [REDACTED](auth-template) auth_type=userpass @@ -72,7 +71,6 @@ password=REDACTED [REDACTED](endpoint-template) auth = REDACTED aors = REDACTED -allow=!all,opus48,opus,ulaw,speex,alaw callerid=Jerry <424036180004> [REDACTED](auth-template) auth_type=userpass @@ -137,10 +135,20 @@ match=172.20.29.73 [jrb0001](peers-endpoint-template) aors = jrb0001 identify_by=ip -allow=!all,opus48,opus,ulaw,speex,alaw +allow=!all,opusloss,speex,ulaw,alaw [jrb0001](aor-template) contact=sip:[fd42:5d71:219:1003:216:3eff:fe9d:882f]:5060 [jrb0001] type=identify endpoint=jrb0001 match=fd42:5d71:219:1003:216:3eff:fe9d:882f + +[kioubit](peers-endpoint-template) +aors = kioubit +identify_by=ip +[kioubit](aor-template) +contact=sip:172.20.14.37:5060 +[kioubit] +type=identify +endpoint=kioubit +match=172.20.14.37