<DIV>
<DIV>For asterisk-0.4.0 i made an application which merges a wav file with telephonic conversation to have background music while u talking with some one.For this what i did <BR><BR>1. Set translation paths<BR> ch1->readformat=AST_FORMAT_SLINEAR;<BR> ch1->writeformat=ch1->nativeformats;<BR><BR> ch2->readformat=AST_FORMAT_SLINEAR;<BR> ch2->writeformat=ch2->nativeformats;<BR><BR> ch1->pvt->readtrans=ast_translator_build_path(ch1->readformat, ch1->nativeformats);<BR> ch1->pvt->writetrans=ast_translator_build_path(ch1->nativeformats,
ch1->readformat);<BR><BR> ch2->pvt->writetrans=ast_translator_build_path(ch2->nativeformats, ch1->readformat);<BR> ch2->pvt->readtrans=ast_translator_build_path(ch2->nativeformats, ch1->readformat);<BR> 2: Then i read frames from both channel using <BR>fr1=ast_read(ch1)and fr2=ast_read(ch2)<BR> and get a file from stream like this.<BR> s1=ast_openstream(ch1,"test2",ch1-> language);<BR> ast_applystream(ch1,s1);<BR> fr = ast_readframe(s1);<BR><BR>3:Merges fr1 and fr to fr3 and send it to Ch2 via ast_write(ch2,fr3)<BR>4:Merges fr2 and fr to fr3 and send it to Ch1 via ast_write(ch1,fr3)<BR><BR>It worked perfectly fine .<BR><BR><BR>But Now with latest CVS it isnt working as i updated my Asterisk after a long time.What i m ahving rite now its
garbaged Sound which seems to me "Short Writes".<BR><BR>Any Help that what changes should be made to make it work.<BR></DIV>
<DIV> </DIV>
<DIV>Syed Obaid Amin</DIV>
<DIV> </DIV><BR></DIV><p>
                <hr size=1>Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/mail_us/taglines/aac/*http://promotions.yahoo.com/new_mail/static/ease.html">Yahoo! Mail Address AutoComplete</a> - You start. We finish.