博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
RFC 3261与Resiprocate对照参考
阅读量:4121 次
发布时间:2019-05-25

本文共 2878 字,大约阅读时间需要 9 分钟。

 

  • To do this, SIP network

elementsconsult an abstract service known as a location service,

whichprovides address bindings for a particular domain

---10.1 Overview

ReSIProcate的LocationServer类,职责明确

 

  • In order to handle the case where an INVITE request never

generatesa final response, the TU uses a timer which is called

timerC. Timer C MUST be set for each client transaction when

anINVITE request is proxied. The timer MUST be larger than 3

minutes.Section 16.7 bullet 2 discusses how this timer is

updatedwith provisional responses, and Section 16.8 discusses

processingwhen it fires.

---11. Set timer C

注:Proxyint mTimerC;

 

  • A dialog is identified at each UA with a dialog ID, which consists of

aCall-ID value, a local tag and a remote tag.

---12 Dialogs

参考resip::DialogId

 

  • A dialog contains certain pieces of state needed for further message

transmissionswithin the dialog. This state consists of the dialog

ID,a local sequence number (used to order requests from the UA to

itspeer), a remote sequence number (used to order requests from its

peerto the UA), a local URI, a remote URI, remote target, a boolean

flagcalled "secure", and a route set, which is an ordered list of

URIs.The route set is the list of servers that need to be traversed

tosend a request to the peer.

---12 Dialogs

联系DumDialog

 

 

a boolean flag called "secure"

bool mSecure

a route set, which is an ordered list of URIs

The route set is the list of servers that need to be traversed

to send a request to the peer.

NameAddrs mRouteSet;

a remote sequence number (used to order requests from its peer to the UA)

unsigned int mRemoteCSeq;

a local sequence number (used to order requests from the UA to its peer)

unsigned int mLocalCSeq;

Dialog ID

DialogId mId; 

 

 a local URI

NameAddr mLocalNameAddr;

a remote URI

NameAddr mRemoteNameAddr;

Remote target

NameAddr mRemoteTarget;

 

 

  • The client transaction provides its functionality through the

maintenanceof a state machine.

17.1 Client Transaction

注:联想到mStateMacFifomStateMachineFifo,附statemachine的值

 typedef enum

      {

         ClientNonInvite,

         ClientInvite,

         ServerNonInvite,

         ServerInvite,

         ClientStale,

         ServerStale,

         Stateless  // may not be needed

      } Machine;

     

      typedef enum

      {

         Calling,

         Trying,

         Proceeding,

         Completed,

         Confirmed,

         Terminated,

         Bogus

      } State;

 

  • For any port and interface

   that a server listens on for UDP, it MUSTlisten on that same port

   and interface for TCP.  This is because a message may need to be sent

   using TCP, rather than UDP, if it is toolarge.  As a result, the

   converse is not true.  A server need not listen for UDP on a

   particular address and port just because itis listening on that same

   address and port for TCP.  There may, of course, be other reasons why

   a server needs to listen for UDP on aparticular address and port.

---18.2.1 Receiving Requests

注:前面也多次提到,在某些限制条件下,即便使用UDP传输,SIP Message也不得不通过TCP传输,因此如果配置UDP传输的话,需要同时监视UDPTCP。不过Resiprocateproxy似乎没有注意到这一点。

 

 

 

 

 

 

 

 

转载地址:http://tzppi.baihongyu.com/

你可能感兴趣的文章
深入C++的new
查看>>
我的一个长久以来的误区,关于C
查看>>
反对任何应用程序以任何理由抢焦点
查看>>
C#中的try与finally
查看>>
数字家庭 (一) 开机
查看>>
探讨C++中一种管理内存的方法
查看>>
ATL工程由VC6升级到2003后不能编译为Release的解决方法
查看>>
思考一个模式识别与机器学习相关的问题
查看>>
VB调用DLL导出函数出现“Bad DLL call convention”的解决
查看>>
理解HTTP消息头 1
查看>>
理解HTTP消息头 2
查看>>
理解HTTP消息头 3
查看>>
理解HTTP消息头 4
查看>>
胡乱思考一些和COM有关的问题
查看>>
.Net中的TLS(线程局部存储)
查看>>
Flash的Socket与WebService功能
查看>>
一种基于.Net 2.0的另类AOP
查看>>
突然发现我的文章被转载了
查看>>
一种WEB表单验证的简单方法
查看>>
用.Net的动态代码生成功能实现AOP
查看>>