RFC3261: SIP:16.4 路由信息预处理

16.4 Route Information Preprocessing
16.4 路由信息预处理

   The proxy MUST inspect the Request-URI of the request.  If the Request-URI of the request contains a value this proxy previously placed into a Record-Route header field (see Section 16.6 item 4), the proxy MUST replace the Request-URI in the request with the last value from the Route header field, and remove that value from the Route header field.  The proxy MUST then proceed as if it received this modified request.

​代理必须检查请求的请求URI。如果请求的请求URI包含该代理先前放入记录路由报头字段的值(见第16.6节第4项),则代理必须将请求中的请求URI替换为路由报头字段中的最后一个值,并从路由报头字段删除该值。然后,代理必须继续进行,就好像它收到了这个修改后的请求一样。

      This will only happen when the element sending the request to the proxy (which may have been an endpoint) is a strict router.  This rewrite on receive is necessary to enable backwards compatibility with those elements.  It also allows elements following this specification to preserve the Request-URI through strict-routing proxies (see Section 12.2.1.1).

​只有当向代理(可能是端点)发送请求的元素是严格的路由器时,才会发生这种情况。这种接收时的重写对于实现与这些元素的向后兼容性是必要的。它还允许遵循本规范的元素通过严格的路由代理来保留请求URI(见12.2.1.1节)。

      This requirement does not obligate a proxy to keep state in order to detect URIs it previously placed in Record-Route header fields. Instead, a proxy need only place enough information in those URIs to recognize them as values it provided when they later appear.

此要求并不要求代理保持状态以检测其先前放置在记录路由报头字段中的URI。相反,代理只需要在这些URI中放置足够的信息,就可以在它们稍后出现时将它们识别为它提供的值。

   If the Request-URI contains a maddr parameter, the proxy MUST check to see if its value is in the set of addresses or domains the proxy is configured to be responsible for.  If the Request-URI has a maddr parameter with a value the proxy is responsible for, and the request was received using the port and transport indicated (explicitly or by default) in the Request-URI, the proxy MUST strip the maddr and any non-default port or transport parameter and continue processing as if those values had not been present in the request.

如果请求URI包含一个maddr参数,则代理必须检查其值是否在代理配置负责的地址或域集中。如果请求URI有一个带有代理负责的值的maddr参数,并且该请求是使用请求URI中指示的端口和传输(明确或默认)接收的,则代理必须去掉maddr和任何非默认端口或传输参数,并继续处理,就好像这些值没有出现在请求中一样。

      A request may arrive with a maddr matching the proxy, but on a port or transport different from that indicated in the URI.  Such a request needs to be forwarded to the proxy using the indicated port and transport.

请求到达时可能带有与代理匹配的madder,但端口或传输与URI中指示的端口或传输不同。这样的请求需要使用所指示的端口和传输转发到代理。

   If the first value in the Route header field indicates this proxy, the proxy MUST remove that value from the request.

如果Route报头字段中的第一个值指示此代理,则代理必须从请求中删除该值。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值