SIP 用户中的多个标记实例是否有效?

Is more than one instance of tag in a SIP user valid?

我正在编写一些代码来解析 SIP 用户(发件人:/收件人:headers)并且我 运行 遇到了一个在我的代码中抛出异常的情况:

From: "1000"<sip:1000@192.99.32.105>;tag=313030300131333539323834383930;tag=4e6f6e650132363237343735343432

有两个标记实例。我无法从 RFC 中清楚地了解在 uri 中具有多个标记参数是否有效。有人知道吗?

不,这是不允许的。 RFC3261 section 7.3.1 状态:

Even though an arbitrary number of parameter pairs may be attached to a header field value, any given parameter-name MUST NOT appear more than once.