On 3/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Alexander Chemeris wrote: > > On 3/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> I just tested it and the line in mpesipxILBC.cpp: > >> > >> assert(CODEC_TYPE_ILBC == payloadType); > >> > >> was correct, but > >> > > For me it looks incorrect, because payloadType is took from SDP and > > may change even in runtime. > > > > > But then SdpCodec::SDP_CODEC_ILBC contains wrong number. Because when I > tried it with assert > assert(SdpCodec::SDP_CODEC_ILBC == payloadType); > payloadType was 96 and payloadTypeSdpCodec::SDP_CODEC_ILBC was another > value. I tried it by using example receive call application and my phone > and both showed assert failure. In some other encoders, this check isn't > done at all. Once I added that define to netintask it worked. I meant payload number, negotiated with SDP on call setup. iLBC do not have fixed payload number, and its payload number is negotiated runtime. So any hardcoded payload number would be incorrect.
SdpCodec::SDP_CODEC_ILBC is internal codec number, used to identify codecs in sipXtackLib. -- Regards, Alexander Chemeris. SIPez LLC. SIP VoIP, IM and Presence Consulting http://www.SIPez.com tel: +1 (617) 273-4000 _______________________________________________ sipxtapi-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/
