Hi,

I have the following behavior (Asterisk 1.2.24):

Using my channel driver, If my dialplan starts directly with a playback
functions, for example:

exten => 4020,1,VoicemailMain(${CALLERID(num)[EMAIL PROTECTED]);

the first messages wasn't played (in this case vm-login). The vm-password
file is played normally.

However, If I insert a Wait() function before:

exten => 4020,1,Wait(1)
exten => 4020,1,VoicemailMain(${CALLERID(num)[EMAIL PROTECTED]);

both vm-login and vm-password are played normally.

In the first case (without Wait()), checking the Asterisk code, I saw that
the ast_write() function is called just one time when the vm-login is
played. I found in file.c the ast_readaudio_callback() that should be called
several times until the file finishes. However, it is called just one time.

I checked that in my side, the audio is already enabled, the channel is UP
but my write callback is never called more than one (since ast_write() is
not called as well).

What is the difference using Wait or not? Why the vm-login fails to play in
the first case?

Any idea where to find the cause ?

Thanks!

-- 
--------------
Paulo Garcia
Pika Technologies Inc
_______________________________________________

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Reply via email to