Beispiel #1
0
/**
 *
 * Constructor: Initializes lists and list headers.
 * All the headers for which there can be multiple occurances in
 * a message are  derived from the SIPHeaderListClass. All singleton
 * headers are derived from SIPHeader class.
 *
 */
func NewSIPMessage() *SIPMessage {
	this := &SIPMessage{}
	this.unrecognizedHeaders = list.New()
	this.headers = list.New()
	this.nameTable = make(map[string]header.Header)
	this.AttachHeader2(header.NewContentLengthFromInt(0), false)
	return this
}
Beispiel #2
0
func (this *SIPMessage) super() {
	this.unrecognizedHeaders = list.New()
	this.headers = list.New()
	this.nameTable = make(map[string]header.Header)
	this.AttachHeader2(header.NewContentLengthFromInt(0), false)
}