This repository has been archived by the owner on Oct 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
osp.conf
687 lines (664 loc) · 29.4 KB
/
osp.conf
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
# -*- text -*-
##
## osp.conf -- Configuration for OSP running parameters
##
## $Id$
#
# Introduction
# ====================================================================
# The FreeRADIUS OSP module maps RADIUS accounting records to OSP
# UsageIndication elements. The OSP module then uses OSP Toolkit to
# forward those UsageIndication elements as OSP call detail records
# (OSP CDRs) or OSP UsageIndication messages to an OSP server.
# Multiple OSP servers can be configured for redundancy.
#
# One OSP module instance can only map one type of RADIUS records to
# OSP. For example, an OSP module instance can map Acme Packet
# RADIUS records to OSP or map GENBAND S3 RADIUS records to OSP, but
# not both at the same time.
#
# If different types of RADIUS records need to be collected, then a
# different OSP module instance will need to be deployed for each
# type of RADIUS record that will be collected.
#
# In addition to this configuration file the clients.conf file must
# also be edited. The IP addresses of the client machines that are
# the source of the RADIUS records and the RADIUS secret must be
# configured in the client.conf file.
#
#
# OSP Module Default cofniguration
#
# #
# # OSP module running parameters
# #
# default_running {
# loglevel = 1 # 0 - short, 1 - long */
# timezonefile = ${raddbdir}/timezone.conf # Time zone configuration file */
# }
#
# #
# # OSP provider parameters
# #
# default_provider {
# accelerate = no # Only for the first instance
# security = no
# spuri1 = http://osptestserver.transnexus.com:5045/osp
# # spuri1 = https://[1.2.3.4]:1443/osp
# spweight1 = 1000
# spweight2 = 1000
# spweight3 = 1000
# spweight4 = 1000
# privatekey = /usr/local/etc/raddb/pkey.pem
# localcert = /usr/local/etc/raddb/localcert.pem
# cacert0 = /usr/local/etc/raddb/cacert_0.pem
# # cacert1 = /usr/etc/raddb/cacert_1.pem
# ssllifetime = 300 # in seconds
# maxconnections = 20 # 1 ~ 1000
# persistence = 60 # in seconds
# retrydelay = 0 # 0 ~ 10, in seconds
# retrylimit = 2 # 0 ~ 100
# timeout = 10000 # 200 ~ 60000, in milliseconds
# deviceip = localhost
# deviceport = 5060
# }
#
# #
# # RADIUS OSP mapping parameters
# #
# default_mapping {
# identityitem = NULL
# identityvalue = NULL
# reportstart = yes
# reportstop = yes
# reportinterim = yes
# ignoreddestinationlist = NULL
# clienttype = 0 # 0 - undefined, 1 - Acme, 2 - GENBAND S3, 3 - Cisco, 4 - BroadWorks */
# substatustype = NULL # Only for BroadWorks
# calldirection = NULL # Only for GENBAND S3 and Cisco
# ignoreanswer = no # Only for GENBAND S3 and Cisco
# ignoreoriginate = no # Only for GENBAND S3 and Cisco
# transactionid = NULL
# callid = %{Acct-Session-Id}
# callingnumberformat = 0 # 0 - E.164, 1 - SIP URI, 2 - E.164/SIP URI, 3 - Cisco */
# callingnumber = %{Calling-Station-Id} # From header
# callednumberformat = 0 # 0 - E.164, 1 - SIP URI, 2 - E.164/SIP URI, 3 - Cisco */
# callednumber = %{Called-Station-Id} # To header
# parsetransfer = yes # Only for Acme
# transfercallingnumber = NULL # Only for Acme
# transfercallednumber = NULL # Only for Acme
# transferresult = NULL # Only for BroadWorks
# transferid = NULL
# assertedid = NULL
# remotepartyid = NULL
# source = %{NAS-IP-Address}
# proxy = NULL # Only for GENBAND S3 and Cisco
# sourcedevice = NULL
# destination = NULL
# accessdevice = NULL # Only for BroadWorks
# routedevice = NULL # Only for BroadWorks
# destinationdevice = NULL
# destinationcount = NULL
# sourcenetworkid = NULL
# destinationnetworkid = NULL
# diversionuser = NULL
# diversionhost = NULL
# timestringformat = 0 # 0 - time_t, 1 - ctime, 2 - NTP w/o week day, 3 - NTP, 4 - Cisco, 5 - BroadWorks */
# starttime = %{Acct-Session-Start-Time}
# alerttime = NULL
# connecttime = NULL
# endtime = NULL
# duration = %{Acct-Session-Time}
# postdialdelayunit = 1 # 0 - seconds, 1 - milliseconds */
# postdialdelay = NULL
# providerpostdialdelay = NULL
# releasesource = NULL
# q850releasecause = %{Acct-Terminate-Cause}
# sipreleasecause = NULL
# signalingprotocol = NULL # Not for GENBAND S3 and Cisco
# sourceprotocol = NULL # Only for GENBAND S3 and Cisco
# destinationprotocol = NULL # Only for GENBAND S3 and Cisco
# sourcesessionid = NULL
# destinationsessionid = NULL
# correlationsessionid = NULL
# accesscallid = NULL # Only for BroadWorks
# routecallid = NULL # Only for BroadWorks
# localcallid = NULL # Only for BroadWorks
# remotecallid = NULL # Only for BroadWorks
# sourcecodec = NULL
# destinationcodec = NULL
# sourcevideocodec = NULL
# destinationvideocodec = NULL
# conferenceid = NULL
# custominfo1 = NULL
# custominfo2 = NULL
# custominfo3 = NULL
# custominfo4 = NULL
# custominfo5 = NULL
# custominfo6 = NULL
# custominfo7 = NULL
# custominfo8 = NULL
# sourcerealm = NULL
# destinationrealm = NULL
# otherpartyinfo = NULL # Only for BroadWorks
# callingpartyusername = NULL
# callingpartyuserid = NULL
# callingpartyusergroup = NULL
# calledpartyusername = NULL
# calledpartyuserid = NULL
# calledpartyusergroup = NULL
# networktranslatedcallednumberformat = 0 # 0 - E.164, 1 - SIP URI, 2 - E.164/SIP URI, 3 - Cisco */
# networktranslatedcallednumber = NULL
# serviceproviderid = NULL
# relatedcallidreason = NULL
# recordid = NULL
# fromdisplaynameformat = 0 # 0 - String, 1 - name-addr */
# fromdisplayname = NULL
# sourceaudioaddress = NULL
# sourcevideoaddress = NULL
# destinationaudioaddress = NULL
# destinationvideoaddress = NULL
# proxyingressaddress = NULL
# proxyegressaddress = NULL
# jip = NULL
# reportstatistics = yes
# sendlostpackets = NULL
# sendlostfraction = NULL
# receivelostpackets = NULL
# receivelostfraction = NULL
# rtpsourcetoreporteroctets = NULL
# rtpdestinationtoreporteroctets = NULL
# rtpsourcetoreporterpackets = NULL
# rtpdestinationtoreporterpackets = NULL
# rtpsourcetoreporterlost = NULL
# rtpdestinationtoreporterlost = NULL
# rtpsourcetoreporterjittermean = NULL
# rtpdestinationtoreporterjittermean = NULL
# rtpsourcetoreporterjittermax = NULL
# rtpdestinationtoreporterjittermax = NULL
# rtcpsourcetodestinationlost = NULL
# rtcpdestinationtosourcelost = NULL
# rtcpsourcetodestinationjittermean = NULL
# rtcpdestinationtosourcejittermean = NULL
# rtcpsourcetodestinationjittermax = NULL
# rtcpdestinationtosourcejittermax = NULL
# rtcpsourceroundtripdelaymean = NULL
# rtcpdestinationroundtripdelaymean = NULL
# rtcpsourceroundtripdelaymax = NULL
# rtcpdestinationroundtripdelaymax = NULL
# rfactorscaleindex = 4 # 0 - 0.0001, 1 - 0.001, 2 - 0.01, 3 - 0.1, 4 - 1, 5 - 10, 6 - 100, 7 - 1000, 8 - 10000 */
# sourcetoreporterrfactor = NULL
# destinationtoreporterrfactor = NULL
# mosscaleindex = 4 # 0 - 0.0001, 1 - 0.001, 2 - 0.01, 3 - 0.1, 4 - 1, 5 - 10, 6 - 100, 7 - 1000, 8 - 10000 */
# sourcetoreportermos = NULL
# destinationtoreportermos = NULL
# rtpsourcetoreportervideooctets = NULL
# rtpdestinationtoreportervideooctets = NULL
# rtpsourcetoreportervideopackets = NULL
# rtpdestinationtoreportervideopackets = NULL
# rtpsourcetoreportervideolost = NULL
# rtpdestinationtoreportervideolost = NULL
# rtpsourcetoreportervideojittermean = NULL
# rtpdestinationtoreportervideojittermean = NULL
# rtpsourcetoreportervideojittermax = NULL
# rtpdestinationtoreportervideojittermax = NULL
# rtcpsourcetodestinationvideolost = NULL
# rtcpdestinationtosourcevideolost = NULL
# rtcpsourcetodestinationvideojittermean = NULL
# rtcpdestinationtosourcevideojittermean = NULL
# rtcpsourcetodestinationvideojittermax = NULL
# rtcpdestinationtosourcevideojittermax = NULL
# rtcpsourcevideoroundtripdelaymean = NULL
# rtcpdestinationvideoroundtripdelaymean = NULL
# rtcpsourcevideoroundtripdelaymax = NULL
# rtcpdestinationvideoroundtripdelaymax = NULL
# }
#
# OSP Module Configuration
#
osp osp-acme-sip {
#
# OSP module running parameters
#
running used {
}
#
# OSP provider parameters
#
provider used {
# The OSP servers IP address parameter MUST be configured.
# The FreeRADIUS OSP module can be configured to report OSP
# call detail records to up to 4 OSP servers using the spuri1
# to spuri4 parameters. Each spuriX is the configuration for
# an OSP server. A configuration for spuri1 is required.
# Configuring other OSP servers, using spuri2, ..., spuri4
# parameters, is optional. The OSP server address should be
# configured as a standard URL beginning with either http://
# or https:// followed by the domain name of the OSP server or
# the IP address. The domain name or IP address should be
# followed by the peering server TCP port number and uniform
# resource identifier /osp.
spuri1 = http://127.0.0.1:5045/osp
# The deviceip parameter should be configured with the IP
# address of the server hosting FreeRADIUS.
deviceip = 127.0.0.1
}
#
# RADIUS OSP mapping parameters
#
# Acme Packet RADIUS mapping to OSP
#
# The following section defines mapping of Acme RADIUS accounting
# records to OSP UsageIndication elements.
#
mapping Acme-SIP {
identityitem = %{Acme-Session-Protocol-Type}
identityvalue = SIP
clienttype = 1
callingnumberformat = 1
callednumberformat = 1
callednumber = %{Acme-Primary-Routing-Number}
transfercallingnumber = %{Calling-Station-Id}
transfercallednumber = %{Acme-Egress-Final-Routing-Number}
transferid = %{Acme-Refer-Call-Transfer-Id}
assertedid = %{Acme-P-Asserted-Id}
sourcedevice = %{Acme-Ingress-Remote-Addr}
destination = %{Acme-Egress-Remote-Addr}
diversionuser = %{Acme-SIP-Diversion}
diversionhost = %{Acme-SIP-Diversion}
timestringformat = 2
starttime = %{h323-setup-time}
connecttime = %{h323-connect-time}
endtime = %{h323-disconnect-time}
postdialdelay = %{Acme-Post-Dial-Delay}
releasesource = %{Acme-Disconnect-Initiator}
q850releasecause = %{Acme-Disconnect-Cause}
sipreleasecause = %{Acme-SIP-Status}
signalingprotocol = %{Acme-Session-Protocol-Type}
sourcesessionid = %{Acme-Session-Ingress-CallId}
destinationsessionid = %{Acme-Session-Egress-CallId}
correlationsessionid = %{Acme-Session-Generic-Id}
sourcecodec = %{Acme-FlowType_FS1_F}
destinationcodec = %{Acme-FlowType_FS1_R}
sourcevideocodec = %{Acme-FlowType_FS2_F}
destinationvideocodec = %{Acme-FlowType_FS2_R}
sourcerealm = %{Acme-Session-Ingress-Realm}
destinationrealm = %{Acme-Session-Egress-Realm}
fromdisplaynameformat = 1
fromdisplayname = %{Calling-Station-Id}
sourceaudioaddress = %{Acme-Flow-Out-Dst-Addr_FS1_R}
sourcevideoaddress = %{Acme-Flow-Out-Dst-Addr_FS2_R}
destinationaudioaddress = %{Acme-Flow-Out-Dst-Addr_FS1_F}
destinationvideoaddress = %{Acme-Flow-Out-Dst-Addr_FS2_F}
proxyingressaddress = %{Acme-Ingress-Local-Addr}
proxyegressaddress = %{Acme-Egress-Local-Addr}
rtpsourcetoreporteroctets = %{Acme-Calling-Octets_FS1}
rtpdestinationtoreporteroctets = %{Acme-Called-Octets_FS1}
rtpsourcetoreporterpackets = %{Acme-Calling-Packets_FS1}
rtpdestinationtoreporterpackets = %{Acme-Called-Packets_FS1}
rtpsourcetoreporterlost = %{Acme-Calling-RTP-Packets-Lost_FS1}
rtpdestinationtoreporterlost = %{Acme-Called-RTP-Packets-Lost_FS1}
rtpsourcetoreporterjittermean = %{Acme-Calling-RTP-Avg-Jitter_FS1}
rtpdestinationtoreporterjittermean = %{Acme-Called-RTP-Avg-Jitter_FS1}
rtpsourcetoreporterjittermax = %{Acme-Calling-RTP-MaxJitter_FS1}
rtpdestinationtoreporterjittermax = %{Acme-Called-RTP-MaxJitter_FS1}
rtcpsourcetodestinationlost = %{Acme-Called-RTCP-Packets-Lost_FS1}
rtcpdestinationtosourcelost = %{Acme-Calling-RTCP-Packets-Lost_FS1}
rtcpsourcetodestinationjittermean = %{Acme-Called-RTCP-Avg-Jitter_FS1}
rtcpdestinationtosourcejittermean = %{Acme-Calling-RTCP-Avg-Jitter_FS1}
rtcpsourcetodestinationjittermax = %{Acme-Called-RTCP-MaxJitter_FS1}
rtcpdestinationtosourcejittermax = %{Acme-Calling-RTCP-MaxJitter_FS1}
rtcpsourceroundtripdelaymean = %{Acme-Calling-RTCP-Avg-Latency_FS1}
rtcpdestinationroundtripdelaymean = %{Acme-Called-RTCP-Avg-Latency_FS1}
rtcpsourceroundtripdelaymax = %{Acme-Calling-RTCP-MaxLatency_FS1}
rtcpdestinationroundtripdelaymax = %{Acme-Called-RTCP-MaxLatency_FS1}
rfactorscaleindex = 2
sourcetoreporterrfactor = %{Acme-Calling-R-Factor}
destinationtoreporterrfactor = %{Acme-Called-R-Factor}
mosscaleindex = 2
sourcetoreportermos = %{Acme-Calling-MOS}
destinationtoreportermos = %{Acme-Called-MOS}
rtpsourcetoreportervideooctets = %{Acme-Calling-Octets_FS2}
rtpdestinationtoreportervideooctets = %{Acme-Called-Octets_FS2}
rtpsourcetoreportervideopackets = %{Acme-Calling-Packets_FS2}
rtpdestinationtoreportervideopackets = %{Acme-Called-Packets_FS2}
rtpsourcetoreportervideolost = %{Acme-Calling-RTP-Packets-Lost_FS2}
rtpdestinationtoreportervideolost = %{Acme-Called-RTP-Packets-Lost_FS2}
rtpsourcetoreportervideojittermean = %{Acme-Calling-RTP-Avg-Jitter_FS2}
rtpdestinationtoreportervideojittermean = %{Acme-Called-RTP-Avg-Jitter_FS2}
rtpsourcetoreportervideojittermax = %{Acme-Calling-RTP-MaxJitter_FS2}
rtpdestinationtoreportervideojittermax = %{Acme-Called-RTP-MaxJitter_FS2}
rtcpsourcetodestinationvideolost = %{Acme-Called-RTCP-Packets-Lost_FS2}
rtcpdestinationtosourcevideolost = %{Acme-Calling-RTCP-Packets-Lost_FS2}
rtcpsourcetodestinationvideojittermean = %{Acme-Called-RTCP-Avg-Jitter_FS2}
rtcpdestinationtosourcevideojittermean = %{Acme-Calling-RTCP-Avg-Jitter_FS2}
rtcpsourcetodestinationvideojittermax = %{Acme-Called-RTCP-MaxJitter_FS2}
rtcpdestinationtosourcevideojittermax = %{Acme-Calling-RTCP-MaxJitter_FS2}
rtcpsourcevideoroundtripdelaymean = %{Acme-Calling-RTCP-Avg-Latency_FS2}
rtcpdestinationvideoroundtripdelaymean = %{Acme-Called-RTCP-Avg-Latency_FS2}
rtcpsourcevideoroundtripdelaymax = %{Acme-Calling-RTCP-MaxLatency_FS2}
rtcpdestinationvideoroundtripdelaymax = %{Acme-Called-RTCP-MaxLatency_FS2}
}
}
osp osp-acme-h323 {
#
# OSP module running parameters
#
running used {
}
#
# OSP provider parameters
#
provider used {
# The OSP servers IP address parameter MUST be configured.
# The FreeRADIUS OSP module can be configured to report OSP
# call detail records to up to 4 OSP servers using the spuri1
# to spuri4 parameters. Each spuriX is the configuration for
# an OSP server. A configuration for spuri1 is required.
# Configuring other OSP servers, using spuri2, ..., spuri4
# parameters, is optional. The OSP server address should be
# configured as a standard URL beginning with either http://
# or https:// followed by the domain name of the OSP server or
# the IP address. The domain name or IP address should be
# followed by the peering server TCP port number and uniform
# resource identifier /osp.
spuri1 = http://127.0.0.1:5045/osp
# The deviceip parameter should be configured with the IP
# address of the server hosting FreeRADIUS.
deviceip = 127.0.0.1
}
#
# RADIUS OSP mapping parameters
#
# Acme Packet RADIUS mapping to OSP
#
# The following section defines mapping of Acme RADIUS accounting
# records to OSP UsageIndication elements.
#
mapping Acme-H323 {
identityitem = %{Acme-Session-Protocol-Type}
identityvalue = H323
clienttype = 1
callingnumberformat = 2
callednumberformat = 2
parsetransfer = no
assertedid = %{Acme-P-Asserted-Id}
sourcedevice = %{Acme-Ingress-Remote-Addr}
destination = %{Acme-Egress-Remote-Addr}
diversionuser = %{Acme-SIP-Diversion}
diversionhost = %{Acme-SIP-Diversion}
timestringformat = 2
starttime = %{h323-setup-time}
connecttime = %{h323-connect-time}
endtime = %{h323-disconnect-time}
postdialdelay = %{Acme-Post-Dial-Delay}
releasesource = %{Acme-Disconnect-Initiator}
q850releasecause = %{Acme-Disconnect-Cause}
sipreleasecause = %{Acme-SIP-Status}
signalingprotocol = %{Acme-Session-Protocol-Type}
sourcesessionid = %{Acme-Session-Ingress-CallId}
destinationsessionid = %{Acme-Session-Egress-CallId}
correlationsessionid = %{Acme-Session-Generic-Id}
sourcecodec = %{Acme-FlowType_FS1_F}
destinationcodec = %{Acme-FlowType_FS1_R}
sourcevideocodec = %{Acme-FlowType_FS2_F}
destinationvideocodec = %{Acme-FlowType_FS2_R}
sourcerealm = %{Acme-Session-Ingress-Realm}
destinationrealm = %{Acme-Session-Egress-Realm}
sourceaudioaddress = %{Acme-Flow-Out-Dst-Addr_FS1_R}
sourcevideoaddress = %{Acme-Flow-Out-Dst-Addr_FS2_R}
destinationaudioaddress = %{Acme-Flow-Out-Dst-Addr_FS1_F}
destinationvideoaddress = %{Acme-Flow-Out-Dst-Addr_FS2_F}
proxyingressaddress = %{Acme-Ingress-Local-Addr}
proxyegressaddress = %{Acme-Egress-Local-Addr}
rtpsourcetoreporteroctets = %{Acme-Calling-Octets_FS1}
rtpdestinationtoreporteroctets = %{Acme-Called-Octets_FS1}
rtpsourcetoreporterpackets = %{Acme-Calling-Packets_FS1}
rtpdestinationtoreporterpackets = %{Acme-Called-Packets_FS1}
rtpsourcetoreporterlost = %{Acme-Calling-RTP-Packets-Lost_FS1}
rtpdestinationtoreporterlost = %{Acme-Called-RTP-Packets-Lost_FS1}
rtpsourcetoreporterjittermean = %{Acme-Calling-RTP-Avg-Jitter_FS1}
rtpdestinationtoreporterjittermean = %{Acme-Called-RTP-Avg-Jitter_FS1}
rtpsourcetoreporterjittermax = %{Acme-Calling-RTP-MaxJitter_FS1}
rtpdestinationtoreporterjittermax = %{Acme-Called-RTP-MaxJitter_FS1}
rtcpsourcetodestinationlost = %{Acme-Called-RTCP-Packets-Lost_FS1}
rtcpdestinationtosourcelost = %{Acme-Calling-RTCP-Packets-Lost_FS1}
rtcpsourcetodestinationjittermean = %{Acme-Called-RTCP-Avg-Jitter_FS1}
rtcpdestinationtosourcejittermean = %{Acme-Calling-RTCP-Avg-Jitter_FS1}
rtcpsourcetodestinationjittermax = %{Acme-Called-RTCP-MaxJitter_FS1}
rtcpdestinationtosourcejittermax = %{Acme-Calling-RTCP-MaxJitter_FS1}
rtcpsourceroundtripdelaymean = %{Acme-Calling-RTCP-Avg-Latency_FS1}
rtcpdestinationroundtripdelaymean = %{Acme-Called-RTCP-Avg-Latency_FS1}
rtcpsourceroundtripdelaymax = %{Acme-Calling-RTCP-MaxLatency_FS1}
rtcpdestinationroundtripdelaymax = %{Acme-Called-RTCP-MaxLatency_FS1}
rfactorscaleindex = 2
sourcetoreporterrfactor = %{Acme-Calling-R-Factor}
destinationtoreporterrfactor = %{Acme-Called-R-Factor}
mosscaleindex = 2
sourcetoreportermos = %{Acme-Calling-MOS}
destinationtoreportermos = %{Acme-Called-MOS}
rtpsourcetoreportervideooctets = %{Acme-Calling-Octets_FS2}
rtpdestinationtoreportervideooctets = %{Acme-Called-Octets_FS2}
rtpsourcetoreportervideopackets = %{Acme-Calling-Packets_FS2}
rtpdestinationtoreportervideopackets = %{Acme-Called-Packets_FS2}
rtpsourcetoreportervideolost = %{Acme-Calling-RTP-Packets-Lost_FS2}
rtpdestinationtoreportervideolost = %{Acme-Called-RTP-Packets-Lost_FS2}
rtpsourcetoreportervideojittermean = %{Acme-Calling-RTP-Avg-Jitter_FS2}
rtpdestinationtoreportervideojittermean = %{Acme-Called-RTP-Avg-Jitter_FS2}
rtpsourcetoreportervideojittermax = %{Acme-Calling-RTP-MaxJitter_FS2}
rtpdestinationtoreportervideojittermax = %{Acme-Called-RTP-MaxJitter_FS2}
rtcpsourcetodestinationvideolost = %{Acme-Called-RTCP-Packets-Lost_FS2}
rtcpdestinationtosourcevideolost = %{Acme-Calling-RTCP-Packets-Lost_FS2}
rtcpsourcetodestinationvideojittermean = %{Acme-Called-RTCP-Avg-Jitter_FS2}
rtcpdestinationtosourcevideojittermean = %{Acme-Calling-RTCP-Avg-Jitter_FS2}
rtcpsourcetodestinationvideojittermax = %{Acme-Called-RTCP-MaxJitter_FS2}
rtcpdestinationtosourcevideojittermax = %{Acme-Calling-RTCP-MaxJitter_FS2}
rtcpsourcevideoroundtripdelaymean = %{Acme-Calling-RTCP-Avg-Latency_FS2}
rtcpdestinationvideoroundtripdelaymean = %{Acme-Called-RTCP-Avg-Latency_FS2}
rtcpsourcevideoroundtripdelaymax = %{Acme-Calling-RTCP-MaxLatency_FS2}
rtcpdestinationvideoroundtripdelaymax = %{Acme-Called-RTCP-MaxLatency_FS2}
}
}
osp osp-genbands3 {
#
# OSP module running parameters
#
running used {
}
#
# OSP provider parameters
#
provider used {
# The OSP servers IP address parameter MUST be configured.
# The FreeRADIUS OSP module can be configured to report OSP
# call detail records to up to 4 OSP servers using the spuri1
# to spuri4 parameters. Each spuriX is the configuration for
# an OSP server. A configuration for spuri1 is required.
# Configuring other OSP servers, using spuri2, ..., spuri4
# parameters, is optional. The OSP server address should be
# configured as a standard URL beginning with either http://
# or https:// followed by the domain name of the OSP server or
# the IP address. The domain name or IP address should be
# followed by the peering server TCP port number and uniform
# resource identifier /osp.
spuri1 = http://127.0.0.1:5045/osp
# The deviceip parameter should be configured with the IP
# address of the server hosting FreeRADIUS.
deviceip = 127.0.0.1
}
#
# RADIUS OSP mapping parameters
#
# GENBAND S3 RADIUS mapping to OSP
#
# The following section defines mapping of GENBAND S3 RADIUS
# accounting records to OSP UsageIndication elements.
#
mapping GENBANDS3 {
identityitem = %{Acct-Authentic}
clienttype = 2
calldirection = %{h323-call-origin}
callid = %{h323-conf-id}
callednumber = %{gw-rxd-cdn}
sourcedevice = %{h323-remote-address}
proxy = %{NAS-IP-Address}
destination = %{h323-remote-address}
timestringformat = 3
starttime = %{h323-setup-time}
alerttime = %{alert-timepoint}
connecttime = %{h323-connect-time}
endtime = %{h323-disconnect-time}
releasesource = %{release-source}
q850releasecause = %{h323-disconnect-cause}
sourceprotocol = %{session-protocol}
destinationprotocol = %{session-protocol}
sourcesessionid = %{h323-incoming-conf-id}
destinationsessionid = %{h323-conf-id}
sourceaudioaddress = %{remote-media-address}
destinationaudioaddress = %{remote-media-address}
reportstatistics = no
}
}
osp osp-cisco {
#
# OSP module running parameters
#
# This is the used running configuration section.
running used {
}
#
# OSP provider parameters
#
provider used {
# The OSP servers IP address parameter MUST be configured.
# The FreeRADIUS OSP module can be configured to report OSP
# call detail records to up to 4 OSP servers using the spuri1
# to spuri4 parameters. Each spuriX is the configuration for
# an OSP server. A configuration for spuri1 is required.
# Configuring other OSP servers, using spuri2, ..., spuri4
# parameters, is optional. The OSP server address should be
# configured as a standard URL beginning with either http://
# or https:// followed by the domain name of the OSP server or
# the IP address. The domain name or IP address should be
# followed by the peering server TCP port number and uniform
# resource identifier /osp.
spuri1 = http://127.0.0.1:5045/osp
# The deviceip parameter should be configured with the IP
# address of the server hosting FreeRADIUS.
deviceip = 127.0.0.1
}
#
# RADIUS OSP mapping parameters
#
# Cisco RADIUS mapping to OSP
#
# The following section defines mapping of Cisco RADIUS accounting
# records to OSP UsageIndication elements.
#
mapping Cisco {
identityitem = %{call-id}
reportstart = no
clienttype = 3
calldirection = %{h323-call-origin}
callid = %{call-id}
callingnumberformat = 3
callingnumber = %{gw-rxd-cgn}
callednumberformat = 3
callednumber = %{gw-rxd-cdn}
sourcedevice = %{h323-remote-address}
proxy = %{NAS-IP-Address}
destination = %{h323-remote-address}
timestringformat = 4
starttime = %{h323-setup-time}
connecttime = %{h323-connect-time}
endtime = %{h323-disconnect-time}
releasecause = %{h323-disconnect-cause}
q850releasecause = %{h323-disconnect-cause}
sourceprotocol = %{session-protocol}
destinationprotocol = %{session-protocol}
sourcesessionid = %{call-id}
destinationsessionid = %{call-id}
sourceaudioaddress = %{remote-media-address}
destinationaudioaddress = %{remote-media-address}
reportstatistics = no
}
}
osp osp-broadworks {
#
# OSP module running parameters
#
# This is the used running configuration section.
running used {
}
#
# OSP provider parameters
#
provider used {
# The OSP servers IP address parameter MUST be configured.
# The FreeRADIUS OSP module can be configured to report OSP
# call detail records to up to 4 OSP servers using the spuri1
# to spuri4 parameters. Each spuriX is the configuration for
# an OSP server. A configuration for spuri1 is required.
# Configuring other OSP servers, using spuri2, ..., spuri4
# parameters, is optional. The OSP server address should be
# configured as a standard URL beginning with either http://
# or https:// followed by the domain name of the OSP server or
# the IP address. The domain name or IP address should be
# followed by the peering server TCP port number and uniform
# resource identifier /osp.
spuri1 = http://127.0.0.1:5045/osp
# The deviceip parameter should be configured with the IP
# address of the server hosting FreeRADIUS.
deviceip = 127.0.0.1
}
#
# RADIUS OSP mapping parameters
#
# BroadWorks RADIUS mapping to OSP
#
# The following section defines mapping of BroadWorks RADIUS
# accounting records to OSP UsageIndication elements.
#
mapping BroadWorks {
identityitem = %{BWAS-Radius-Encoding-Version}
# identityvalue = 17.4
# identityvalue = 18.0
clienttype = 4
substatustype = %{BWAS-Type}
calldirection = %{BWAS-Direction}
callingnumber = %{BWAS-Calling-Number}
callednumber = %{BWAS-Called-Number}
transferresult = %{BWAS-Transfer-Result}
transferid = %{BWAS-Transfer-Related-CallId}
proxy = %{NAS-IP-Address}
accessdevice = %{BWAS-Access-Device-Address}
routedevice = %{BWAS-Route}
timestringformat = 5
starttime = %{BWAS-Start-Time}
connecttime = %{BWAS-Answer-Time}
endtime = %{BWAS-Release-Time}
duration = NULL
releasesource = %{BWAS-Releasing-Party}
q850releasecause = %{BWAS-Termination-Cause}
accesscallid = %{BWAS-Access-Callid}
routecallid = %{BWAS-Network-Callid}
localcallid = %{BWAS-Local-Callid}
remotecallid = %{BWAS-Remote-Callid}
sourcecodec = %{BWAS-Codec}
destinationcodec = %{BWAS-Codec}
sourcevideocodec = %{BWAS-Codec}
destinationvideocodec = %{BWAS-Codec}
otherpartyinfo = %{BWAS-Other-Party-Name}
callingpartyusername = %{BWAS-User-Number}
callingpartyuserid = %{BWAS-UserId}
callingpartyusergroup = %{BWAS-Group}
calledpartyusername = %{BWAS-User-Number}
calledpartyuserid = %{BWAS-UserId}
calledpartyusergroup = %{BWAS-Group}
networktranslatedcallednumber = %{BWAS-Network-Translated-Number}
serviceproviderid = %{BWAS-Service-provider}
relatedcallidreason = %{BWAS-Related-CallId-Reason}
recordid = %{BWAS-Record-id}
reportstatistics = no
}
}