Prefix matching in custom rate book

Web based, multi-user, Telephone Management System with budget management and barring control

Moderators: Leon van Heerden, Luanda_Junzi, Belinda Frick, Lee Hendricks

Prefix matching in custom rate book

Postby Dcdata » Tue Jul 12, 2016 3:57 pm

Good day guys,

I have an urgent query - please may I ask for your assistance? This issue refers to version 1.1.1.13 of TNG for Asterisk

The specific entries in question from my custom rate book are as follows:

268=S, 0.0144, 0, I, Swaziland
2686=S, 0.0648, 0, I, Swaziland-Mobile
2687=S, 0.0648, 0, I, Swaziland-Mobile

For the Swaziland number of 268760XXXXX, using TNG's call cost calculator TNG indicates that 1 minute will cost R 0.98, which is R 0.86 excl VAT.
This indicates that TNG is using the "268=S" (Swaziland) entry in my custom ratebook rather than matching "2687=S" (Swaziland-Mobile).

My query is - why is the non-specific entry based on a prefix of 3 digits matching instead of the more specific 4 digit prefix entry?

Many thanks.
Dcdata
 
Posts: 73
Joined: Mon Apr 08, 2013 2:30 pm

Re: Prefix matching in custom rate book

Postby Luanda_Junzi » Tue Jul 12, 2016 9:55 pm

Hi David

Thank you for your query.
Bellow are Swaziland area codes and mobile codes.

In your rate book ini file you didn't specify the correct code.

All SZ codes in tng
Code: Select all
268,SWAZILAND,SZ,
2681,SWAZILAND,SZ,
2682,SWAZILAND,SZ,
2683,SWAZILAND,SZ,
2684,SWAZILAND,SZ,
2685,SWAZILAND,SZ,
2686,SWAZILAND - MOBILE,SZ,
26861,SWAZILAND - MOBILE,SZ,
26862,SWAZILAND - MOBILE,SZ,
26863,SWAZILAND - MOBILE,SZ,
26864,SWAZILAND - MOBILE,SZ,
26865,SWAZILAND - MOBILE,SZ,
26866,SWAZILAND - MOBILE,SZ,
26867,SWAZILAND - MOBILE,SZ,
26868,SWAZILAND - MOBILE,SZ,
26869,SWAZILAND,SZ,
2687,SWAZILAND,SZ,
2688,SWAZILAND,SZ,
2689,SWAZILAND,SZ


Mobile
Code: Select all
26861,SWAZILAND - MOBILE,SZ,
26862,SWAZILAND - MOBILE,SZ,
26863,SWAZILAND - MOBILE,SZ,
26864,SWAZILAND - MOBILE,SZ,
26865,SWAZILAND - MOBILE,SZ,
26866,SWAZILAND - MOBILE,SZ,
26867,SWAZILAND - MOBILE,SZ,
26868,SWAZILAND - MOBILE,SZ



268=S, 0.0144, 0, I, Swaziland
2686=S, 0.0648, 0, I, Swaziland-Mobile
2687=S, 0.0648, 0, I, Swaziland-Mobile


You have 4 code numbers and the exchange file have 5 code numbers

Regards

Luanda
Luanda_Junzi
 
Posts: 142
Joined: Wed Feb 25, 2015 2:30 pm


Return to TNG

Who is online

Users browsing this forum: No registered users and 1 guest

cron