[Asterisk-Users] Problem flashing zap channel.

Steven Critchfield critch at basesys.com
Wed Nov 10 16:29:18 MST 2004


On Wed, 2004-11-10 at 15:15 -0700, Jeff Pratt wrote:
> Hello All,

> [open]
> exten => s,1,Wait(1)
> exten => s,2,Answer
> exten => s,3,MP3Player(/var/lib/asterisk/sounds/P73_hoho.mp3)
> exten => s,4,Flash()
> exten => s,5,SendDTMF(1300)
> exten => s,6,Hangup
> 
> 
> [closed]
> exten => s,1,Wait(1)
> exten => s,2,Answer
> exten => s,3,Background(beep)
> exten => s,4,Flash()
> exten => s,5,SendDTMF(7112)
> exten => s,6,Hangup
> 

> HOWEVER;  when I call during the closed period, it doesn't go so well:
> 
> Connected to Asterisk CVS-HEAD-11/03/04-14:36:44 currently running on 
> asterisk1 (pid = 1521)
> Verbosity is atleast 3
> Asterisk Ready.
>     -- Remote UNIX connection
>     -- Starting simple switch on 'Zap/3-1'
>     -- Executing Wait("Zap/3-1", "1") in new stack
>     -- Executing Answer("Zap/3-1", "") in new stack
>     -- Executing BackGround("Zap/3-1", "beep") in new stack
>     -- Playing 'beep' (language 'en')
>     -- Executing Flash("Zap/3-1", "") in new stack
> Nov 10 16:09:40 WARNING[1535]: app_flash.c:82 flash_exec: Unable to 
> flash channel Zap/3-1: Device or resource busy
>   == Spawn extension (default, s, 4) exited non-zero on 'Zap/3-1'
>     -- Hungup 'Zap/3-1'
> asterisk1*CLI>
> 
> I put the Background(beep) in because asterisk wasn't even picking up 
> the line previously.  I'd tried a NoOp before that, and it made no 
> difference.
> 

I think you need a longer period of time and that is why the mp3 is
okay. For the mp3 to play, you have time to crank up mpg123 and the
buffering and then playing. All this gives plenty of time for the analog
line to come up and start passing the audio before you flash. The beep
would be a short enough time itself to possibly interfere with the
amount of time to get the line picked up. 

I suggest you put the wait after the answer and then beep if you want to
see it do something, then flash.
-- 
Steven Critchfield <critch at basesys.com>




More information about the asterisk-users mailing list