I don’t have audio from external locations. My Asterisk has a public IP address.
asterisco*CLI> sip show peers
Name/username Host Dyn Nat ACL Port Status
Off-net 200.xx.xx.15 N 5060 Unmonitored
6005 (Unspecified) D N 0 UNKNOWN
6004/6004 192.168.10.151 D N 5060 OK (39 ms)
6003/6003 192.168.10.150 D 5060 OK (35 ms)
6002/6002 201.xx.xx.218 D N 5060 OK (85 ms)
6001/6001 201.xx.xx.137 D N 5060 OK (37 ms)
43222999 (Unspecified) D N 0 UNKNOWN
7 sip peers [Monitored: 4 online, 2 offline Unmonitored: 1 online, 0 offline]
SIP.CONF
vmexten=*97
disallow=all
allow=ulaw
allow=alaw
allow=G729
context=micontexto
callerid=Unknown
notifyringing=yes
notifyhold=yes
limitonpeers=yes
tos_sip=cs3
tos_audio=ef
tos_video=af41
transfer=no
insecure=very
permit=0.0.0.0/0.0.0.0
The external extension
[6001]
type=friend
secret=secreto
record_out=Adhoc
record_in=Adhoc
qualify=yes
port=5060
nat=yes
mailbox=6001@device
host=dynamic
dtmfmode=rfc2833
dial=SIP/6001
context=micontexto
canreinvite=no
RTP debug (it doesn’t show the public IP address from my external extension)
Sent RTP packet to 192.168.2.10:9024 (type 18, seq 008915, ts 007200, len 000020)
Got RTP packet from 192.168.10.150:25930 (type 18, seq 014875, ts 007360, len 000020)
Sent RTP packet to 192.168.2.10:9024 (type 18, seq 008916, ts 007360, len 000020)
Got RTP packet from 192.168.10.150:25930 (type 18, seq 014876, ts 007520, len 000020)
Sent RTP packet to 192.168.2.10:9024 (type 18, seq 008917, ts 007520, len 000020)
Got RTP packet from 192.168.10.150:25930 (type 18, seq 014877, ts 007680, len 000020)
Sent RTP packet to 192.168.2.10:9024 (type 18, seq 008918, ts 007680, len 000020)
Got RTP packet from 192.168.10.150:25930 (type 18, seq 014878, ts 007840, len 000020)
Sent RTP packet to 192.168.2.10:9024 (type 18, seq 008919, ts 007840, len 000020)
Got RTP packet from 192.168.10.150:25930 (type 18, seq 014879, ts 008000, len 000020)
Sent RTP packet to 192.168.2.10:9024 (type 18, seq 008920, ts 008000, len 000020)
Got RTP packet from 192.168.10.150:25930 (type 18, seq 014880, ts 008160, len 000020)
Sent RTP packet to 192.168.2.10:9024 (type 18, seq 008921, ts 008160, len 000020)
Got RTP packet from 192.168.10.150:25930 (type 18, seq 014881, ts 008320, len 000020)
Sent RTP packet to 192.168.2.10:9024 (type 18, seq 008922, ts 008320, len 000020)
Got RTP packet from 192.168.10.150:25930 (type 18, seq 014882, ts 008480, len 000020)
Sent RTP packet to 192.168.2.10:9024 (type 18, seq 008923, ts 008480, len 000020)
Got RTP packet from 192.168.10.150:25930 (type 18, seq 014883, ts 008640, len 000020)
Sent RTP packet to 192.168.2.10:9024 (type 18, seq 008924, ts 008640, len 000020)
Got RTP packet from 192.168.10.150:25930 (type 18, seq 014884, ts 008800, len 000020)
Sent RTP packet to 192.168.2.10:9024 (type 18, seq 008925, ts 008800, len 000020)
Is not a codec issues, it must be a RTP trouble.
any idea?
thanks!