Ravi Shankar wrote:
But if the phone A had chosen GSM then there is no transcoding required. So I guess if Asterisk on its invite message to Phone A had put GSM as its first priority then there wouldn't have been a need for transcoding.
Asterisk is supposed to do that already. If it is not doing so, that is a bug.
I am new to Asterisk development and I'm not sure on what basis asterisk decides to send all the configured codec instead of filtering it out based on the incoming SDP.
The incoming SDP is not relevant. Asterisk is not a proxy, and does not behave like one. The two channels are entirely independent, and may not even be SIP on both sides (in which case there is no 'incoming SDP').
Each call is negotiated separately, except for prioritizing the incoming format in the outgoing INVITE if the outgoing peer is configured to support it.
_______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev
