Hello Everybody,
I am trying to setup SRTP on my Asterisk 13.1.0 based FreePBX 32bit but unfortunately all my attempts to get it working have failed.
More precisely, I believe, TLS and SRTP is working, when I use local IP addresses (using VPN). But as soon as I switch back to public IP, I am getting No Audio issue.
I tried to setup also a UDP based no SRTP extenstion, and I have no issues here.
I was following the Secure Calling Tutorial:
wiki.asterisk.org/wiki/display/ … g+Tutorial
rtp set debug on
Using Public IP (No Audio)
Got RTP packet from PU.BL.I.C:14004 (type 09, seq 005871, ts 056800, len 000160)
Got RTP packet from PU.BL.I.C:14004 (type 09, seq 005872, ts 056960, len 000160)
Got RTP packet from PU.BL.I.C:14004 (type 09, seq 005873, ts 057120, len 000160)
Got RTP packet from PU.BL.I.C:14004 (type 09, seq 005874, ts 057280, len 000160)
Got RTP packet from PU.BL.I.C:14004 (type 09, seq 005875, ts 057440, len 000160)
Got RTP packet from PU.BL.I.C:14004 (type 09, seq 005876, ts 057600, len 000160)
via VPN (OK)
Got RTP packet from 192.168.200.111:14002 (type 09, seq 015855, ts 370080, len 000160)
Sent RTP packet to 192.168.200.111:14002 (type 09, seq 010657, ts 370080, len 000170)
Got RTP packet from 192.168.200.111:14002 (type 09, seq 015856, ts 370240, len 000160)
Sent RTP packet to 192.168.200.111:14002 (type 09, seq 010658, ts 370240, len 000170)
Got RTP packet from 192.168.200.111:14002 (type 09, seq 015857, ts 370400, len 000160)
Sent RTP packet to 192.168.200.111:14002 (type 09, seq 010659, ts 370400, len 000170)
All I am doing is calling *43.
sip_general_additional.conf
accept_outofcall_message=yes
auth_message_requests=no
outofcall_message_context=dpma_message_context
faxdetect=no
vmexten=*97
context=from-sip-external
callerid=Unknown
notifyringing=yes
notifyhold=yes
tos_sip=cs3
tos_audio=ef
tos_video=af41
alwaysauthreject=yes
useragent=FPBX-12.0.25(13.1.0)
disallow=all
allow=ulaw
allow=alaw
allow=gsm
allow=g726
allow=g729
allow=speex
allow=speex16
allow=speex32
allow=opus
allow=g722
allow=h264
allow=mpeg4
tlsenable=yes
tlsbindaddr=0.0.0.0:25060
tlscertfile=/etc/asterisk/keys/asterisk.pem
tlscafile=/etc/asterisk/keys/ca.crt
tlscadir=/etc/asterisk/keys/
tlscipher=ALL
tlsclientmethod=tlsv1
fromdomain=my.domain.com
rtpend=20000
rtpstart=10000
callevents=yes
bindport=25060
jbenable=no
maxexpiry=3600
minexpiry=60
defaultexpiry=120
allowguest=yes
registertimeout=20
registerattempts=0
notifyhold=yes
g726nonstandard=no
videosupport=yes
srvlookup=no
canreinvite=no
rtptimeout=30
rtpholdtimeout=300
rtpkeepalive=0
checkmwi=10
notifyringing=yes
maxcallbitrate=384
nat=yes
externip=PU.BL.I.C
localnet=192.168.200.0/24
sip_additional.conf
[6660]
deny=0.0.0.0/0.0.0.0
secret=mypasswort
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
trustrpid=yes
sendrpid=pai
type=friend
nat=force_rport,comedia
port=5060
qualify=yes
qualifyfreq=60
transport=tls
avpf=no
force_avp=no
icesupport=no
encryption=yes
callgroup=
pickupgroup=
dial=SIP/6660
mailbox=6660@device
permit=0.0.0.0/0.0.0.0
callerid=TLS <6660>
callcounter=yes
faxdetect=no
cc_monitor_policy=generic
Any help is greatly appreciated.
Thank you.