I’am using externalmedia. I’am able to receive and send audio using RTP.
One issue I face, when sending a short 10 sec audio from my application I hear it fine the first time. When I send it again I don’t. To resolve this I have to send a long audio file.
After searching for resolution, I guess the issue may be related to buffer on receiver side. Suggestions were to send a BYE RTCP packet at the end of each transmission.
I implemented the same sending to 1 + port number. On setting “rtcp set debug on” I don’t see the receipt of BYE packet.
I’am not sure if sending the BYE Packet is the resolution. Please help in resolving the issue of sending short audio files repeatedly
Are you trying to send the entire file at once, or are you properly streaming it out? The support doesn’t do re-timing, meaning media has to be timed as a stream to Asterisk.
I’am sending 160 bytes (alaw) audio every 20ms. I face no issues when the stream is @ 10 sec or more. But when the stream is 3 to 5 sec audio, then this issue is observed.
Thanks for pointing this out. I understand. If you have any input in future, which may help resolve this issue, it would be a great help. Meanwhile if I make any progress I’ll update here. Thanks again.
Tried to futher explore this issue but still not able to resolve, but I have an update on the issue observed as follows:-
When I send a 5 sec audio, it is received and is audiable to the called party.
If I send the 5 sec audio again, now there is no audio.
I can repeat sending the 5 sec audio any number of times, there is no audio.
Now if I send a different 10 sec audio. The first 5 sec of this 10 sec audio is not received (there is silence) and the remaining 5 sec of this 10 sec audio is received and is audiable.
If I send the 10 sec audio again the full 10 sec is audiable to the called party. Now I can repeat sending the 10 sec audio is always fully received.
If I start with point 1 again, identical issue is observed.
Request any one to point me in the right direction to help resolve this issue.