-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsimulation.sip
67 lines (60 loc) · 1.56 KB
/
simulation.sip
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
; SIP Call Setup Example
; This is a dummy SIP message exchange with DTMF tones included in signaling
; DTMF tones are sent as part of signaling for interaction, not actual audio data.
INVITE sip:2002@127.0.0.1 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK123456
Max-Forwards: 70
From: <sip:1001@127.0.0.1>;tag=client
To: <sip:2002@127.0.0.1>
Call-ID: 1234567890
CSeq: 1 INVITE
Contact: <sip:1001@127.0.0.1>
Content-Type: application/sdp
Content-Length: 0
; Simulate sending DTMF
; DTMF starts here, we will include them as part of the signaling
DTMF: 1
DTMF: 2
DTMF: 3
DTMF: 4
DTMF: 5
DTMF: 6
DTMF: 7
DTMF: 8
DTMF: 9
DTMF: 0
DTMF: #
; Response from Callee
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK123456
From: <sip:1001@127.0.0.1>;tag=client
To: <sip:2002@127.0.0.1>;tag=callee
Call-ID: 1234567890
CSeq: 2 INVITE
Contact: <sip:2002@127.0.0.1>
Content-Length: 0
; More DTMF in the signaling
DTMF: *
DTMF: #
ACK sip:2002@127.0.0.1 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK123456
From: <sip:1001@127.0.0.1>;tag=client
To: <sip:2002@127.0.0.1>;tag=callee
Call-ID: 1234567890
CSeq: 3 ACK
Content-Length: 0
; End of call interaction with DTMF tones
BYE sip:2002@127.0.0.1 SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK123456
From: <sip:1001@127.0.0.1>;tag=client
To: <sip:2002@127.0.0.1>;tag=callee
Call-ID: 1234567890
CSeq: 4 BYE
Content-Length: 0
SIP/2.0 200 OK
Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK123456
From: <sip:1001@127.0.0.1>;tag=client
To: <sip:2002@127.0.0.1>;tag=callee
Call-ID: 1234567890
CSeq: 5 BYE
Content-Length: 0