免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 832 | 回复: 0
打印 上一主题 下一主题

The Difference between Transaction and Dialog [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-01-18 16:16 |只看该作者 |倒序浏览
Quote from RFC 3261:
Dialog: A dialog is a peer-to-peer SIP relationship between two
   UAs that persists for some time.  A dialog is established by
   SIP messages, such as a 2xx response to an INVITE request.  A
   dialog is identified by a call identifier, local tag, and a
   remote tag.  A dialog was formerly known as a call leg in RFC
   2543.
So in most simple cases, a dialog represents a call (or more precisely,
a call leg).
SIP Transaction: A SIP transaction occurs between a client and a
   server and comprises all messages from the first request sent
   from the client to the server up to a final (non-1xx) response
   sent from the server to the client.  If the request is INVITE
   and the final response is a non-2xx, the transaction also
   includes an ACK to the response.  The ACK for a 2xx response to
   an INVITE request is a separate transaction.
So a transaction is a request along with all the associated responses up
to the final (non-1xx) response.
Both dialog and transaction (in an actual implementation) are logical
data elements or data structures that encapsulate state information as well as
"certain" data needed to process SIP messages (be it a transaction or dialog).
One relationship between a transaction and a dialog is that a transaction should
be part of a dialog.
Vivek: Register request creates transaction without any dialog.
i.e.
[Dialog X]
      |
      +----[Transaction 1]
      +----[Transaction 2]
      .
      .
      .
      +----[Transaction N]
Say Transaction 1 is a re-INVITE while transaction 2 is an OPTIONS and
so on, but they are within the same SIP dialog, Dialog X.
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/17855/showart_467233.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP