On 16/08/07, Mihai Balea <[EMAIL PROTECTED]> wrote: > The way I read the spec is that if you have a CODEC PREFS IE in your > NEW message, it takes precedence over FORMAT and CAPABILITIES. So in > your case, the caller should arrange its codec prefs list to reflect > its actual preferences (ilbc on top) and the callee should ignore the > format and capabilities IEs and rely on the incoming codec prefs IE > for its codec negotiation logic.
So I changed frame.c/chan_iax2.c to do it like that. I move the calling channel's current codec to the front of the codec prefs if it is amongst the allowed codecs. The result works just the way I want. Does this need to be configurable? If SIP does this by default then I think IAX might as well do the same. I'll tidy up, compare with the chan_sip logic to check its consistent and post the patch on the tracker tomorrow. Steve _______________________________________________ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev