You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
// SIP Compact Header Definitions
|
|
|
|
|
|
package sip
|
|
|
|
|
|
func uncompactHeader(k string) string {
|
|
|
if header, ok := compactHeaders[k]; ok {
|
|
|
return header
|
|
|
}
|
|
|
return k
|
|
|
}
|
|
|
|
|
|
// http://www.cs.columbia.edu/sip/compact.html
|
|
|
var compactHeaders = map[string]string{
|
|
|
"a": "Accept-Contact",
|
|
|
"b": "Referred-By",
|
|
|
"c": "Content-Type",
|
|
|
"e": "Content-Encoding",
|
|
|
"f": "From",
|
|
|
"i": "Call-ID",
|
|
|
"k": "Supported",
|
|
|
"l": "Content-Length",
|
|
|
"m": "Contact",
|
|
|
"o": "Event",
|
|
|
"r": "Refer-To",
|
|
|
"s": "Subject",
|
|
|
"t": "To",
|
|
|
"u": "Allow-Events",
|
|
|
"v": "Via",
|
|
|
}
|