修复
This commit is contained in:
parent
57e8c460b3
commit
9d8fc031a4
@ -55,7 +55,7 @@ func XMLMarshal(obj interface{}, charset string) ([]byte, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
writer := transform.NewWriter(xmlBytes, t)
|
writer := transform.NewWriter(xmlBytes, t)
|
||||||
writer.Write([]byte(xmlStr))
|
_, _ = writer.Write([]byte(xmlStr))
|
||||||
_ = writer.Close()
|
_ = writer.Close()
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
@ -18,7 +18,8 @@ func TestClient(t *testing.T) {
|
|||||||
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
|
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
|
||||||
|
|
||||||
ua, _ := sipgo.NewUA(
|
ua, _ := sipgo.NewUA(
|
||||||
sipgo.WithUserAgentHostname("44050100002000000002@10.10.10.20:5099"))
|
sipgo.WithUserAgent("44050100002000000002"),
|
||||||
|
sipgo.WithUserAgentHostname("10.10.10.20:5099"))
|
||||||
|
|
||||||
srv, _ := sipgo.NewServer(ua) // Creating server handle
|
srv, _ := sipgo.NewServer(ua) // Creating server handle
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user