peer with kioubit

This commit is contained in:
JerryXiao 2021-11-26 23:08:18 +08:00
parent 1815f0fdd7
commit 2dbf59ace0
Signed by: Jerry
GPG key ID: 22618F758B5BE2E5
3 changed files with 23 additions and 6 deletions

View file

@ -18,7 +18,7 @@ vad => true
; variable bit rate [true / false] ; variable bit rate [true / false]
; uses bit rate proportionate to voice complexity ; uses bit rate proportionate to voice complexity
vbr => true vbr => false
; available bit rate [bps, 0 = off] ; available bit rate [bps, 0 = off]
; encoding quality modulated to match this target bit rate ; encoding quality modulated to match this target bit rate
@ -213,11 +213,17 @@ packetloss_percentage=10;
; ; audio bandwidth at 16Khz sample rate) ; ; audio bandwidth at 16Khz sample rate)
;cbr=yes ; Negotiate a constant bit rate ;cbr=yes ; Negotiate a constant bit rate
[opusloss]
type=opus
cbr=yes
packet_loss=10
[opus48] [opus48]
type=opus type=opus
max_playback_rate=48000 max_playback_rate=48000
max_bandwidth=wide max_bandwidth=wide
bitrate=48000 bitrate=48000
cbr=yes
packet_loss=10 packet_loss=10
[opus64] [opus64]

View file

@ -115,6 +115,9 @@ exten => _42401353.,5,NoOp()
exten => _42400119.,5,NoOp() exten => _42400119.,5,NoOp()
same => n,Dial(PJSIP/${EXTEN}@jrb0001) same => n,Dial(PJSIP/${EXTEN}@jrb0001)
exten => _42403914.,5,NoOp()
same => n,Dial(PJSIP/${EXTEN}@kioubit)
[jerry] [jerry]
exten => _4240XXXX.,1,Goto(extpeers,${EXTEN},5) exten => _4240XXXX.,1,Goto(extpeers,${EXTEN},5)
exten => _0XXXX. ,1,Goto(extpeers,424${EXTEN},5) exten => _0XXXX. ,1,Goto(extpeers,424${EXTEN},5)

View file

@ -18,7 +18,7 @@ bind=[::]:5060
type=endpoint type=endpoint
context=jerry context=jerry
;message_context=jerry-msg ;message_context=jerry-msg
allow=!all,opus48,opus,ulaw,speex,alaw allow=!all,opusloss,speex,ulaw,alaw
;direct_media=no ;direct_media=no
rtp_symmetric=no rtp_symmetric=no
force_rport=yes force_rport=yes
@ -26,7 +26,7 @@ rewrite_contact=yes
[peers-endpoint-template](!,endpoint-template) [peers-endpoint-template](!,endpoint-template)
context=jerry-peers context=jerry-peers
allow=!all,ulaw,opus48,opus,speex,alaw allow=!all,speex,ulaw,alaw,opusloss
[auth-template](!) [auth-template](!)
type=auth type=auth
@ -61,7 +61,6 @@ password=REDACTED
[REDACTED](endpoint-template) [REDACTED](endpoint-template)
auth = REDACTED auth = REDACTED
aors = REDACTED aors = REDACTED
allow=!all,opus48,opus,ulaw,speex,alaw
callerid=Jerry <424036180003> callerid=Jerry <424036180003>
[REDACTED](auth-template) [REDACTED](auth-template)
auth_type=userpass auth_type=userpass
@ -72,7 +71,6 @@ password=REDACTED
[REDACTED](endpoint-template) [REDACTED](endpoint-template)
auth = REDACTED auth = REDACTED
aors = REDACTED aors = REDACTED
allow=!all,opus48,opus,ulaw,speex,alaw
callerid=Jerry <424036180004> callerid=Jerry <424036180004>
[REDACTED](auth-template) [REDACTED](auth-template)
auth_type=userpass auth_type=userpass
@ -137,10 +135,20 @@ match=172.20.29.73
[jrb0001](peers-endpoint-template) [jrb0001](peers-endpoint-template)
aors = jrb0001 aors = jrb0001
identify_by=ip identify_by=ip
allow=!all,opus48,opus,ulaw,speex,alaw allow=!all,opusloss,speex,ulaw,alaw
[jrb0001](aor-template) [jrb0001](aor-template)
contact=sip:[fd42:5d71:219:1003:216:3eff:fe9d:882f]:5060 contact=sip:[fd42:5d71:219:1003:216:3eff:fe9d:882f]:5060
[jrb0001] [jrb0001]
type=identify type=identify
endpoint=jrb0001 endpoint=jrb0001
match=fd42:5d71:219:1003:216:3eff:fe9d:882f 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