Summary:ASTERISK-02147: Changes in Translation Path
Reporter:obaid (obaid)Labels:
Date Opened:2004-07-30 03:28:08Date Closed:2011-06-07 14:05:14
Versions:Frequency of
Description:Hi this report might be on mailing list but i think if there is any changes in translate.c it should be here for future reference. Anyways here is my Scenario.
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

1. Set translation paths


       ch1->pvt->readtrans=ast_translator_build_path(ch1->readformat, ch1->nativeformats);
       ch1->pvt->writetrans=ast_translator_build_path(ch1->nativeformats, ch1->readformat);

       ch2->pvt->writetrans=ast_translator_build_path(ch2->nativeformats, ch1->readformat);
       ch2->pvt->readtrans=ast_translator_build_path(ch2->nativeformats, ch1->readformat);
2: Then i read frames from both channel using
fr1=ast_read(ch1)and fr2=ast_read(ch2)
and get a file from stream like this.
     s1=ast_openstream(ch1,"test2",ch1-> language);
     fr = ast_readframe(s1);

3:Merges fr1 and fr and send it to Ch2
4:Merges fr2 and fr and send it to Ch1

It worked perfectly fine .

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".

Any Help that what changes should be made to make it work.
Comments:By: twisted (twisted) 2004-07-30 12:19:53

this indeed needs to be handled on the mailing lists, this is a bug tracker, not a help request system.