RFC3261: SIP:20.20 From

20.20 From

   The From header field indicates the initiator of the request.  This may be different from the initiator of the dialog.  Requests sent by the callee to the caller use the callee's address in the From header field.

From报头字段指示请求的发起方。这可能与对话的启动器不同。被调用者向调用者发送的请求使用From报头字段中被调用者的地址。

   The optional "display-name" is meant to be rendered by a human user interface.  A system SHOULD use the display name "Anonymous" if the identity of the client is to remain hidden.  Even if the "display-name" is empty, the "name-addr" form MUST be used if the "addr-spec" contains a comma, question mark, or semicolon.  Syntax issues are discussed in Section 7.3.1.

​可选的“display-name”旨在由人工用户界面呈现。如果要隐藏客户端的身份,则系统应使用显示名称“Anonymous”。即使“display-name”为空,如果“addr-spec”包含逗号、问号或分号,也必须使用“name-addr”形式。语法问题在第7.3.1节中进行了讨论。

   Two From header fields are equivalent if their URIs match, and their parameters match. Extension parameters in one header field, not present in the other are ignored for the purposes of comparison. This means that the display name and presence or absence of angle brackets do not affect matching.

如果两个From报头字段的URI匹配,并且它们的参数匹配,则这两个字段是等效的。为了进行比较,将忽略一个报头字段中的扩展参数,而不存在于另一个报头中。这意味着显示名称和是否存在尖括号不会影响匹配。

   See Section 20.10 for the rules for parsing a display name, URI and URI parameters, and header field parameters.

​有关解析显示名称、URI和URI参数以及报头字段参数的规则,请参见第20.10节。

   The compact form of the From header field is f.

From报头字段的紧凑形式是f。

   Examples:

示例:

      From: "A. G. Bell" <sip:agb@bell-telephone.com> ;tag=a48s
      From: sip:+12125551212@server.phone2net.com;tag=887s
      f: Anonymous <sip:c8oqz84zk7z@privacy.org>;tag=hyh8
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值