Hi,
sipxCallAudioPlayFileStart is asyncronous so it will return immediately, and
will not wait until the file has been played fully. Sipxtapi is supposed to
fire events when playback has finised (or is terminated), but this doesn't work
properly in the current version, I believe there is some rewrite going on
regarding events and how notifications are passed from various libraries back
to the main sipxtapi part, perhaps someone can shed a light on the status of
that?
Another thing, apparently you must also call the corresponding
sipxCallAudioStop function inbetween, otherwise sipxtapi doesn't correctly
decrement the count of files being played, and hence the call will never be
torn down properly. I also believe this will change, once the modifications
from Jaroslav will be incorporated into the main trunk (what is the status of
that BTW?)
Anyway, the solution I'm using is the same as yours, i.e. read the length of
the file in seconds, and then sleep the current thread for that amount.
Regards,
Daníel
Date: Tue, 3 Jul 2007 10:44:05 -0300From: [EMAIL PROTECTED]: [EMAIL PROTECTED]:
[sipxtapi-dev] Using sipxCallAudioPlayFileStartHelloWhen 1 make 2 calls of the
function sipxCallAudioPlayFileStart I just can hear the second played file. The
first call doesn´t play the audio.Do you know how can I avoid this?I tried to
use SLEEP, with the same length of the first audio, and, although it works,
this solution doesn´t help so much for my purpose. Regards-- Mário Henrique
Gontijo [EMAIL PROTECTED]
_________________________________________________________________
Play free games, earn tickets, get cool prizes! Join Live Search Club.
http://club.live.com/home.aspx?icid=CLUB_wlmailtextlink
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/