mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-27 05:15:47 +00:00
fix variable name
This commit is contained in:
@@ -91,12 +91,12 @@ func init() {
|
|||||||
userAgent, ok := params["userAgent"]
|
userAgent, ok := params["userAgent"]
|
||||||
if ok {
|
if ok {
|
||||||
|
|
||||||
specificTransportString, ok := userAgent.(string)
|
specificUserAgentString, ok := userAgent.(string)
|
||||||
|
|
||||||
if !ok {
|
if !ok {
|
||||||
return nil, errors.New("sip.call.server userAgent must be a string")
|
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
|
return &SIPCallServer{config: config, IP: ipString, Port: int(portNum), Transport: transportString, UserAgent: userAgentString, logger: CreateLogger(config)}, nil
|
||||||
|
|||||||
Reference in New Issue
Block a user