Re: [Opalvoip-user] Opal h323 codec list configuration
Brought to you by:
csoutheren,
rjongbloed
From: Yuriy C. <yur...@gm...> - 2008-04-22 23:23:26
|
Hi, Lukasz Look at OpenPhone sample project source code. If you compile and look at Options->Codecs section and then look at code you can understand how form codec list for use in preference order. As for hardcode you can redefine GetMediaFormats method (which "Get the data formats this connection is capable of operating.") of H323Connection to something like: OpalMediaFormatList H323Connection::GetMediaFormats() const { OpalMediaFormatList mediaFormats; mediaFormats += OpalG711_ULAW_64K; mediaFormats += OpalG711_ALAW_64K; return mediaFormats; } But I really understand that OPAL have more elegant way to resolve this question. Start from sample projects ;) Best regards, Yuriy. > -----Original Message----- > From: opa...@li... [mailto:opalvoip- > use...@li...] On Behalf Of Lukasz Zwierko > Sent: Tuesday, April 22, 2008 12:14 AM > To: opa...@li... > Subject: [Opalvoip-user] Opal h323 codec list configuration > > Hi, everyone > Could sombody give me a hint how to modify available codecs lists. > What I mean is that I'd only like to use PCM alaw/ulaw codec, that is > only offer and accept these in any connections (at the moment I'm > focusing mostly on h323 though). > I've made private opal manager implementation, and by modyfing > 'mediaFormatOrder' array in the constructor, I've made the h323 > connection offer only PCM as incoming media stream, but still it > accepts for example gsm for outgoing media streams and does internal > transcoding (which I'd like not to do)... > Anybody could give a hint how to make the h323 offer only selected > coding formats? Even hardcore solution are more than welcome... ;) > > thanks > > Lukasz |