-
Notifications
You must be signed in to change notification settings - Fork 0
/
ipv6_inv_trying.js
100 lines (96 loc) · 3.47 KB
/
ipv6_inv_trying.js
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
// HEPGEN-JS SETTINGS for the IPv6 scenario
// ------------------------------------------------------
var call_id = Math.random().toString(36).substring(7) + '@1:1:2:2:3';
var config = {
NAME: 'SIP Session + All Reports',
HEP_SERVER: '127.0.0.1',
HEP_PORT: 9060,
HEP_ID: '2001',
HEP_AUTH: 'myHep',
// the Messages to send
MESSAGES: [
{
// SIP INVITE
rcinfo: {
type: 'HEP',
version: 3,
proto_type: 1,
captureId: '2001',
capturePass: 'myHep',
protocolFamily: 2,
protocol: 17,
payloadType: 1,
correlation_id: call_id,
//srcIp: '2a01:4f8:160:7394::2',
srcIp: '1.2.3.2',
dstIp: '2.1.3.2',
srcPort: 5060,
dstPort: 5070
},
pause: 0,
payload:
'INVITE sip:[email protected];user=phone SIP/2.0\n'+
'Via: SIP/2.0/UDP [2a01:4f8:160:7394:0:0:0:2];branch=z9hG4bK934d.2b60491d4b2268c90e588d8a91e4bba9.0\n'+
'Max-Forwards: 70\n'+
'From: "+31602146974" <sip:+31602146974@[2a01:4f8:160:7394::2]>;tag=g4t6aU1XaFr5S\n'+
'To: <sip:[email protected];user=phone>\n'+
'Call-ID: '+call_id+'\n'+
'CSeq: 1 INVITE\n'+
'Contact: <sip:+31602146974@[602d:44c6:f220:8e40::1234]>\n'+
'Supported: timer, path, replaces\n'+
'Session-Expires: 1800;refresher=uac\n'+
'Min-SE: 1200\n'+
'Privacy: none\n'+
'User-Agent: HEPGEN-UAC\n'+
'Content-Type: application/sdp\n'+
'Content-Disposition: session\n'+
'Content-Length: 284\n\n'+
'v=0\n'+
'o=FreeSWITCH 1586327319 1586327320 IN IP6 2a01:4f8:160:7394::2\n'+
's=FreeSWITCH\n'+
'c=IN IP6 2a01:4f8:160:7394::5555\n'+
't=0 0\n'+
'm=audio 44555 RTP/AVP 8 0 101\n'+
'a=rtpmap:8 PCMA/8000\n'+
'a=rtpmap:0 PCMU/8000\n'+
'a=rtpmap:101 telephone-event/8000\n'+
'a=fmtp:101 0-16\n'+
'a=sendrecv\n'+
'a=rtcp:20811\n'+
'a=ptime:20\n'+
'\r\n\r\n'
},
{
// SIP Response 100 Trying
rcinfo: {
type: 'HEP',
version: 3,
proto_type: 1,
captureId: '2001',
capturePass: 'myHep',
protocolFamily: 10,
protocol: 17,
payloadType: 1,
correlation_id: call_id,
srcIp: 'fe80::ca60:ff:fee9:47f0',
dstIp: '2a01:4f8:160:7394::2',
srcPort: 5070,
dstPort: 5060
},
pause: 200,
payload:
'SIP/2.0 100 Trying\n'+
'Call-ID: '+call_id+'\n'+
'CSeq: 1 INVITE\n'+
'From: "+31602146974" <sip:+31602146974@[2a01:4f8:160:7394::2]>;tag=g4t6aU1XaFr5S\n'+
'To: <sip:[email protected];user=phone>;tag=127.0.0.1alUtKGp-01039+1+e15c0013+8c18051\n'+
'Via: SIP/2.0/UDP [2a01:4f8:160:7394:0:0:0:2];branch=z9hG4bK934d.2b60491d4b2268c90e588d8a91e4bba9.0\n'+
'Content-Length: 0\n'+
'Contact: <sip:Fr4nkV1ncentZ4ppa@[fe80::ca60:ff:fee9:47f0];transport=udp>\n'+
'Server: Bluebol 5060 MGC-8 1.2.0.4.SP2.1\n'+
'\r\n\r\n'
},
]
};
// ------------------------------------------------------
module.exports = config;