Running heavy processing with Asterisk

General discussions about Asterisk.

Moderators: Moderator, Support

Running heavy processing with Asterisk

Postby harshat » Mon Aug 17, 2009 5:10 am

Hi, I am running Asterisk to create a server in which one can record one's voice. I need to do some heavy processing on this recorded file and play it back to the user. However, while the processing is going on, I want that the user should listen to some music file and the processing should continue in the background. Once the processing is done, I will playback the processed file. How can this be done?
Posts: 33
Joined: Fri Aug 14, 2009 6:15 am

Postby Dovid » Fri Sep 04, 2009 10:52 am

Can you post your dialplan and how you do the processing (you don't have to pose your secret code ;) ).
Salt of the Asterisk
Posts: 1452
Joined: Sun Oct 23, 2005 5:28 am
Location: Lakewood, NJ, USA

Postby bira_more » Fri Sep 04, 2009 12:49 pm

Best way is if you create own application, which will send frames to user and will check after each frame if processing is finished. This way you could be sure user will wait no more then 1 more frame, which is 20 ms long.
Other way is to get music in small parts - lets say 1 sec each and play piece by piece checking if processing finished. This way user will wait one more sec max.
Posts: 465
Joined: Thu Dec 21, 2006 10:56 pm

Re: Running heavy processing with Asterisk

Postby arif_shariati » Wed Jan 27, 2016 4:27 am

I am also looking for something similar. any solution to this?
Posts: 2
Joined: Wed Feb 27, 2013 10:33 am

Return to Asterisk General

Who is online

Users browsing this forum: No registered users and 1 guest