Title: ?? ? : RTP
1?? ? RTP
- ????
- ??????RTP??????????
- ???RTP?RTCP??????????
- ????
IP Network
SIP Signaling
RTP Media Stream
??cclRTP(?????),??RTP??????,?????????
2??cclRTP(????????,??object code)
- ??RTP??????(cclRtp.h cclRtp.c rtp.h rtp.c)
- ????????(WavInOut.h WavInOut.c)
- ?RTP?????????,???????RTP??(SimRTPDlg.h
SimRTPDlg.c)
3???? (1/3)
- ????????????????????????IP
- CSimRTPDlgCSimRTPDlg???cclRTPStartup(2)
- ?RTP????????
- ????channel??2
- RTPOpenPort()??RTP port
4???? (2/3)
- void CSimRTPDlgOnOK()??WavIO??
- ??RTPPeerConnect(ConnectIP,ConnectPort)?RTP???????
- IP?ConnectIP
- port?ConnectPort(?????9000)
- ?????IO,???????RTP
5???? (3/3)
????????
????IP
?????? ?Exit??
6????
- ??? CSimRTPDlgCSimRTPDlg
- ???cclRTP?WavIOObj
- ??RTP port?
- ???????,?????OnOK function
- ???WavIO
- ???RTP??,???target ip?port?
- ???target ip?port??
- ?????buffer??
- ???WavIO,???????
7??? SIP User Mobility
- ????
- ??Location Server?Redirect Server???,????SIP??????
??? - ????
- (1)???? Location Server ??? SIP REGISTER ,??
- ?? REGISTER ? Contact header ??URI???? ?
8 - (2)???? Redirect Server ??? SIP INVITE Requests ,
- ???INVITE Request ?? SIP 302 Moved
Temporarily - Response,??????????? URI ?? Contact
- header??
9Sample 1/5
(1)Preference (????)
10Sample 2/5
??(????Proxy)
??Registar?IP,Port
11Sample 3/5
???????
??????Port
12Sample 4/5
Jay_at_ntu.edu.tw
REGISTER ToJay_at_hinet.net ContactJay_at_ntu.edu.tw
200 OK
13Sample 5/5
Jay_at_ntu.edu.tw
Flora_at_nctu.edu.tw
(1)SIPJay_at_hinet.net
(2)SIPJay_at_ntu.edu.tw
(3)SIPJay_at_ntu.edu.tw
SIPJay_at_hinet.net
14??????
- Location Server, Redirect Server??????????,??Java
Socket, WinSock, Perl, Berkely Socket - ??????
?Location Information ??????????
??????, ????Parse
??INVITE??, ????Parse
??302 Move Temporarily ? SIP Message
15??? MGCP
- ????
- ?????MGCP???????????,??MGCP??????,???Call
Agent?????,???????????? - ????
?? CA ??????
CA
SS7
SG
MGCP
TGW
RGW
CO
PSTN
RTP
16???? (1/4)
??RGW
??CA
????????
17???? (2/4)
???CA
????
???RGW
???Endpoint
18???? (3/4)
????????
19???? (4/4)
CA????????????
RGW????????? ????CA????
??????
20CA?? (1/3)
???????port
???????IP
21CA?? (2/3)
?CA?????IP
CA???port
22CA?? (3/3)
RGW??IP
RGW??port
CA?????????
???id
23RGW??(?Voice Support)
??RGW?????
??CA?????
?????????????????(?????RGW???Domain Name?????port)
????RGW?????ID(endpointID)???
24RGW??(?Voice Support)
??RGW?????
??CA?????
?????????????????(?????RGW???Domain Name?????port)
???RGW?????????????
25????????
??????????? ???? ??endpointID ??
??????(hd??)
??????(hu??)
????????
??????(??????)
26???????(1/4)
- ????? ????? (???????????)
??????? ??????
?? message flow
??CA?finite state machine
27???????(2/4)
28???????(3/4)
29???????(4/4)
- ????? Call Agent ????
- (A),(B)?? call agent simulator, (B)?mgcLoop?????
(C)RGW ?MGCP Msg, ????(A)???????,???????,??caller?
callee?????,?????????,????Ack????MGCP?????caller,c
allee????????????????(A)???,?CASim.cpp??????
30?? ???(Follow-me Service)