i’m on my way to publish the call center app to public internet.But it turns out both caller and callee
can’t hear audio and don’t transmit audio my asterisk setup is behind NAT(fortigate firewall)
192.168.130.20(local sip gateway) → 172.250.230.160(local call center) → bo.callcenter.xxx.xx(43.242.135.215(public internet))-> agents will use this with their public ip address I’m using asterisk 18(GIT-18-fe4394ebfe)
pjsip.conf
[global]
stunaddr=stun.l.google.com:19302
[general]
externip=43.242.135.215
localnet=192.168.130.0/255.255.255.0
localnet=19.168.0.0/32
bindaddr=0.0.0.0
rtpstart=10000
rtpend=20000
[provider-template]
qualify = yes
[testnope]
qualify = yes
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Non mapped elements end
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
--;
[transport-udp]
type = transport
protocol = udp
bind = 0.0.0.0:5060
external_media_address = 43.242.135.215
external_signaling_address = 43.242.135.215
local_net = 192.168.0.0/24
local_net = 172.250.230.0/32
local_net = 192.168.130.0/24
[testnope]
type = aor
contact = sip:192.168.130.20
qualify_frequency = 10
[testnope]
type = identify
endpoint = testnope
match = 192.168.130.20
[testnope]
type = endpoint
context = main-inbound
dtmf_mode = rfc4733
disallow = all
allow = ulaw,alaw
rtp_symmetric = yes
force_rport = yes
rewrite_contact = yes
timers = no
direct_media = no
aors = testnope
[agent01_TEST]
type = aor
max_contacts = 10
[agent01_TEST]
type = auth
username = agent01_TEST
password = agt01
[agent01_TEST]
type = endpoint
context = testnope-outbound
disallow = all
allow = ulaw,alaw
rtp_symmetric = yes
force_rport = yes
rewrite_contact = yes
ice_support = yes
direct_media = no
use_avpf = yes
rtcp_mux=yes
auth = agent01_TEST
outbound_auth = agent01_TEST
media_encryption = dtls
dtls_verify = fingerprint
dtls_ca_file= /etc/asterisk/keys/cert1.pem
dtls_cert_file =/etc/asterisk/keys/fullchain1.pem
dtls_private_key = /etc/asterisk/keys/privkey1.pem
dtls_setup = actpass
aors = agent01_TEST
rtp.conf
;
[general]
; Define RTP port range
rtpstart=10000
rtpend=20000
; Configure external NAT address
stunaddr=stun.l.google.com:19302
PJSIP endpoint
Endpoint: testnope Not in use 0 of inf
Aor: testnope 0
Contact: testnope/sip:192.168.130.20 a87cbc347d Avail 1.897
Identify: testnope/testnope
Match: 192.168.130.20/32
Endpoint: agent01_TEST Not in use 0 of inf
OutAuth: agent01_TEST/agent01_TEST
InAuth: agent01_TEST/agent01_TEST
Aor: agent01_TEST 10
Contact: agent01_TEST/sip:p3jldbfr@69.160.29.28:342 11961691f4 NonQual nan
PJSIP settings
Global Settings:
ParameterName : ParameterValue
===========================================================================
all_codecs_on_empty_reinvite : false
allow_sending_180_after_183 : false
contact_expiration_check_interval : 30
debug : no
default_from_user : asterisk
default_outbound_endpoint : default_outbound_endpoint
default_realm : asterisk
default_voicemail_extension :
disable_multi_domain : false
endpoint_identifier_order : ip,username,anonymous
ignore_uri_user_options : false
keep_alive_interval : 90
max_forwards : 70
max_initial_qualify_time : 0
mwi_disable_initial_unsolicited : false
mwi_tps_queue_high : 500
mwi_tps_queue_low : -1
norefersub : yes
regcontext :
send_contact_status_on_update_registration : no
taskprocessor_overload_trigger : global
unidentified_request_count : 5
unidentified_request_period : 5
unidentified_request_prune_interval : 30
use_callerid_contact : no
user_agent : Asterisk PBX GIT-18-fe4394ebfe
System Settings:
ParameterName : ParameterValue
============================================
accept_multiple_sdp_answers : false
compact_headers : false
disable_rport : false
disable_tcp_switch : true
follow_early_media_fork : true
threadpool_auto_increment : 5
threadpool_idle_timeout : 60
threadpool_initial_size : 0
threadpool_max_size : 50
timer_b : 32000
timer_t1 : 500
rtp settings
General Settings:
----------------
Port start: 10000
Port end: 20000
Checksums: Yes
DTMF Timeout: 1200
Strict RTP: Yes
Probation: 4 frames
Replay Protect: Yes
ICE support: Yes
STUN address: 74.125.250.129:19302
stun status
asteriskdemo*CLI> stun show status
Hostname Port Period Retries Status ExternAddr ExternPort
stun.l.google.com 19302 30 3 OK 43.242.135.215 14614
rtp log
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026911, ts 3252809008, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013014, ts 3252809008, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026912, ts 3252809168, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013015, ts 3252809168, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026913, ts 3252809328, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013016, ts 3252809328, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026914, ts 3252809488, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013017, ts 3252809488, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026915, ts 3252809648, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013018, ts 3252809648, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026916, ts 3252809808, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013019, ts 3252809808, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026917, ts 3252809968, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013020, ts 3252809968, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026918, ts 3252810128, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013021, ts 3252810128, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026919, ts 3252810288, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013022, ts 3252810288, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026920, ts 3252810448, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013023, ts 3252810448, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026921, ts 3252810608, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013024, ts 3252810608, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026922, ts 3252810768, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013025, ts 3252810768, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026923, ts 3252810928, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013026, ts 3252810928, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026924, ts 3252811088, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013027, ts 3252811088, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026925, ts 3252811248, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013028, ts 3252811248, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026926, ts 3252811408, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013029, ts 3252811408, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026927, ts 3252811568, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013030, ts 3252811568, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026928, ts 3252811728, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013031, ts 3252811728, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026929, ts 3252811888, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013032, ts 3252811888, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026930, ts 3252812048, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013033, ts 3252812048, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026931, ts 3252812208, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013034, ts 3252812208, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026932, ts 3252812368, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013035, ts 3252812368, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026933, ts 3252812528, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013036, ts 3252812528, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026934, ts 3252812688, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013037, ts 3252812688, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026935, ts 3252812848, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013038, ts 3252812848, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026936, ts 3252813008, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013039, ts 3252813008, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026937, ts 3252813168, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013040, ts 3252813168, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026938, ts 3252813328, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013041, ts 3252813328, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026939, ts 3252813488, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013042, ts 3252813488, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026940, ts 3252813648, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013043, ts 3252813648, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026941, ts 3252813808, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013044, ts 3252813808, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026942, ts 3252813968, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013045, ts 3252813968, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026943, ts 3252814128, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013046, ts 3252814128, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026944, ts 3252814288, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013047, ts 3252814288, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026945, ts 3252814448, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013048, ts 3252814448, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026946, ts 3252814608, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013049, ts 3252814608, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026947, ts 3252814768, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013050, ts 3252814768, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026948, ts 3252814928, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013051, ts 3252814928, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026949, ts 3252815088, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013052, ts 3252815088, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026950, ts 3252815248, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013053, ts 3252815248, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026951, ts 3252815408, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013054, ts 3252815408, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026952, ts 3252815568, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013055, ts 3252815568, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026953, ts 3252815728, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013056, ts 3252815728, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026954, ts 3252815888, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013057, ts 3252815888, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026955, ts 3252816048, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013058, ts 3252816048, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026956, ts 3252816208, len 000160)
Sent RTP packet to 10.171.236.147:56736 (type 00, seq 013059, ts 3252816208, len 000160)
Got RTP packet from 192.168.130.20:11346 (type 00, seq 026957, ts 3252816368, len 000160)