Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to send CDR billing via TCP/IP to a Linux/Unix or Windows host?

CDR / SMDR Data

How to send CDR billing via TCP/IP to a Linux/Unix or Windows host?

by  jcpierri  Posted    (Edited  )
This configuration was tested on Software Load: R011i.03.0.526.5 and Software Load: R012i.01.1.414.1, so, keep in mind it may not work under previous or later versions (or even any other version!).

Definity:

(add an entry for your billing linux host)
CHANGE NODE-NAMES IP
LINUX-HOST [color blue]192.168.0.50[/color]

(point your box which host and port it should send billing)
CHANGE IP-SERVICES
CDR1 C-LAN LINUX-HOST [color red]50000[/color]

(tell your box how to generate CDR there)
CHANGE SYSTEM-PARAMETERS CDR
(page-1)
Primary Output Format: customized
Primary Output Endpoint: CDR1
(page-2)
1: date
2: space
3: time
4: space
5: sec-dur
6: space
7: clg-num/in-tac
8: space
9: in-trk-code
10: space
11: dialed-num
12: space
13: code-used
14: return
15: line-feed

On Linux/Unix hosts:

(catch the feed from your Definity box)
$ netcat -l -p [color red]50000[/color] >> my-billing.txt &

(watch while your billing grows)
$ tail -f my-billing.txt

(If your Linux or Unix dont already have the Netcat utility, you can download it from (*) http://www.securityfocus.com/data/tools/nc110.tgz)

On Windows hosts:

(catch the feed from your box)
$ nc -l -p [color red]50000[/color] -d >> my-billing.txt

(Netcat for Windows systems can be downloaded from (*) http://www.securityfocus.com/data/tools/nc11nt.zip)


NOTE: I noticed the ocasional generation of some nasty [color green]^@^@^@[/color] characters. Until now I have not found a way to stop generating them, so, I'm just filtering them out in Linux itself, with cat my-billing.txt | tr -d '\0' > my-billing-beauty.txt.

(*) Thanks to [color blue]manfmmd[/color] for the updated netcat links.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top