Skip to content

Commit

Permalink
added Max-Forwards header to the headers template
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Jun 26, 2023
1 parent 64e77ae commit 2d6fa7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sipexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ CSeq: {{.cseqnum}} {{.method}}
{{if .contacturi}}Contact: {{.contacturi}}{{if .contactparams}};{{.contactparams}}{{end}}{{else}}$rmeol{{end}}
{{if .expires}}Expires: {{.expires}}{{else}}$rmeol{{end}}
{{if .useragent}}User-Agent: {{.useragent}}{{else}}$rmeol{{end}}
{{if .maxforwards}}Max-Forwards: {{.maxforwards}}{{else}}$rmeol{{end}}
Content-Length: 0
`
Expand Down Expand Up @@ -134,6 +135,7 @@ var templateDefaultJSONFields string = `{
"callid": "$uuid",
"cseqnum": "$randseq",
"date": "$daterfc1123",
"maxforwards": "10",
"sdpuser": "sipexer",
"sdpsessid": "$timestamp",
"sdpsessversion": "$timestamp",
Expand Down

0 comments on commit 2d6fa7a

Please sign in to comment.