Re[2]: Ascend Max Dial Back Rates and Charges

Richard J. Sears ( (no email) )
Thu, 27 Feb 1997 16:04:34 -0800

Dale,

It took us awhile to figure this one out so bear with me a minute. In
the Ascend detail log it is not what we are looking for to indicate the
MAX has made an outbound call, it it what we are NOT looking for.

After many months of fighting with how to figure out when the MAX made a
call out, and with Ascend telling us that there was no way to track it
we finally hit upon the following way of checking it-

When the MAX receives an inbound call the detail shows the following:

Sat Feb 1 16:10:28 1997
User-Name = "algeo-p25"
NAS-Identifier = 207.67.206.6
NAS-Port = 10107
Acct-Status-Type = Start
Acct-Delay-Time = 0
Acct-Session-Id = "223645540"
Acct-Authentic = RADIUS
Caller-Id = "6199311680"
Client-Port-DNIS = "7386949"
Framed-Protocol = PPP
Framed-Address = 207.67.207.113

The stop record looks like this:

Sat Feb 1 16:10:59 1997
User-Name = "algeo-p25"
NAS-Identifier = 207.67.206.6
NAS-Port = 10107
Acct-Status-Type = Stop
Acct-Delay-Time = 0
Acct-Session-Id = "223645540"
Acct-Authentic = RADIUS
Acct-Session-Time = 31
Acct-Input-Octets = 724
Acct-Output-Octets = 1128
Acct-Input-Packets = 33
Acct-Output-Packets = 37
Ascend-Disconnect-Cause = 2
Ascend-Connect-Progress = 60
Ascend-Data-Rate = 64000
Ascend-PreSession-Time = 1
Ascend-Pre-Input-Octets = 193
Ascend-Pre-Output-Octets = 197
Ascend-Pre-Input-Packets = 8
Ascend-Pre-Output-Packets = 8
Ascend-First-Dest = 207.67.206.70
Ascend-Multilink-ID = 42
Ascend-Num-In-Multilink = 0
Caller-Id = "6199311680"
Client-Port-DNIS = "7386949"
Framed-Protocol = PPP
Framed-Address = 207.67.207.113

Now this is compared to an outbound call by the max, the start record
looks like this:

Wed Feb 7 10:18:01 1996
User-Name = "meadows"
NAS-Identifier = 207.67.206.6
NAS-Port = 10104
Acct-Status-Type = Start
Acct-Delay-Time = 0
Acct-Session-Id = "224010686"
Acct-Authentic = Local
Framed-Protocol = MPP
Framed-Address = 207.67.207.225

And immediately following is the stop record that loks like this:

Wed Feb 7 10:18:01 1996
User-Name = "meadows"
NAS-Identifier = 207.67.206.6
NAS-Port = 10104
Acct-Status-Type = Stop
Acct-Delay-Time = 0
Acct-Session-Id = "224010686"
Acct-Authentic = Local
Acct-Session-Time = 1
Acct-Input-Octets = 183
Acct-Output-Octets = 418
Acct-Input-Packets = 8
Acct-Output-Packets = 10
Ascend-Disconnect-Cause = 185
Ascend-Connect-Progress = 60
Ascend-Data-Rate = 0
Ascend-PreSession-Time = 0
Ascend-Pre-Input-Octets = 183
Ascend-Pre-Output-Octets = 200
Ascend-Pre-Input-Packets = 8
Ascend-Pre-Output-Packets = 8
Ascend-Multilink-ID = 389
Ascend-Num-In-Multilink = 0
Framed-Protocol = MPP
Framed-Address = 207.67.207.225


As you can see the only way to track an outbound (other than the obvious
very short on-line time) is the lack of the Client-Port-DNIS = "7386949"
entry in the start and stop records.

We currently track that with the following part of our tracking perl
script:

while (<DETAIL>) {
next if /\tAs/;

$dnis = 1 if /DNIS/;

if (!/^\t/) {
if ($looking eq 'end' && $user) {
printf OUTFILE ("$date %-s %s %d\n",
'"' . $user . '"',
$dnis,
$seconds);

if (++$count == 200) {
$count = 0;
$pos = tell DETAIL;
$| = 1;
printf "\r%5.2f%% done", (100.0 * $pos/$length);
}
}

This results in an entry like this upon distallation:

1997-02-10 13:10:12 "visionpro-p50" 1 776
1997-02-10 13:13:27 "mbrunson" 1 321
1997-02-10 13:14:01 "microm-p50" 1 1246
1997-02-10 13:14:56 "visionpro-p50" 1 129
1997-02-10 13:15:20 "microm-p50" 1 88
1997-02-10 13:17:53 "visionpro-p50" 0 1

The script sets DNIS = 1 if it finds this line - Client-Port-DNIS =
"7386949" in the stop record and it gets written to the digest file as a
1 if it was a call in or 2 if it was a dial out.

After watching our phone bill, we know that this is 100% accurate.

My question is if there is any way for Emerald to do this type of
tracking and reporting. We currently charge 5 cents for each out bound
call.

REALLY looking forward to your input :-)

On Thu, 27 Feb 1997 10:00:42 -0800
"Dale E. Reed Jr." <daler@iea.com> wrote:

> Richard J. Sears wrote:
> >
> > Each time we call the client we charge them 5 cents. We currently track call
> > back items using perl scripts and I was wondering if there is an easy
> > (or hard :-) ) way to get Emerald and RadiusNT to tract this so we can
> > then add the total to the customers next bill automatically.
>
> Have you looked to see if there is anything specific about the
> Accounting log the max sends when YOU call out? If there was, then
> this would be possible.
>
> --
> Dale E. Reed Jr. (daler@iea.com)
> _________________________________________________________________
> IEA Software, Inc. | RadiusNT, Emerald, and NT FAQs
> Internet Solutions for Today | http://www.emerald.iea.com
>
> ----------------------------------------------------------
> Emerald Mailing List listserver@emerald.iea.com
>

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=
Richard J. Sears
System Administrator
Web Communications Concepts
rsears@webcc.net