Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Can't listen an Asterisk audio till the end (Read 1105 times)
christopher
YaBB Newbies
*
Offline


Phoner is great!

Posts: 2
Joined: 28. Sep 2023
Can't listen an Asterisk audio till the end
28. Sep 2023 at 14:39
Print Post  
Hello,
I am testing PhonerLite with asterisk and a basic dialplan.
Code
Select All
exten => 1000,1,Answer()
same => n, Playback(demo-congrats)
same => n, Hangup() 


The audio is not fully played with Phonerlite whereas it's ok with Zoiper.
Do you have any clue ?
(I tried UDP, TCP, and many tuning on Phonerlite but with no succes)
  
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11448
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: Can't listen an Asterisk audio till the end
Reply #1 - 28. Sep 2023 at 14:50
Print Post  
I have no Asterisk. But I understand that Asterisk plays an audio file and after playing is finished, Asterisk terminates the call.
In PhonerLite you can see at the statistics page during a call the length/size of buffered data for receipt. That size would be in theory the only delay and should not exceed 100 milliseconds. Are that 100 ms the missing audio that could not be heard at the end?
Either you append some silence after your "normal" audio data or you insert some short delay before hanging up.
  
Back to top
WWW  
IP Logged
 
christopher
YaBB Newbies
*
Offline


Phoner is great!

Posts: 2
Joined: 28. Sep 2023
Re: Can't listen an Asterisk audio till the end
Reply #2 - 28. Sep 2023 at 15:52
Print Post  
Adding delay do the job.

I am surprised that Zoiper handle this wheras Linphone, MicroSip  or PhonerLite doesn't.
  
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11448
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: Can't listen an Asterisk audio till the end
Reply #3 - 29. Sep 2023 at 08:43
Print Post  
Keep in mind that you need a jitter buffer and sound device needs some buffers too at the remote side. Only because you think you sent all audio and disconnects the call, the remote party may not handled all received audio data. Therefore you should really use that short pause. There are not always softphones in use. If there are calls from other devices via other VoIP providers to your your Asterisk, you have different behavior.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint