标题: SIP的问题 [打印本页] 作者: urapple 时间: 2009-04-16 08:48 标题: SIP的问题 我想问问,sip里的via,record_route和route这三项。
有时候看到有via,有时候看到record_route,有时候有route。
他们都是用在什么情况下呀,怎么有时候既有via,也有record_route。
搞糊涂了。作者: michaelsz 时间: 2009-04-20 15:03 标题: 回复 #1 urapple 的帖子 via 记录消息的路径,仅此
route/recording-route保存路由信息,方便request找到下一跳作者: urapple 时间: 2009-04-21 09:08 标题: 回复 #2 michaelsz 的帖子 谢谢回复,我的理解是,via和route、record-route这两个互不冲出,是不是?
via和route可以同时存在,(问题:他们同时存在时,以谁为准,假设,当然是假设,出问题了,他们不同,此时以谁为准,另,就是一样时,先解析谁,如果解析了前者,后者是否忽略)
同样
via和record-route也可以同时存在。(这个没问题了,我认为via和record-route都是proxy填上去的自己的地址信息)作者: michaelsz 时间: 2009-04-21 10:35
The Via header field indicates the transport used for the transaction
and identifies the location where the response is to be sent
The Route header field is used to force routing for a request through
the listed set of proxies.
一个是response回来的路径,via在请求的时候记录,回来response的时候弹出.
route只在请求的时候找下一跳用到,他们不存在以谁为准的问题。作者: urapple 时间: 2009-04-21 11:58 标题: 回复 #4 michaelsz 的帖子 谢谢,谢谢,太好了,明白。作者: urapple 时间: 2009-04-21 22:59 标题: 回复 #1 urapple 的帖子 再问下,什么时候要填,或者说必须填record-route呢?
另外,是不是只要请求方收到回复方的答复里有record-route,就必须在以后的报文里填写route?作者: michaelsz 时间: 2009-04-23 15:43 标题: 回复 #6 urapple 的帖子 The Record-Route header field is inserted by proxies in a request to
force future requests in the dialog to be routed through the proxy.