From: Babar S. <bab...@ya...> - 2004-10-22 12:19:58
|
Hi Steve n List, I added the CVS update, now codec negotiation is working nicely. I tried with all combination of codecs (at one side and different on other side) for testing with success and no "Bad or incomplete voice packet" :) I tried with SetCodecPriority function to change codec on run time, but I didn't notice any difference in bandwidth usage I didn't tried to put any debug to check whats going on, What will be problem ? or there is any iaxc_get_formats to output current codec in coming update ? Also Incomming call's codec is with higher priority ?? SetCodecPriority(int codec) { iaxc_set_min_outgoing_framesize(160); if (codec==IAXC_FORMAT_GSM) iaxc_set_formats(IAXC_FORMAT_GSM,IAXC_FORMAT_ULAW|IAXC_FORMAT_GSM|IAXC_FORMAT_SPEEX|IAXC_FORMAT_ILBC); else if(codec==IAXC_FORMAT_SPEEX) iaxc_set_formats(IAXC_FORMAT_SPEEX,IAXC_FORMAT_ULAW|IAXC_FORMAT_GSM|IAXC_FORMAT_SPEEX|IAXC_FORMAT_ILBC); else if(codec==IAXC_FORMAT_ILBC) { iaxc_set_formats(IAXC_FORMAT_ILBC,IAXC_FORMAT_ULAW|IAXC_FORMAT_GSM|IAXC_FORMAT_SPEEX|IAXC_FORMAT_ILBC); iaxc_set_min_outgoing_framesize(240); } else if(codec==IAXC_FORMAT_ULAW) iaxc_set_formats(IAXC_FORMAT_ULAW,IAXC_FORMAT_ULAW|IAXC_FORMAT_GSM|IAXC_FORMAT_SPEEX|IAXC_FORMAT_ILBC); } ===== God is a great Programmer _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com |