[asterisk-users] <UsingWaitorPlaybackinhextension at gmail.com>,

Kevin P. Fleming kpfleming at digium.com
Fri Jun 4 10:10:38 CDT 2010


On 06/04/2010 02:48 PM, Philipp von Klitzing wrote:

>> Essentially, the only things that make sense to use in the 'h'
>> extension are those that don't have anything to do with the external
>> channel that was involved before the hangup. No audio, no DTMF, etc. 
> 
> So why does Wait() not work then - is there a fixed timeout set after 
> which h must have been completed?

Wait() could be modified to work on a dead channel, but as it stands
right now the code assumes the channel is alive, and to ensure that
things work properly, it has to read incoming media from the channel so
it can be discarded... and if at any time waiting for or reading media
from the channel fails, it exits, because there's no point in continuing
to wait since the call is gone.

-- 
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kfleming at digium.com
Check us out at www.digium.com & www.asterisk.org



More information about the asterisk-users mailing list