app/assets/webrtcLibraries/exsip-devel.js
// Sanity Check functions for requests and responses
Sanity Check functions for requests and responses
Sanity Check functions for requests and responses
function minimumHeaders() {
  var
    mandatoryHeaders = ['from', 'to', 'call_id', 'cseq', 'via'],
    idx = mandatoryHeaders.length;
  while(idx--) {
    if(!message.hasHeader(mandatoryHeaders[idx])) {
      logger.warn('Missing mandatory header field : '+ mandatoryHeaders[idx] +'. Dropping the response', ua);
      return false;
    }
  }
}
function minimumHeaders ( ) { var mandatoryHeaders = [ 'from' , 'to' , 'call_id' , 'cseq' , 'via' ] , idx = mandatoryHeaders . length ; while ( idx -- ) { if ( ! message . hasHeader ( mandatoryHeaders [ idx ] ) ) { logger . warn ( 'Missing mandatory header field : ' + mandatoryHeaders [ idx ] + '. Dropping the response' , ua ) ; return false ; } } }
Sanity Check functions for requests and responses
Sanity Check functions for requests and responses