<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://docs.telcobridges.com/mediawiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://docs.telcobridges.com/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Songtao+xie</id>
		<title>TBwiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://docs.telcobridges.com/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Songtao+xie"/>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Special:Contributions/Songtao_xie"/>
		<updated>2026-04-15T23:32:00Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.18.1</generator>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2021-02-19T21:55:42Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release 3.1.101.1, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, look at the list below to see the sip call headers that are not supported by this new feature. And from release 3.1.114.1, you can use the accounting header defined in sip_headers_manipulation.rb &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. If Radius CDR is used, the attribute name will be like Telcob-generic-cdr-nameX (X will be from 1 to 16 , depends on the number of Customer defined CDR records ). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage example:&lt;br /&gt;
&lt;br /&gt;
Text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
Radius CDR: Telcob-generic-cdr-name1   TERM-IOI=xxxxxxxxxxxx , Telcob-generic-cdr-name2  P-CHARGE-INFO=xxxxxxxxxxx     &lt;br /&gt;
&lt;br /&gt;
Radius server needs to parse the received value like &amp;quot;TERM-IOI=xxxxxxxxxxxx&amp;quot; for attribute &amp;quot;Telcob-generic-cdr-name1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want to use accounting header with this feature, you need to add the accounting header in script sip_headers_manipulation.rb , for example:&lt;br /&gt;
 def filter_sip_headers_manipulation params&lt;br /&gt;
  call[:manipulation][:accounting] = {}&lt;br /&gt;
  call[:manipulation][:accounting][&amp;quot;header1&amp;quot;] = &amp;quot;value1&amp;quot;&lt;br /&gt;
  call[:manipulation][:accounting][&amp;quot;header2&amp;quot;] = &amp;quot;value2&amp;quot; &lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
The header1 and header2 are the accounting headers name you defined for your cdr purpose. After adding them in sip_headers_manipulation.rb, in text-area box &amp;quot;Customer CDR headers settings&amp;quot;, you add :&lt;br /&gt;
&lt;br /&gt;
HISTORY-INFO=header1:all&lt;br /&gt;
&lt;br /&gt;
ruri=header2:all&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Limitation:&lt;br /&gt;
&lt;br /&gt;
1. The maximal number of Customer defined CDR records is 16.&lt;br /&gt;
&lt;br /&gt;
2. All of sip header in the the following list are not supported by the feature.&lt;br /&gt;
&lt;br /&gt;
3. List of SIP header that are not supported:&lt;br /&gt;
 Accept&lt;br /&gt;
 Accept-Contact&lt;br /&gt;
 Accept-Encoding&lt;br /&gt;
 Accept-Language&lt;br /&gt;
 Alert-Info&lt;br /&gt;
 Allow&lt;br /&gt;
 Allow-Events&lt;br /&gt;
 Also&lt;br /&gt;
 Anonymity&lt;br /&gt;
 Authentication-Info&lt;br /&gt;
 Authorization&lt;br /&gt;
 Call-ID&lt;br /&gt;
 Call-Info&lt;br /&gt;
 Contact&lt;br /&gt;
 Content-Disposition&lt;br /&gt;
 Content-Encoding&lt;br /&gt;
 Content-Language&lt;br /&gt;
 Content-Length&lt;br /&gt;
 Content-Type&lt;br /&gt;
 CSeq&lt;br /&gt;
 Date&lt;br /&gt;
 Encryption&lt;br /&gt;
 Error-Info&lt;br /&gt;
 Event&lt;br /&gt;
 Expires&lt;br /&gt;
 From&lt;br /&gt;
 In-Reply-To&lt;br /&gt;
 Max-Forwards&lt;br /&gt;
 MIME-version&lt;br /&gt;
 Min-Expires&lt;br /&gt;
 Min-SE&lt;br /&gt;
 Organization&lt;br /&gt;
 P-Asserted-Identity&lt;br /&gt;
 P-Media-Authorization&lt;br /&gt;
 P-Preferred-Identity&lt;br /&gt;
 Priority&lt;br /&gt;
 Privacy&lt;br /&gt;
 Proxy-Authenticate&lt;br /&gt;
 Proxy-Authorization&lt;br /&gt;
 Proxy-Require&lt;br /&gt;
 RAck&lt;br /&gt;
 Reason&lt;br /&gt;
 Record-Route&lt;br /&gt;
 Refer-To&lt;br /&gt;
 Referred-By&lt;br /&gt;
 Reject-Contact&lt;br /&gt;
 Remote-Party-ID&lt;br /&gt;
 Replaces&lt;br /&gt;
 Reply-To&lt;br /&gt;
 Request-Disposition&lt;br /&gt;
 Require&lt;br /&gt;
 Response-Key&lt;br /&gt;
 Retry-After&lt;br /&gt;
 Route&lt;br /&gt;
 RPID-Privacy&lt;br /&gt;
 RSeq&lt;br /&gt;
 Security-Client&lt;br /&gt;
 Security-Server&lt;br /&gt;
 Security-Verify&lt;br /&gt;
 Server&lt;br /&gt;
 Service-Route&lt;br /&gt;
 Session-Expires&lt;br /&gt;
 Subject&lt;br /&gt;
 Subscription-State&lt;br /&gt;
 Supported&lt;br /&gt;
 Timestamp&lt;br /&gt;
 To&lt;br /&gt;
 Unsupported&lt;br /&gt;
 User-Agen&lt;br /&gt;
 Via&lt;br /&gt;
 Warning&lt;br /&gt;
 WWW-Authenticate&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2021-02-19T21:54:52Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release 3.1.101.1, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, look at the list below to see the sip call headers that are not supported by this new feature. And from release 3.1.114.1, you can use the accounting header defined in sip_headers_manipulation.rb &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. If Radius CDR is used, the attribute name will be like Telcob-generic-cdr-nameX (X will be from 1 to 16 , depends on the number of Customer defined CDR records ). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage example:&lt;br /&gt;
&lt;br /&gt;
Text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
Radius CDR: Telcob-generic-cdr-name1   TERM-IOI=xxxxxxxxxxxx , Telcob-generic-cdr-name2  P-CHARGE-INFO=xxxxxxxxxxx     &lt;br /&gt;
&lt;br /&gt;
Radius server needs to parse the received value like &amp;quot;TERM-IOI=xxxxxxxxxxxx&amp;quot; for attribute &amp;quot;Telcob-generic-cdr-name1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you want to use accounting header with this feature, you need to add the accounting header in script sip_headers_manipulation.rb , for example:&lt;br /&gt;
 def filter_sip_headers_manipulation params&lt;br /&gt;
  call[:manipulation][:accounting] = {}&lt;br /&gt;
  call[:manipulation][:accounting][&amp;quot;header1&amp;quot;] = &amp;quot;value1&amp;quot;&lt;br /&gt;
  call[:manipulation][:accounting][&amp;quot;header2&amp;quot;] = &amp;quot;value2&amp;quot; &lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
The header1 and header2 are the accounting headers name you defined for your cdr purpose. After adding them in sip_headers_manipulation.rb, in text-area box &amp;quot;Customer CDR headers settings&amp;quot;, you add :&lt;br /&gt;
&lt;br /&gt;
HISTORY-INFO=header1:all&lt;br /&gt;
&lt;br /&gt;
ruri=header2:all&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Limitation:&lt;br /&gt;
&lt;br /&gt;
1. The maximal number of Customer defined CDR records is 16.&lt;br /&gt;
&lt;br /&gt;
2. All of sip header in the the following list are not supported by the feature.&lt;br /&gt;
&lt;br /&gt;
3. List of SIP header that are not supported:&lt;br /&gt;
 Accept&lt;br /&gt;
 Accept-Contact&lt;br /&gt;
 Accept-Encoding&lt;br /&gt;
 Accept-Language&lt;br /&gt;
 Alert-Info&lt;br /&gt;
 Allow&lt;br /&gt;
 Allow-Events&lt;br /&gt;
 Also&lt;br /&gt;
 Anonymity&lt;br /&gt;
 Authentication-Info&lt;br /&gt;
 Authorization&lt;br /&gt;
 Call-ID&lt;br /&gt;
 Call-Info&lt;br /&gt;
 Contact&lt;br /&gt;
 Content-Disposition&lt;br /&gt;
 Content-Encoding&lt;br /&gt;
 Content-Language&lt;br /&gt;
 Content-Length&lt;br /&gt;
 Content-Type&lt;br /&gt;
 CSeq&lt;br /&gt;
 Date&lt;br /&gt;
 Encryption&lt;br /&gt;
 Error-Info&lt;br /&gt;
 Event&lt;br /&gt;
 Expires&lt;br /&gt;
 From&lt;br /&gt;
 In-Reply-To&lt;br /&gt;
 Max-Forwards&lt;br /&gt;
 MIME-version&lt;br /&gt;
 Min-Expires&lt;br /&gt;
 Min-SE&lt;br /&gt;
 Organization&lt;br /&gt;
 P-Asserted-Identity&lt;br /&gt;
 P-Media-Authorization&lt;br /&gt;
 P-Preferred-Identity&lt;br /&gt;
 Priority&lt;br /&gt;
 Privacy&lt;br /&gt;
 Proxy-Authenticate&lt;br /&gt;
 Proxy-Authorization&lt;br /&gt;
 Proxy-Require&lt;br /&gt;
 RAck&lt;br /&gt;
 Reason&lt;br /&gt;
 Record-Route&lt;br /&gt;
 Refer-To&lt;br /&gt;
 Referred-By&lt;br /&gt;
 Reject-Contact&lt;br /&gt;
 Remote-Party-ID&lt;br /&gt;
 Replaces&lt;br /&gt;
 Reply-To&lt;br /&gt;
 Request-Disposition&lt;br /&gt;
 Require&lt;br /&gt;
 Response-Key&lt;br /&gt;
 Retry-After&lt;br /&gt;
 Route&lt;br /&gt;
 RPID-Privacy&lt;br /&gt;
 RSeq&lt;br /&gt;
 Security-Client&lt;br /&gt;
 Security-Server&lt;br /&gt;
 Security-Verify&lt;br /&gt;
 Server&lt;br /&gt;
 Service-Route&lt;br /&gt;
 Session-Expires&lt;br /&gt;
 Subject&lt;br /&gt;
 Subscription-State&lt;br /&gt;
 Supported&lt;br /&gt;
 Timestamp&lt;br /&gt;
 To&lt;br /&gt;
 Unsupported&lt;br /&gt;
 User-Agen&lt;br /&gt;
 Via&lt;br /&gt;
 Warning&lt;br /&gt;
 WWW-Authenticate&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2021-02-19T21:50:35Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release 3.1.101.1, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, look at the list below to see the sip call headers that are not supported by this new feature. And from release 3.1.114.1, you can use the accounting header defined in sip_headers_manipulation.rb &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. If Radius CDR is used, the attribute name will be like Telcob-generic-cdr-nameX (X will be from 1 to 16 , depends on the number of Customer defined CDR records ). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage example:&lt;br /&gt;
&lt;br /&gt;
Text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
Radius CDR: Telcob-generic-cdr-name1   TERM-IOI=xxxxxxxxxxxx , Telcob-generic-cdr-name2  P-CHARGE-INFO=xxxxxxxxxxx     &lt;br /&gt;
&lt;br /&gt;
Radius server needs to parse the received value like &amp;quot;TERM-IOI=xxxxxxxxxxxx&amp;quot; for attribute &amp;quot;Telcob-generic-cdr-name1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you want to use accounting header with this feature, you need to add the accounting header in script sip_headers_manipulation.rb , for example:&lt;br /&gt;
 def filter_sip_headers_manipulation params&lt;br /&gt;
  call[:manipulation][:accounting] = {}&lt;br /&gt;
  call[:manipulation][:accounting][&amp;quot;header1&amp;quot;] = &amp;quot;value1&amp;quot;&lt;br /&gt;
  call[:manipulation][:accounting][&amp;quot;header2&amp;quot;] = &amp;quot;value2&amp;quot; &lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
The header1 and header2 are the accounting headers you defined for your cdr purpose&lt;br /&gt;
&lt;br /&gt;
Limitation:&lt;br /&gt;
&lt;br /&gt;
1. The maximal number of Customer defined CDR records is 16.&lt;br /&gt;
&lt;br /&gt;
2. All of sip header in the the following list are not supported by the feature.&lt;br /&gt;
&lt;br /&gt;
3. List of SIP header that are not supported:&lt;br /&gt;
 Accept&lt;br /&gt;
 Accept-Contact&lt;br /&gt;
 Accept-Encoding&lt;br /&gt;
 Accept-Language&lt;br /&gt;
 Alert-Info&lt;br /&gt;
 Allow&lt;br /&gt;
 Allow-Events&lt;br /&gt;
 Also&lt;br /&gt;
 Anonymity&lt;br /&gt;
 Authentication-Info&lt;br /&gt;
 Authorization&lt;br /&gt;
 Call-ID&lt;br /&gt;
 Call-Info&lt;br /&gt;
 Contact&lt;br /&gt;
 Content-Disposition&lt;br /&gt;
 Content-Encoding&lt;br /&gt;
 Content-Language&lt;br /&gt;
 Content-Length&lt;br /&gt;
 Content-Type&lt;br /&gt;
 CSeq&lt;br /&gt;
 Date&lt;br /&gt;
 Encryption&lt;br /&gt;
 Error-Info&lt;br /&gt;
 Event&lt;br /&gt;
 Expires&lt;br /&gt;
 From&lt;br /&gt;
 In-Reply-To&lt;br /&gt;
 Max-Forwards&lt;br /&gt;
 MIME-version&lt;br /&gt;
 Min-Expires&lt;br /&gt;
 Min-SE&lt;br /&gt;
 Organization&lt;br /&gt;
 P-Asserted-Identity&lt;br /&gt;
 P-Media-Authorization&lt;br /&gt;
 P-Preferred-Identity&lt;br /&gt;
 Priority&lt;br /&gt;
 Privacy&lt;br /&gt;
 Proxy-Authenticate&lt;br /&gt;
 Proxy-Authorization&lt;br /&gt;
 Proxy-Require&lt;br /&gt;
 RAck&lt;br /&gt;
 Reason&lt;br /&gt;
 Record-Route&lt;br /&gt;
 Refer-To&lt;br /&gt;
 Referred-By&lt;br /&gt;
 Reject-Contact&lt;br /&gt;
 Remote-Party-ID&lt;br /&gt;
 Replaces&lt;br /&gt;
 Reply-To&lt;br /&gt;
 Request-Disposition&lt;br /&gt;
 Require&lt;br /&gt;
 Response-Key&lt;br /&gt;
 Retry-After&lt;br /&gt;
 Route&lt;br /&gt;
 RPID-Privacy&lt;br /&gt;
 RSeq&lt;br /&gt;
 Security-Client&lt;br /&gt;
 Security-Server&lt;br /&gt;
 Security-Verify&lt;br /&gt;
 Server&lt;br /&gt;
 Service-Route&lt;br /&gt;
 Session-Expires&lt;br /&gt;
 Subject&lt;br /&gt;
 Subscription-State&lt;br /&gt;
 Supported&lt;br /&gt;
 Timestamp&lt;br /&gt;
 To&lt;br /&gt;
 Unsupported&lt;br /&gt;
 User-Agen&lt;br /&gt;
 Via&lt;br /&gt;
 Warning&lt;br /&gt;
 WWW-Authenticate&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2021-02-19T21:48:24Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release 3.1.101.1, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, look at the list below to see the sip call headers that are not supported by this new feature. And from release 3.1.114.1, you can use the accounting header defined in sip_headers_manipulation.rb &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. If Radius CDR is used, the attribute name will be like Telcob-generic-cdr-nameX (X will be from 1 to 16 , depends on the number of Customer defined CDR records ). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage example:&lt;br /&gt;
&lt;br /&gt;
Text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
Radius CDR: Telcob-generic-cdr-name1   TERM-IOI=xxxxxxxxxxxx , Telcob-generic-cdr-name2  P-CHARGE-INFO=xxxxxxxxxxx     &lt;br /&gt;
&lt;br /&gt;
Radius server needs to parse the received value like &amp;quot;TERM-IOI=xxxxxxxxxxxx&amp;quot; for attribute &amp;quot;Telcob-generic-cdr-name1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you want to use accounting header with this feature, you need to add the accounting header in script sip_headers_manipulation.rb , for example:&lt;br /&gt;
 def filter_sip_headers_manipulation params&lt;br /&gt;
  call[:manipulation][:accounting] = {}&lt;br /&gt;
  call[:manipulation][:accounting][&amp;quot;header1&amp;quot;] = &amp;quot;value1&amp;quot;&lt;br /&gt;
  call[:manipulation][:accounting][&amp;quot;header2&amp;quot;] = &amp;quot;value2&amp;quot; &lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Limitation:&lt;br /&gt;
&lt;br /&gt;
1. The maximal number of Customer defined CDR records is 16.&lt;br /&gt;
&lt;br /&gt;
2. All of sip header in the the following list are not supported by the feature.&lt;br /&gt;
&lt;br /&gt;
3. List of SIP header that are not supported:&lt;br /&gt;
 Accept&lt;br /&gt;
 Accept-Contact&lt;br /&gt;
 Accept-Encoding&lt;br /&gt;
 Accept-Language&lt;br /&gt;
 Alert-Info&lt;br /&gt;
 Allow&lt;br /&gt;
 Allow-Events&lt;br /&gt;
 Also&lt;br /&gt;
 Anonymity&lt;br /&gt;
 Authentication-Info&lt;br /&gt;
 Authorization&lt;br /&gt;
 Call-ID&lt;br /&gt;
 Call-Info&lt;br /&gt;
 Contact&lt;br /&gt;
 Content-Disposition&lt;br /&gt;
 Content-Encoding&lt;br /&gt;
 Content-Language&lt;br /&gt;
 Content-Length&lt;br /&gt;
 Content-Type&lt;br /&gt;
 CSeq&lt;br /&gt;
 Date&lt;br /&gt;
 Encryption&lt;br /&gt;
 Error-Info&lt;br /&gt;
 Event&lt;br /&gt;
 Expires&lt;br /&gt;
 From&lt;br /&gt;
 In-Reply-To&lt;br /&gt;
 Max-Forwards&lt;br /&gt;
 MIME-version&lt;br /&gt;
 Min-Expires&lt;br /&gt;
 Min-SE&lt;br /&gt;
 Organization&lt;br /&gt;
 P-Asserted-Identity&lt;br /&gt;
 P-Media-Authorization&lt;br /&gt;
 P-Preferred-Identity&lt;br /&gt;
 Priority&lt;br /&gt;
 Privacy&lt;br /&gt;
 Proxy-Authenticate&lt;br /&gt;
 Proxy-Authorization&lt;br /&gt;
 Proxy-Require&lt;br /&gt;
 RAck&lt;br /&gt;
 Reason&lt;br /&gt;
 Record-Route&lt;br /&gt;
 Refer-To&lt;br /&gt;
 Referred-By&lt;br /&gt;
 Reject-Contact&lt;br /&gt;
 Remote-Party-ID&lt;br /&gt;
 Replaces&lt;br /&gt;
 Reply-To&lt;br /&gt;
 Request-Disposition&lt;br /&gt;
 Require&lt;br /&gt;
 Response-Key&lt;br /&gt;
 Retry-After&lt;br /&gt;
 Route&lt;br /&gt;
 RPID-Privacy&lt;br /&gt;
 RSeq&lt;br /&gt;
 Security-Client&lt;br /&gt;
 Security-Server&lt;br /&gt;
 Security-Verify&lt;br /&gt;
 Server&lt;br /&gt;
 Service-Route&lt;br /&gt;
 Session-Expires&lt;br /&gt;
 Subject&lt;br /&gt;
 Subscription-State&lt;br /&gt;
 Supported&lt;br /&gt;
 Timestamp&lt;br /&gt;
 To&lt;br /&gt;
 Unsupported&lt;br /&gt;
 User-Agen&lt;br /&gt;
 Via&lt;br /&gt;
 Warning&lt;br /&gt;
 WWW-Authenticate&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2021-02-19T21:47:32Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release 3.1.101.1, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, look at the list below to see the sip call headers that are not supported by this new feature. And from release 3.1.114.1, you can use the accounting header defined in sip_headers_manipulation.rb &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. If Radius CDR is used, the attribute name will be like Telcob-generic-cdr-nameX (X will be from 1 to 16 , depends on the number of Customer defined CDR records ). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage example:&lt;br /&gt;
&lt;br /&gt;
Text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
Radius CDR: Telcob-generic-cdr-name1   TERM-IOI=xxxxxxxxxxxx , Telcob-generic-cdr-name2  P-CHARGE-INFO=xxxxxxxxxxx     &lt;br /&gt;
&lt;br /&gt;
Radius server needs to parse the received value like &amp;quot;TERM-IOI=xxxxxxxxxxxx&amp;quot; for attribute &amp;quot;Telcob-generic-cdr-name1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you want to use accounting header with this feature, you need to add the accounting header in script sip_headers_manipulation.rb , for example:&lt;br /&gt;
&lt;br /&gt;
def filter_sip_headers_manipulation params&lt;br /&gt;
 call[:manipulation][:accounting] = {}&lt;br /&gt;
 call[:manipulation][:accounting][&amp;quot;header1&amp;quot;] = &amp;quot;value1&amp;quot;&lt;br /&gt;
 call[:manipulation][:accounting][&amp;quot;header2&amp;quot;] = &amp;quot;value2&amp;quot; &lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Limitation:&lt;br /&gt;
&lt;br /&gt;
1. The maximal number of Customer defined CDR records is 16.&lt;br /&gt;
&lt;br /&gt;
2. All of sip header in the the following list are not supported by the feature.&lt;br /&gt;
&lt;br /&gt;
3. List of SIP header that are not supported:&lt;br /&gt;
 Accept&lt;br /&gt;
 Accept-Contact&lt;br /&gt;
 Accept-Encoding&lt;br /&gt;
 Accept-Language&lt;br /&gt;
 Alert-Info&lt;br /&gt;
 Allow&lt;br /&gt;
 Allow-Events&lt;br /&gt;
 Also&lt;br /&gt;
 Anonymity&lt;br /&gt;
 Authentication-Info&lt;br /&gt;
 Authorization&lt;br /&gt;
 Call-ID&lt;br /&gt;
 Call-Info&lt;br /&gt;
 Contact&lt;br /&gt;
 Content-Disposition&lt;br /&gt;
 Content-Encoding&lt;br /&gt;
 Content-Language&lt;br /&gt;
 Content-Length&lt;br /&gt;
 Content-Type&lt;br /&gt;
 CSeq&lt;br /&gt;
 Date&lt;br /&gt;
 Encryption&lt;br /&gt;
 Error-Info&lt;br /&gt;
 Event&lt;br /&gt;
 Expires&lt;br /&gt;
 From&lt;br /&gt;
 In-Reply-To&lt;br /&gt;
 Max-Forwards&lt;br /&gt;
 MIME-version&lt;br /&gt;
 Min-Expires&lt;br /&gt;
 Min-SE&lt;br /&gt;
 Organization&lt;br /&gt;
 P-Asserted-Identity&lt;br /&gt;
 P-Media-Authorization&lt;br /&gt;
 P-Preferred-Identity&lt;br /&gt;
 Priority&lt;br /&gt;
 Privacy&lt;br /&gt;
 Proxy-Authenticate&lt;br /&gt;
 Proxy-Authorization&lt;br /&gt;
 Proxy-Require&lt;br /&gt;
 RAck&lt;br /&gt;
 Reason&lt;br /&gt;
 Record-Route&lt;br /&gt;
 Refer-To&lt;br /&gt;
 Referred-By&lt;br /&gt;
 Reject-Contact&lt;br /&gt;
 Remote-Party-ID&lt;br /&gt;
 Replaces&lt;br /&gt;
 Reply-To&lt;br /&gt;
 Request-Disposition&lt;br /&gt;
 Require&lt;br /&gt;
 Response-Key&lt;br /&gt;
 Retry-After&lt;br /&gt;
 Route&lt;br /&gt;
 RPID-Privacy&lt;br /&gt;
 RSeq&lt;br /&gt;
 Security-Client&lt;br /&gt;
 Security-Server&lt;br /&gt;
 Security-Verify&lt;br /&gt;
 Server&lt;br /&gt;
 Service-Route&lt;br /&gt;
 Session-Expires&lt;br /&gt;
 Subject&lt;br /&gt;
 Subscription-State&lt;br /&gt;
 Supported&lt;br /&gt;
 Timestamp&lt;br /&gt;
 To&lt;br /&gt;
 Unsupported&lt;br /&gt;
 User-Agen&lt;br /&gt;
 Via&lt;br /&gt;
 Warning&lt;br /&gt;
 WWW-Authenticate&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2021-02-19T21:05:01Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release 3.1.101.1, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, look at the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. If Radius CDR is used, the attribute name will be like Telcob-generic-cdr-nameX (X will be from 1 to 16 , depends on the number of Customer defined CDR records ). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage example:&lt;br /&gt;
&lt;br /&gt;
Text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
Radius CDR: Telcob-generic-cdr-name1   TERM-IOI=xxxxxxxxxxxx , Telcob-generic-cdr-name2  P-CHARGE-INFO=xxxxxxxxxxx     &lt;br /&gt;
&lt;br /&gt;
Radius server needs to parse the received value like &amp;quot;TERM-IOI=xxxxxxxxxxxx&amp;quot; for attribute &amp;quot;Telcob-generic-cdr-name1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Limitation:&lt;br /&gt;
&lt;br /&gt;
1. The maximal number of Customer defined CDR records is 16.&lt;br /&gt;
&lt;br /&gt;
2. All of sip header in the the following list are not supported by the feature.&lt;br /&gt;
&lt;br /&gt;
3. List of SIP header that are not supported:&lt;br /&gt;
 Accept&lt;br /&gt;
 Accept-Contact&lt;br /&gt;
 Accept-Encoding&lt;br /&gt;
 Accept-Language&lt;br /&gt;
 Alert-Info&lt;br /&gt;
 Allow&lt;br /&gt;
 Allow-Events&lt;br /&gt;
 Also&lt;br /&gt;
 Anonymity&lt;br /&gt;
 Authentication-Info&lt;br /&gt;
 Authorization&lt;br /&gt;
 Call-ID&lt;br /&gt;
 Call-Info&lt;br /&gt;
 Contact&lt;br /&gt;
 Content-Disposition&lt;br /&gt;
 Content-Encoding&lt;br /&gt;
 Content-Language&lt;br /&gt;
 Content-Length&lt;br /&gt;
 Content-Type&lt;br /&gt;
 CSeq&lt;br /&gt;
 Date&lt;br /&gt;
 Encryption&lt;br /&gt;
 Error-Info&lt;br /&gt;
 Event&lt;br /&gt;
 Expires&lt;br /&gt;
 From&lt;br /&gt;
 In-Reply-To&lt;br /&gt;
 Max-Forwards&lt;br /&gt;
 MIME-version&lt;br /&gt;
 Min-Expires&lt;br /&gt;
 Min-SE&lt;br /&gt;
 Organization&lt;br /&gt;
 P-Asserted-Identity&lt;br /&gt;
 P-Media-Authorization&lt;br /&gt;
 P-Preferred-Identity&lt;br /&gt;
 Priority&lt;br /&gt;
 Privacy&lt;br /&gt;
 Proxy-Authenticate&lt;br /&gt;
 Proxy-Authorization&lt;br /&gt;
 Proxy-Require&lt;br /&gt;
 RAck&lt;br /&gt;
 Reason&lt;br /&gt;
 Record-Route&lt;br /&gt;
 Refer-To&lt;br /&gt;
 Referred-By&lt;br /&gt;
 Reject-Contact&lt;br /&gt;
 Remote-Party-ID&lt;br /&gt;
 Replaces&lt;br /&gt;
 Reply-To&lt;br /&gt;
 Request-Disposition&lt;br /&gt;
 Require&lt;br /&gt;
 Response-Key&lt;br /&gt;
 Retry-After&lt;br /&gt;
 Route&lt;br /&gt;
 RPID-Privacy&lt;br /&gt;
 RSeq&lt;br /&gt;
 Security-Client&lt;br /&gt;
 Security-Server&lt;br /&gt;
 Security-Verify&lt;br /&gt;
 Server&lt;br /&gt;
 Service-Route&lt;br /&gt;
 Session-Expires&lt;br /&gt;
 Subject&lt;br /&gt;
 Subscription-State&lt;br /&gt;
 Supported&lt;br /&gt;
 Timestamp&lt;br /&gt;
 To&lt;br /&gt;
 Unsupported&lt;br /&gt;
 User-Agen&lt;br /&gt;
 Via&lt;br /&gt;
 Warning&lt;br /&gt;
 WWW-Authenticate&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2021-02-19T21:04:03Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release 3.1.101.1, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, look at the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. If Radius CDR is used, the attribute name will be like Telcob-generic-cdr-nameX (X will be from 1 to 8 , depends on the number of Customer defined CDR records ). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage example:&lt;br /&gt;
&lt;br /&gt;
Text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
Radius CDR: Telcob-generic-cdr-name1   TERM-IOI=xxxxxxxxxxxx , Telcob-generic-cdr-name2  P-CHARGE-INFO=xxxxxxxxxxx     &lt;br /&gt;
&lt;br /&gt;
Radius server needs to parse the received value like &amp;quot;TERM-IOI=xxxxxxxxxxxx&amp;quot; for attribute &amp;quot;Telcob-generic-cdr-name1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Limitation:&lt;br /&gt;
&lt;br /&gt;
1. The maximal number of Customer defined CDR records is 16.&lt;br /&gt;
&lt;br /&gt;
2. All of sip header in the the following list are not supported by the feature.&lt;br /&gt;
&lt;br /&gt;
3. List of SIP header that are not supported:&lt;br /&gt;
 Accept&lt;br /&gt;
 Accept-Contact&lt;br /&gt;
 Accept-Encoding&lt;br /&gt;
 Accept-Language&lt;br /&gt;
 Alert-Info&lt;br /&gt;
 Allow&lt;br /&gt;
 Allow-Events&lt;br /&gt;
 Also&lt;br /&gt;
 Anonymity&lt;br /&gt;
 Authentication-Info&lt;br /&gt;
 Authorization&lt;br /&gt;
 Call-ID&lt;br /&gt;
 Call-Info&lt;br /&gt;
 Contact&lt;br /&gt;
 Content-Disposition&lt;br /&gt;
 Content-Encoding&lt;br /&gt;
 Content-Language&lt;br /&gt;
 Content-Length&lt;br /&gt;
 Content-Type&lt;br /&gt;
 CSeq&lt;br /&gt;
 Date&lt;br /&gt;
 Encryption&lt;br /&gt;
 Error-Info&lt;br /&gt;
 Event&lt;br /&gt;
 Expires&lt;br /&gt;
 From&lt;br /&gt;
 In-Reply-To&lt;br /&gt;
 Max-Forwards&lt;br /&gt;
 MIME-version&lt;br /&gt;
 Min-Expires&lt;br /&gt;
 Min-SE&lt;br /&gt;
 Organization&lt;br /&gt;
 P-Asserted-Identity&lt;br /&gt;
 P-Media-Authorization&lt;br /&gt;
 P-Preferred-Identity&lt;br /&gt;
 Priority&lt;br /&gt;
 Privacy&lt;br /&gt;
 Proxy-Authenticate&lt;br /&gt;
 Proxy-Authorization&lt;br /&gt;
 Proxy-Require&lt;br /&gt;
 RAck&lt;br /&gt;
 Reason&lt;br /&gt;
 Record-Route&lt;br /&gt;
 Refer-To&lt;br /&gt;
 Referred-By&lt;br /&gt;
 Reject-Contact&lt;br /&gt;
 Remote-Party-ID&lt;br /&gt;
 Replaces&lt;br /&gt;
 Reply-To&lt;br /&gt;
 Request-Disposition&lt;br /&gt;
 Require&lt;br /&gt;
 Response-Key&lt;br /&gt;
 Retry-After&lt;br /&gt;
 Route&lt;br /&gt;
 RPID-Privacy&lt;br /&gt;
 RSeq&lt;br /&gt;
 Security-Client&lt;br /&gt;
 Security-Server&lt;br /&gt;
 Security-Verify&lt;br /&gt;
 Server&lt;br /&gt;
 Service-Route&lt;br /&gt;
 Session-Expires&lt;br /&gt;
 Subject&lt;br /&gt;
 Subscription-State&lt;br /&gt;
 Supported&lt;br /&gt;
 Timestamp&lt;br /&gt;
 To&lt;br /&gt;
 Unsupported&lt;br /&gt;
 User-Agen&lt;br /&gt;
 Via&lt;br /&gt;
 Warning&lt;br /&gt;
 WWW-Authenticate&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-11-05T11:50:04Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release 3.1.101.1, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, look at the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. If Radius CDR is used, the attribute name will be like Telcob-generic-cdr-nameX (X will be from 1 to 8 , depends on the number of Customer defined CDR records ). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage example:&lt;br /&gt;
&lt;br /&gt;
Text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
Radius CDR: Telcob-generic-cdr-name1   TERM-IOI=xxxxxxxxxxxx , Telcob-generic-cdr-name2  P-CHARGE-INFO=xxxxxxxxxxx     &lt;br /&gt;
&lt;br /&gt;
Radius server needs to parse the received value like &amp;quot;TERM-IOI=xxxxxxxxxxxx&amp;quot; for attribute &amp;quot;Telcob-generic-cdr-name1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Limitation:&lt;br /&gt;
&lt;br /&gt;
1. The maximal number of Customer defined CDR records is 8.&lt;br /&gt;
&lt;br /&gt;
2. All of sip header in the the following list are not supported by the feature.&lt;br /&gt;
&lt;br /&gt;
3. List of SIP header that are not supported:&lt;br /&gt;
 Accept&lt;br /&gt;
 Accept-Contact&lt;br /&gt;
 Accept-Encoding&lt;br /&gt;
 Accept-Language&lt;br /&gt;
 Alert-Info&lt;br /&gt;
 Allow&lt;br /&gt;
 Allow-Events&lt;br /&gt;
 Also&lt;br /&gt;
 Anonymity&lt;br /&gt;
 Authentication-Info&lt;br /&gt;
 Authorization&lt;br /&gt;
 Call-ID&lt;br /&gt;
 Call-Info&lt;br /&gt;
 Contact&lt;br /&gt;
 Content-Disposition&lt;br /&gt;
 Content-Encoding&lt;br /&gt;
 Content-Language&lt;br /&gt;
 Content-Length&lt;br /&gt;
 Content-Type&lt;br /&gt;
 CSeq&lt;br /&gt;
 Date&lt;br /&gt;
 Encryption&lt;br /&gt;
 Error-Info&lt;br /&gt;
 Event&lt;br /&gt;
 Expires&lt;br /&gt;
 From&lt;br /&gt;
 In-Reply-To&lt;br /&gt;
 Max-Forwards&lt;br /&gt;
 MIME-version&lt;br /&gt;
 Min-Expires&lt;br /&gt;
 Min-SE&lt;br /&gt;
 Organization&lt;br /&gt;
 P-Asserted-Identity&lt;br /&gt;
 P-Media-Authorization&lt;br /&gt;
 P-Preferred-Identity&lt;br /&gt;
 Priority&lt;br /&gt;
 Privacy&lt;br /&gt;
 Proxy-Authenticate&lt;br /&gt;
 Proxy-Authorization&lt;br /&gt;
 Proxy-Require&lt;br /&gt;
 RAck&lt;br /&gt;
 Reason&lt;br /&gt;
 Record-Route&lt;br /&gt;
 Refer-To&lt;br /&gt;
 Referred-By&lt;br /&gt;
 Reject-Contact&lt;br /&gt;
 Remote-Party-ID&lt;br /&gt;
 Replaces&lt;br /&gt;
 Reply-To&lt;br /&gt;
 Request-Disposition&lt;br /&gt;
 Require&lt;br /&gt;
 Response-Key&lt;br /&gt;
 Retry-After&lt;br /&gt;
 Route&lt;br /&gt;
 RPID-Privacy&lt;br /&gt;
 RSeq&lt;br /&gt;
 Security-Client&lt;br /&gt;
 Security-Server&lt;br /&gt;
 Security-Verify&lt;br /&gt;
 Server&lt;br /&gt;
 Service-Route&lt;br /&gt;
 Session-Expires&lt;br /&gt;
 Subject&lt;br /&gt;
 Subscription-State&lt;br /&gt;
 Supported&lt;br /&gt;
 Timestamp&lt;br /&gt;
 To&lt;br /&gt;
 Unsupported&lt;br /&gt;
 User-Agen&lt;br /&gt;
 Via&lt;br /&gt;
 Warning&lt;br /&gt;
 WWW-Authenticate&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-26T14:45:23Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. If Radius CDR is used, the attribute name will be like Telcob-generic-cdr-nameX (X will be from 1 to 8 , depends on the number of Customer defined CDR records ). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage example:&lt;br /&gt;
&lt;br /&gt;
Text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
Radius CDR: Telcob-generic-cdr-name1   TERM-IOI=xxxxxxxxxxxx , Telcob-generic-cdr-name2  P-CHARGE-INFO=xxxxxxxxxxx     &lt;br /&gt;
&lt;br /&gt;
Radius server needs to parse the received value like &amp;quot;TERM-IOI=xxxxxxxxxxxx&amp;quot; for attribute &amp;quot;Telcob-generic-cdr-name1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Limitation:&lt;br /&gt;
&lt;br /&gt;
1. The maximal number of Customer defined CDR records is 8.&lt;br /&gt;
&lt;br /&gt;
2. All of sip header in the the following list are not supported by the feature.&lt;br /&gt;
&lt;br /&gt;
3. List of SIP header that are not supported:&lt;br /&gt;
 Accept&lt;br /&gt;
 Accept-Contact&lt;br /&gt;
 Accept-Encoding&lt;br /&gt;
 Accept-Language&lt;br /&gt;
 Alert-Info&lt;br /&gt;
 Allow&lt;br /&gt;
 Allow-Events&lt;br /&gt;
 Also&lt;br /&gt;
 Anonymity&lt;br /&gt;
 Authentication-Info&lt;br /&gt;
 Authorization&lt;br /&gt;
 Call-ID&lt;br /&gt;
 Call-Info&lt;br /&gt;
 Contact&lt;br /&gt;
 Content-Disposition&lt;br /&gt;
 Content-Encoding&lt;br /&gt;
 Content-Language&lt;br /&gt;
 Content-Length&lt;br /&gt;
 Content-Type&lt;br /&gt;
 CSeq&lt;br /&gt;
 Date&lt;br /&gt;
 Encryption&lt;br /&gt;
 Error-Info&lt;br /&gt;
 Event&lt;br /&gt;
 Expires&lt;br /&gt;
 From&lt;br /&gt;
 In-Reply-To&lt;br /&gt;
 Max-Forwards&lt;br /&gt;
 MIME-version&lt;br /&gt;
 Min-Expires&lt;br /&gt;
 Min-SE&lt;br /&gt;
 Organization&lt;br /&gt;
 P-Asserted-Identity&lt;br /&gt;
 P-Media-Authorization&lt;br /&gt;
 P-Preferred-Identity&lt;br /&gt;
 Priority&lt;br /&gt;
 Privacy&lt;br /&gt;
 Proxy-Authenticate&lt;br /&gt;
 Proxy-Authorization&lt;br /&gt;
 Proxy-Require&lt;br /&gt;
 RAck&lt;br /&gt;
 Reason&lt;br /&gt;
 Record-Route&lt;br /&gt;
 Refer-To&lt;br /&gt;
 Referred-By&lt;br /&gt;
 Reject-Contact&lt;br /&gt;
 Remote-Party-ID&lt;br /&gt;
 Replaces&lt;br /&gt;
 Reply-To&lt;br /&gt;
 Request-Disposition&lt;br /&gt;
 Require&lt;br /&gt;
 Response-Key&lt;br /&gt;
 Retry-After&lt;br /&gt;
 Route&lt;br /&gt;
 RPID-Privacy&lt;br /&gt;
 RSeq&lt;br /&gt;
 Security-Client&lt;br /&gt;
 Security-Server&lt;br /&gt;
 Security-Verify&lt;br /&gt;
 Server&lt;br /&gt;
 Service-Route&lt;br /&gt;
 Session-Expires&lt;br /&gt;
 Subject&lt;br /&gt;
 Subscription-State&lt;br /&gt;
 Supported&lt;br /&gt;
 Timestamp&lt;br /&gt;
 To&lt;br /&gt;
 Unsupported&lt;br /&gt;
 User-Agen&lt;br /&gt;
 Via&lt;br /&gt;
 Warning&lt;br /&gt;
 WWW-Authenticate&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-26T14:44:49Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. If Radius CDR is used, the attribute name will be like Telcob-generic-cdr-nameX (X will be from 1 to 8 , depends on the number of Customer defined CDR records ). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage example:&lt;br /&gt;
&lt;br /&gt;
Text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
Radius CDR: Telcob-generic-cdr-name1   TERM-IOI=xxxxxxxxxxxx , Telcob-generic-cdr-name2  P-CHARGE-INFO=xxxxxxxxxxx     &lt;br /&gt;
&lt;br /&gt;
Radius server needs to parse the received value like &amp;quot;TERM-IOI=xxxxxxxxxxxx&amp;quot; for attribute &amp;quot;Telcob-generic-cdr-name1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Limitation:&lt;br /&gt;
&lt;br /&gt;
1. The maximal number of Customer defined CDR records is 8.&lt;br /&gt;
&lt;br /&gt;
2. All of sip header in the the following list are not supported by the feature.&lt;br /&gt;
&lt;br /&gt;
3. List of SIP header that are not supported:&lt;br /&gt;
                                                Accept&lt;br /&gt;
 Accept-Contact&lt;br /&gt;
 Accept-Encoding&lt;br /&gt;
 Accept-Language&lt;br /&gt;
 Alert-Info&lt;br /&gt;
 Allow&lt;br /&gt;
 Allow-Events&lt;br /&gt;
 Also&lt;br /&gt;
 Anonymity&lt;br /&gt;
 Authentication-Info&lt;br /&gt;
 Authorization&lt;br /&gt;
 Call-ID&lt;br /&gt;
 Call-Info&lt;br /&gt;
 Contact&lt;br /&gt;
 Content-Disposition&lt;br /&gt;
 Content-Encoding&lt;br /&gt;
 Content-Language&lt;br /&gt;
 Content-Length&lt;br /&gt;
 Content-Type&lt;br /&gt;
 CSeq&lt;br /&gt;
 Date&lt;br /&gt;
 Encryption&lt;br /&gt;
 Error-Info&lt;br /&gt;
 Event&lt;br /&gt;
 Expires&lt;br /&gt;
 From&lt;br /&gt;
 In-Reply-To&lt;br /&gt;
 Max-Forwards&lt;br /&gt;
 MIME-version&lt;br /&gt;
 Min-Expires&lt;br /&gt;
 Min-SE&lt;br /&gt;
 Organization&lt;br /&gt;
 P-Asserted-Identity&lt;br /&gt;
 P-Media-Authorization&lt;br /&gt;
 P-Preferred-Identity&lt;br /&gt;
 Priority&lt;br /&gt;
 Privacy&lt;br /&gt;
 Proxy-Authenticate&lt;br /&gt;
 Proxy-Authorization&lt;br /&gt;
 Proxy-Require&lt;br /&gt;
 RAck&lt;br /&gt;
 Reason&lt;br /&gt;
 Record-Route&lt;br /&gt;
 Refer-To&lt;br /&gt;
 Referred-By&lt;br /&gt;
 Reject-Contact&lt;br /&gt;
 Remote-Party-ID&lt;br /&gt;
 Replaces&lt;br /&gt;
 Reply-To&lt;br /&gt;
 Request-Disposition&lt;br /&gt;
 Require&lt;br /&gt;
 Response-Key&lt;br /&gt;
 Retry-After&lt;br /&gt;
 Route&lt;br /&gt;
 RPID-Privacy&lt;br /&gt;
 RSeq&lt;br /&gt;
 Security-Client&lt;br /&gt;
 Security-Server&lt;br /&gt;
 Security-Verify&lt;br /&gt;
 Server&lt;br /&gt;
 Service-Route&lt;br /&gt;
 Session-Expires&lt;br /&gt;
 Subject&lt;br /&gt;
 Subscription-State&lt;br /&gt;
 Supported&lt;br /&gt;
 Timestamp&lt;br /&gt;
 To&lt;br /&gt;
 Unsupported&lt;br /&gt;
 User-Agen&lt;br /&gt;
 Via&lt;br /&gt;
 Warning&lt;br /&gt;
 WWW-Authenticate&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-26T14:40:04Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. If Radius CDR is used, the attribute name will be like Telcob-generic-cdr-nameX (X will be from 1 to 8 , depends on the number of Customer defined CDR records ). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage example:&lt;br /&gt;
&lt;br /&gt;
Text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
Radius CDR: Telcob-generic-cdr-name1   TERM-IOI=xxxxxxxxxxxx , Telcob-generic-cdr-name2  P-CHARGE-INFO=xxxxxxxxxxx     &lt;br /&gt;
&lt;br /&gt;
Radius server needs to parse the received value like &amp;quot;TERM-IOI=xxxxxxxxxxxx&amp;quot; for attribute &amp;quot;Telcob-generic-cdr-name1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Limitation:&lt;br /&gt;
&lt;br /&gt;
1. The maximal number of Customer defined CDR records is 8.&lt;br /&gt;
&lt;br /&gt;
2. All of sip header in the the following list are not supported by the feature.&lt;br /&gt;
&lt;br /&gt;
3. List of SIP header that are not supported:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-26T14:39:08Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. If Radius CDR is used, the attribute name will be like Telcob-generic-cdr-nameX (X will be from 1 to 8 , depends on the number of Customer defined CDR records ). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Usage example:&lt;br /&gt;
&lt;br /&gt;
in text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
in Radius CDR: Telcob-generic-cdr-name1   TERM-IOI=xxxxxxxxxxxx , Telcob-generic-cdr-name2  P-CHARGE-INFO=xxxxxxxxxxx     &lt;br /&gt;
&lt;br /&gt;
Radius server needs to parse the received value like &amp;quot;TERM-IOI=xxxxxxxxxxxx&amp;quot; for attribute &amp;quot;Telcob-generic-cdr-name1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
limitation:&lt;br /&gt;
&lt;br /&gt;
1. The maximal number of Customer defined CDR records is 8.&lt;br /&gt;
&lt;br /&gt;
2. All of sip header in the the following list are not supported by the feature.&lt;br /&gt;
&lt;br /&gt;
3. List of SIP header that are not supported:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-26T14:38:35Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. If Radius CDR is used, the attribute name will be like Telcob-generic-cdr-nameX (X will be from 1 to 8 , depends on the number of Customer defined CDR records ). &lt;br /&gt;
&lt;br /&gt;
Usage example:&lt;br /&gt;
&lt;br /&gt;
in text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
in Radius CDR: Telcob-generic-cdr-name1   TERM-IOI=xxxxxxxxxxxx , Telcob-generic-cdr-name2  P-CHARGE-INFO=xxxxxxxxxxx     &lt;br /&gt;
&lt;br /&gt;
Radius server needs to parse the received value like &amp;quot;TERM-IOI=xxxxxxxxxxxx&amp;quot; for attribute &amp;quot;Telcob-generic-cdr-name1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
limitation:&lt;br /&gt;
&lt;br /&gt;
1. The maximal number of Customer defined CDR records is 8.&lt;br /&gt;
&lt;br /&gt;
2. All of sip header in the the following list are not supported by the feature.&lt;br /&gt;
&lt;br /&gt;
3. List of SIP header that are not supported:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-26T14:37:43Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. If Radius CDR is used, the attribute name will be like Telcob-generic-cdr-nameX (X will be from 1 to 8 , depends on the number of Customer defined CDR records ). &lt;br /&gt;
&lt;br /&gt;
Usage example in text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
Usage example in Radius CDR: Telcob-generic-cdr-name1   TERM-IOI=xxxxxxxxxxxx , Telcob-generic-cdr-name2  P-CHARGE-INFO=xxxxxxxxxxx     &lt;br /&gt;
&lt;br /&gt;
Radius server needs to parse the received value like &amp;quot;TERM-IOI=xxxxxxxxxxxx&amp;quot; for attribute &amp;quot;Telcob-generic-cdr-name1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
limitation:&lt;br /&gt;
&lt;br /&gt;
1. The maximal number of Customer defined CDR records is 8.&lt;br /&gt;
&lt;br /&gt;
2. All of sip header in the the following list are not supported by the feature.&lt;br /&gt;
&lt;br /&gt;
3. List of SIP header that are not supported:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-26T14:36:59Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. If Radius CDR is used, the attribute name will be like Telcob-generic-cdr-nameX (X will be from 1 to 8 , depends on the number of Customer defined CDR records ). &lt;br /&gt;
&lt;br /&gt;
Usage example in text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
Usage example in Radius CDR: Telcob-generic-cdr-name1   TERM-IOI=xxxxxxxxxxxx&lt;br /&gt;
&lt;br /&gt;
                             Telcob-generic-cdr-name2  P-CHARGE-INFO=xxxxxxxxxxx     &lt;br /&gt;
&lt;br /&gt;
Radius server needs to parse the received value like &amp;quot;TERM-IOI=xxxxxxxxxxxx&amp;quot; for attribute &amp;quot;Telcob-generic-cdr-name1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
limitation:&lt;br /&gt;
&lt;br /&gt;
1. The maximal number of Customer defined CDR records is 8.&lt;br /&gt;
&lt;br /&gt;
2. All of sip header in the the following list are not supported by the feature.&lt;br /&gt;
&lt;br /&gt;
3. List of SIP header that are not supported:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-26T14:35:31Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. If Radius CDR is used, the attribute name will be like Telcob-generic-cdr-nameX (X will be from 1 to 8 , depends on the number of Customer defined CDR records ). &lt;br /&gt;
&lt;br /&gt;
Usage example in text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
Usage example in Radius CDR: Telcob-generic-cdr-name1   TERM-IOI=xxxxxxxxxxxx, Telcob-generic-cdr-name2  P-CHARGE-INFO=xxxxxxxxxxx     Radius server needs to parse the received value like &amp;quot;TERM-IOI=xxxxxxxxxxxx&amp;quot; for attribute &amp;quot;Telcob-generic-cdr-name1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
limitation:&lt;br /&gt;
&lt;br /&gt;
1. The maximal number of Customer defined CDR records is 8.&lt;br /&gt;
&lt;br /&gt;
2. All of sip header in the the following list are not supported by the feature.&lt;br /&gt;
&lt;br /&gt;
3. List of SIP header that are not supported:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-26T14:34:57Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. If Radius CDR is used, the attribute name will be like Telcob-generic-cdr-nameX (X will be from 1 to 8 , depends on the number of Customer defined CDR records ). &lt;br /&gt;
&lt;br /&gt;
Usage example in text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
Usage example in Radius CDR: Telcob-generic-cdr-name1   TERM-IOI=xxxxxxxxxxxx, Telcob-generic-cdr-name2  P-CHARGE-INFO=xxxxxxxxxxx     Radius server needs to parse the received value like &amp;quot;TERM-IOI=xxxxxxxxxxxx&amp;quot; for attribute &amp;quot;Telcob-generic-cdr-name1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
limitation:&lt;br /&gt;
&lt;br /&gt;
1. The maximal number of Customer defined CDR records is 8.&lt;br /&gt;
&lt;br /&gt;
2. All of sip header in the the following list are not supported by the feature.&lt;br /&gt;
&lt;br /&gt;
3. List of SIP header:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-26T14:34:22Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. If Radius CDR is used, the attribute name will be like Telcob-generic-cdr-nameX (X will be from 1 to 8 , depends on the number of Customer defined CDR records ). &lt;br /&gt;
&lt;br /&gt;
Usage example in text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
Usage example in Radius CDR: Telcob-generic-cdr-name1   TERM-IOI=xxxxxxxxxxxx, Telcob-generic-cdr-name2  P-CHARGE-INFO=xxxxxxxxxxx     Radius server needs to parse the received value like &amp;quot;TERM-IOI=xxxxxxxxxxxx&amp;quot; for attribute &amp;quot;Telcob-generic-cdr-name1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
limitation:&lt;br /&gt;
1. The maximal number of Customer defined CDR records is 8.&lt;br /&gt;
2. All of sip header in the the following list are not supported by the feature.&lt;br /&gt;
3. List of SIP header:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-26T12:42:09Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. If Radius CDR is used, the attribute name will be like Telcob-generic-cdr-nameX (X will be from 1 to 8 , depends on the number of Customer defined CDR records )&lt;br /&gt;
&lt;br /&gt;
Usage example in text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
Usage example in Radius CDR: Telcob-generic-cdr-name1   TERM-IOI=xxxxxxxxxxxx, Telcob-generic-cdr-name2  P-CHARGE-INFO=xxxxxxxxxxx&lt;br /&gt;
&lt;br /&gt;
limitation:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-26T12:41:39Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. If Radius CDR is used, the attribute name will be like Telcob-generic-cdr-nameX (X will be from 1 to 8 , depends on the number of Customer defined CDR records )&lt;br /&gt;
&lt;br /&gt;
Usage example in text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
Usage example in Radius CDR: Telcob-generic-cdr-name1   TERM-IOI=xxxxxxxxxxxx, Telcob-generic-cdr-name2  P-CHARGE-INFO=xxxxxxxxxxx&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-26T12:40:55Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. If Radius CDR is used, the attribute name will be like Telcob-generic-cdr-nameX (X will be from 1 to 8 , depends on the number of Customer defined CDR records )&lt;br /&gt;
&lt;br /&gt;
Usage example in text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
Usage example in Radius CDR: Telcob-generic-cdr-name1   TERM-IOI=xxxxxxxxxxxx, Telcob-generic-cdr-name2     P-CHARGE-INFO=xxxxxxxxxxx&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-26T12:40:30Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. If Radius CDR is used, the attribute name will be like Telcob-generic-cdr-nameX (X will be from 1 to 8 , depends on the number of Customer defined CDR records )&lt;br /&gt;
&lt;br /&gt;
Usage example in text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
Usage example in Radius CDR: Telcob-generic-cdr-name1   TERM-IOI=xxxxxxxxxxxx, Telcob-generic-cdr-name2   P-CHARGE-INFO=xxxxxxxxxxx&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-26T12:40:10Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. If Radius CDR is used, the attribute name will be like Telcob-generic-cdr-nameX (X will be from 1 to 8 , depends on the number of Customer defined CDR records )&lt;br /&gt;
&lt;br /&gt;
Usage example in text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
Usage example in Radius CDR: Telcob-generic-cdr-name1   TERM-IOI=xxxxxxxxxxxx&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-26T12:39:35Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. If Radius CDR is used, the attribute name will be like Telcob-generic-cdr-nameX (X will be from 1 to 8 , depends on the number of Customer defined CDR records )&lt;br /&gt;
&lt;br /&gt;
Usage example in text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
Usage example in Radius CDR: Telcob-generic-cdr-name1   TERM-IOI=xxxxxxxxxxxx &lt;br /&gt;
                             Telcob-generic-cdr-name2   P-CHARGE-INFO=xxxxxxxxxxx&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-26T12:38:51Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. If Radius CDR is used, the attribute name will be like Telcob-generic-cdr-nameX (X will be from 1 to 8 , depends on the number of Customer defined CDR records )&lt;br /&gt;
&lt;br /&gt;
Usage example in text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
Usage example in Radius CDR: Telcob-generic-cdr-name1   TERM-IOI=xxxxxxxxxxxx&lt;br /&gt;
                             Telcob-generic-cdr-name2   P-CHARGE-INFO=xxxxxxxxxxx&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-25T21:18:05Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. &lt;br /&gt;
&lt;br /&gt;
Usage example in text CDR:  Test='@{TERM-IOI}',PCV='@{P-CHARGE-INFO}'&lt;br /&gt;
&lt;br /&gt;
Usage example in Radius CDR:&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-23T18:01:00Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-23T18:00:04Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
                                                                                                &lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-23T17:59:16Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi                                                                                                P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
&lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-23T17:58:39Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
&lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-23T17:57:43Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi\r\n&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
&lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-23T17:57:07Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you &lt;br /&gt;
want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &amp;quot;cdr record&amp;quot;=&amp;quot;sip header&amp;quot;:&amp;quot;header parameter&amp;quot;, for example:&lt;br /&gt;
&lt;br /&gt;
TERM-IOI=P-Charging-Vector:term-ioi&lt;br /&gt;
P-CHARGE-INFO=P-CHARGE-INFO:all&lt;br /&gt;
&lt;br /&gt;
This example means that 2 CDR records are needed, one is TERM-IOI and other one is P-CHARGE-INFO. Each line represents a CDR record and lines are separated by a line return. In this example, CDR record TERM-IOI comes from the received SIP header &amp;quot;P-Charging-Vector&amp;quot; and use its param &amp;quot;term-ioi&amp;quot; as the value of CDR record TERM-IOI. For the second line, CDR record is P-CHARGE-INFO and it comes from received SIP header &amp;quot;P-CHARGE-INFO&amp;quot;, the parameter &amp;quot;all&amp;quot; means all of the content of sip header &amp;quot;P-CHARGE-INFO&amp;quot; will be used as the value of CDR record P-CHARGE-INFO. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-23T17:23:45Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header, enter the CDR records you want in text-area box &amp;quot;Customer CDR headers settings&amp;quot; with the format like &lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-23T15:59:21Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
For activating the feature, log on the web portal of SBC and go to Gateway-&amp;gt;CDR Options-&amp;gt;Use Customer CDR header&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-23T15:51:49Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius CDR, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-23T15:51:01Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: /* Customer defined CDR records */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
From release *******, The Customer defined CDR records is supported, you can select the SIP generic headers and their parameters as a CDR records used in TextCdr and Radius Cdr, see the list below to see the headers that are not supported by this new feature.&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-23T15:42:12Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	<entry>
		<id>https://docs.telcobridges.com/tbwiki/Call_detail_record</id>
		<title>Call detail record</title>
		<link rel="alternate" type="text/html" href="https://docs.telcobridges.com/tbwiki/Call_detail_record"/>
				<updated>2020-10-23T15:41:22Z</updated>
		
		<summary type="html">&lt;p&gt;Songtao xie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Call detail records, or CDR for short,  are the foundation of subscriber billing activities by telecom service providers. They are data records containing call-related information such as:&lt;br /&gt;
*Incoming Network&lt;br /&gt;
*Outgoing Network&lt;br /&gt;
*Calling number&lt;br /&gt;
*Called number&lt;br /&gt;
*Start time&lt;br /&gt;
*End Time&lt;br /&gt;
See this link from more details [http://en.wikipedia.org/wiki/Call_detail_record Wikipedia - Call Retail Record]&lt;br /&gt;
&lt;br /&gt;
== TelcoBridges and call detail records ==&lt;br /&gt;
TelcoBridges [[TMG800]], [[TMG3200]] and [[TMG7800]] products support the generation of call detail records in [[Text Call Detail Records (CDR)|text]] format. They also support the ability to export call detail records to a [[RADIUS]] server for accounting purposes.  Both methods can be used simultaneously.&lt;br /&gt;
&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text CDRs ]] are stored locally on the TMG units and must be extracted from the system either manually, or automatically. &lt;br /&gt;
&lt;br /&gt;
If the network supports [[RADIUS]], this method is preferred as each record will be sent in a timely manner to an external database for storage. &lt;br /&gt;
&lt;br /&gt;
[[File:CDR_High-level_drawing v2.bmp]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records Generation   ==&lt;br /&gt;
TelcoBridges CDRs are generated on a per-leg bases when the call is answered and when the call is terminated.&lt;br /&gt;
&lt;br /&gt;
In the cases illustrated below:&lt;br /&gt;
&lt;br /&gt;
'''Id''' is a 128 bits unique identifier for all the records of a same call.&lt;br /&gt;
* '''h323-conf-id''' for RADIUS and '''@{SessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
'''Original Id''' is a 128 bits unique identifier used for Call Transfer records. Each call transfer outgoing legs has its own unique '''Id''' with its '''Original  Id'' associated call legs (incoming+outgoing).&lt;br /&gt;
* '''h323-incoming-conf-id''' for RADIUS and '''@{OriginalSessionId}''' for Text CDR&lt;br /&gt;
&lt;br /&gt;
=== Case 1: Call Answered  ===&lt;br /&gt;
[[File:CDR_CallAnswer.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 2: Call Unanswered ===&lt;br /&gt;
[[File:CDR_UnansweredCall.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
=== Case 3: Call Transferred ===&lt;br /&gt;
[[File:CDR_CallTransferBleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:CDR_CallTransferCleg.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Text-based Call Detail Records ==&lt;br /&gt;
[[Text Call Detail Records (CDR)|Text-based call detail records]]&lt;br /&gt;
&lt;br /&gt;
== RADIUS Call Detail Records   ==&lt;br /&gt;
[[RADIUS]]&lt;br /&gt;
&lt;br /&gt;
== Call Detail Records in High Availability (HA) Environment ==&lt;br /&gt;
The term HA refers to a system equipped with primary and secondary host controllers (i.e. An SBC deployed in a 1+1 configuration, a TMG7800 gateway with redundant controllers or Tmedia gateways deployed in a 1+1 configuration)&lt;br /&gt;
&lt;br /&gt;
* '''Text CDR only''' Mode&lt;br /&gt;
** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR only''' Mode&lt;br /&gt;
** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** No CDR records are stored on the HA system&lt;br /&gt;
* '''Text and RADIUS CDR''' Mode&lt;br /&gt;
** CDR records will be sent out to RADIUS server(s) from the gateway application on the active host&lt;br /&gt;
** The active gateway application is also storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
** Also, each text-based CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
* '''RADIUS CDR with text CDR fallback''' Mode&lt;br /&gt;
** If the RADIUS server(s) is(are) in service&lt;br /&gt;
*** CDR records will be sent out to the RADIUS server(s) from the gateway application on the active host only&lt;br /&gt;
** If the RADIUS server(s) is(are) out of service&lt;br /&gt;
*** The active gateway application is storing text-based CDR records on the active host (i.e. non-zero bytes of CDR log file)&lt;br /&gt;
*** Each CDR record will only be present either on the primary or on the secondary host&lt;br /&gt;
*** The user needs to merge the CDR records from both the primary and secondary hosts to get all the data&lt;br /&gt;
 &lt;br /&gt;
== Customer defined CDR records   ==&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:Tmedia_Features]]&lt;br /&gt;
[[Category:RevisionV2]]&lt;/div&gt;</summary>
		<author><name>Songtao xie</name></author>	</entry>

	</feed>