fix variable name

This commit is contained in:
Joel Wetzell
2026-02-09 20:48:07 -06:00
parent 54c14cbbae
commit 90a3119fb8

View File

@@ -91,12 +91,12 @@ func init() {
userAgent, ok := params["userAgent"]
if ok {
specificTransportString, ok := userAgent.(string)
specificUserAgentString, ok := userAgent.(string)
if !ok {
return nil, errors.New("sip.call.server userAgent must be a string")
}
userAgentString = specificTransportString
userAgentString = specificUserAgentString
}
return &SIPCallServer{config: config, IP: ipString, Port: int(portNum), Transport: transportString, UserAgent: userAgentString, logger: CreateLogger(config)}, nil