I’m working on an Asterisk app called dev. When users call the extension 1000, they are routed into the dev app with the following dialplan:
exten = 1000,1,NoOp()
same = n,Answer()
same = n,Stasis(dev)
same = n,Wait(1)
In the dev app, a new bridge is created, and the inbound channel is added to the bridge. The app starts recording the bridge and plays audio, after which the caller can input DTMF and speak.
The issue is as follows:
• For some users (e.g., user A), everything works fine, and the inbound audio is recorded correctly.
• However, for other users, their voice isn’t recorded—Asterisk shows a warning indicating “recorder no sound.”
• Strangely, once the user presses any DTMF key, the audio begins working, and everything records as expected from that point.
Troubleshooting Done:
• I used Wireshark to check the RTP and SIP packets, and all the packets are arriving at the PBX as expected.
• I can even play back the audio in Wireshark, confirming that it’s being transmitted.
• All packets are using the G.711 PCMU codec, and I’ve ensured that ulaw is allowed in Asterisk.
Why does this happen, and how can I fix the issue where audio is only properly recorded after the user presses a DTMF key? Thanks