Hmmm, perhaps I am the only one who doesn't trust their telco (I doubt it) but... I have the rates that I currently pay my telco, and would like to extract my CDR's and add an additional field displaying the actual price paid for the call. I would like to do this based on destination phone number, and outgoing channel. However, I have a few difficulties: 1) I pay a different rate for calls to Telstra mobiles as I do to any other mobile, yet *all* mobile numbers are 04xx xxx xxx and there is no way (that I know of) to decide which carrier the number belongs to just from the number?? 2) I pay a different rate for national (std) calls depending on the distance to the destination, as well as whether or not the destination number is in a capital city (since I always am, that side doesn't matter). ie, calls to someone 85km away might be 20c/min while calls to someone 185km away is 30c/min.... For now, I just assume that every number not within my area code is more that 185km away and is in a capital city. This should be approximately correct, but I would like to get something more accurate than that. Also, I pretend that all mobile calls are non-telstra, but again, that isn't 100% accurate. Anyone have any suggestions etc? PS, I have seen: http://www.voip-info.org/wiki-Asterisk+addon+rate-engine http://www.voip-info.org/tiki-index.php?page=Asterisk%20callingcard Though these are things I will want to look into further, they seem to be aimed more at deciding what method to use for calling and hence the rate that will be charged, as opposed to being able to tell which rate even applies. Thanks, Adam
> -----Original Message----- > From: asterisk-users-admin@lists.digium.com > [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of > Adam Goryachev > Sent: Tuesday, 1 June 2004 12:29 PM > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] Billing and CDR's> Hmmm, perhaps I am the only one who doesn't trust their telco (I doubt > it) but...I was just thinking "I don't trust my telco either", and then I realised we're both in Australia and we both probably use the "big T" ;-)> 1) I pay a different rate for calls to Telstra mobiles as I do to any > other mobile, yet *all* mobile numbers are 04xx xxx xxx and > there is no > way (that I know of) to decide which carrier the number > belongs to just > from the number??Have a look at http://www.mrvfone.com.au/vfone/pre.htm. Not always the case now that mobile number portability is in place, but it's probably correct in most cases. The rest of your message I'm not too sure about, but that should help with mobiles. -Shaun
Hi!> I have the rates that I currently pay my telco, and would like to > extract my CDR's and add an additional field displaying the actual price > paid for the call. I would like to do this based on destination phone > number, and outgoing channel.Please look at this page for "CDRtool" http://www.voip-info.org/wiki-Asterisk+GUI and report back about your findings especially concering the "real time rate engine". I guess a lot of people on asterisk-users are intersted in this, so your feedback will be very welcome. I have a similar problem in determining Europe-wide which is a fixed-line number, and which is a mobile number. I do have a list of mobile pre- fixes, but it is long and I am not sure if it is complete. Moreover, with EU regulation that requires "number portabiliby" we have the same issue here: You can change your mobile provider and keep your number, i.e. we now apparently don't have a means to find out which number is on which network. Cheers, Philipp