I have an asterisk (14.0.2) server setup on an AWS EC2 ubuntu 14.04 instance. I can make calls either from Twilio (using Skype) or with Zoiper and they have sound.
I can get registration from both Linphone and Blink but no sound. Each has every audio codec enabled. In all cases the server plays gsm files. Every codec available in menuselect was selected and custom wav sound files which have been converted to wav 8KHz, gsm, slin and g729 using the Digium online conversion site. The core and custom sounds work using Twilio and Zoiper but not Linphone or Blink.
Please provide the SIP signaling (pjsip set logger on) with a call attempt. As well - is your network config such that the RTP ports are open to Asterisk?
> 0x26564e0 -- Probation passed - setting RTP source address to 120.29.76.213:60006
-- Executing [3674442211@Main-IVR:3] Set("PJSIP/mark-0000000f", "star_repeats=1") in new stack
-- Executing [3674442211@Main-IVR:4] Set("PJSIP/mark-0000000f", "invalid_attempts=1") in new stack
-- Executing [3674442211@Main-IVR:5] Set("PJSIP/mark-0000000f", "timeout_counts=1") in new stack
-- Executing [3674442211@Main-IVR:6] BackGround("PJSIP/mark-0000000f", "tt-monkeysintro") in new stack
-- <PJSIP/mark-0000000f> Playing 'tt-monkeysintro.g722' (language 'en')
-- Executing [3674442211@Main-IVR:7] WaitExten("PJSIP/mark-0000000f", "5") in new stack
Got RTP packet from 120.29.76.213:60008 (type 00, seq 016552, ts 000000, len 000000)
– Executing [3674442211@Main-IVR:3] Set(“PJSIP/mark-00000010”, “star_repeats=1”) in new stack
– Executing [3674442211@Main-IVR:4] Set(“PJSIP/mark-00000010”, “invalid_attempts=1”) in new stack
– Executing [3674442211@Main-IVR:5] Set(“PJSIP/mark-00000010”, “timeout_counts=1”) in new stack
– Executing [3674442211@Main-IVR:6] BackGround(“PJSIP/mark-00000010”, “tt-monkeysintro”) in new stack
Sent RTP packet to 192.168.1.111:60008 (type 09, seq 023046, ts 000160, len 000160)
– <PJSIP/mark-00000010> Playing ‘tt-monkeysintro.g722’ (language ‘en’)
Got RTP packet from 120.29.76.213:60008 (type 00, seq 016553, ts 000160, len 000160)
Sent RTP packet to 192.168.1.111:60008 (type 09, seq 023047, ts 000320, len 000160)
Got RTP packet from 120.29.76.213:60008 (type 00, seq 016554, ts 000320, len 000160)
Sent RTP packet to 192.168.1.111:60008 (type 09, seq 023048, ts 000480, len 000160)
Got RTP packet from 120.29.76.213:60008 (type 00, seq 016555, ts 000480, len 000160)
You should set “rtp_symmetric” to “yes” in the endpoint configuration. As well you may be running into an issue[1] which can be resolved by explicitly setting your endpoint to force a single codec. IE: disallow=all and a single allow=g722