Another SIP dialog / session problem

Zach Welch zach-minisip at splitstring.com
Fri Jun 9 23:14:55 CEST 2006


Werner Dittmann wrote:
> WHile looking at the code to find the problem mentioned in my 
> previous post I also looked at
> 
> Session::setSdpAnswer(....)
> 
> This method contains a loop that goes over the header fields and the 
> M header. Inside the M header code there is a loop the goes over the 
> number of formats. This loop tries to match the format and to get a 
> receiver (in turn of that match function also the sender is 
> initialized ....). Even if a receiver was found and started the loop 
> continues for other formats and tries to match them. Should the loop 
> stop (break) after the first matching receiver (and sender) was 
> found?
> 
> Ideas? Thoughts?

Based on my understanding, I would expect that look to check all formats
and use a scoring function of some kind to determine the "best" match;
the user might even be given some control over that process, by changing
the weights of the scoring function.  Thus, they might choose "maximum
quality" or "minimize cost"; depending on the user choice and codec
selection available, the algorithm might pick a different media format
in each case.

Cheers,

Zach


More information about the Minisip-devel mailing list