callaccounting.ws forum
Welcome, Guest. Please login or register.
September 10, 2010, 03:31:48 AM

Login with username, password and session length
Search:     Advanced search
Did you know Call Accounting Mate was downloaded in all 5 continents within 24 hours of being released.
438 Posts in 223 Topics by 1266 Members
Latest Member: sophia9rev
* Home Help Search Login Register
+  callaccounting.ws forum
|-+  General Category
| |-+  Asterisk Integration
| | |-+  Configuring billable extension and call direction for Asterisk-MySQL driver
« previous next »
Pages: [1] Print
Author Topic: Configuring billable extension and call direction for Asterisk-MySQL driver  (Read 6104 times)
sergey
Sr. Member
****
Offline Offline

Posts: 48


View Profile
« on: August 30, 2005, 10:17:16 AM »

Starting with version 0.6 (released 30 Aug 2005), Asterisk-MySQL driver allows to be configured to take billable extension from various sources and determine call direction from channels used to make the call.

Common steps
To configure driver properties following steps are necessary:
- open Configuration/PBX Communication page
- activate Driver tab
- select Asterisk-MySQL in the PBX Driver field
- check that there is Version 0.6 in the driver comments (in case it's not please download and install the latest version of the driver from our support site)
- activate Properties tab to get access to the driver properties

Configuring billable extension source
- to configure source of the billable extension 'Take billable extension from' field is used
- this field has 4 options:
  • Call Source - driver uses 'src' and 'dst' fields to fill user extension for outgoing and incoming calls
  • Channel - driver parses 'channel' and 'dstchannel' fields to extract user extension from there
  • Account Code - driver uses 'accountcode' field to fill user extension
  • Account/Source - driver uses 'accountcode' field to fill user extension. In case the 'accountcode' field is empty driver uses 'src' and 'dst' fields for this purpose

Configuring call direction
Driver determines call direction by examining the 'channel' and 'dstchannel' fields (this requires to setup which channels are connected to the PSTN, otherwise known as COs or Trunks in other PBXs). Knowing of what channel is connected to PSTN the driver decides of what is the call direction depending of whether PSTN appears in 'channel' or 'dstchannel' field. Thus before using the driver you need to list all channels connected to PSTN.

Driver uses a partial match when searching the channel names, i.e. it compares all symbols of the defined channel name against captured string from the string first symbol to the defined name length and ignores rest of the captured string, thus Zap/1-  will match Zap/1-1, Zap/1-2 etc. Trailing dash in the channel name pattern is necessary to avoid situations like when Zap/1 will match both Zap/1-1 and Zap/11-1. Exact pattern for channel names depends on the way your Asterisk reports the channels.

There are 2 options (2 places) to list these channels:
- CO/Trunk lines lookup table
- Driver settings on the Properties tab
Both options are equal and it's question of convenience which one you will choose (e.g. if you already have CO/Trunk lookup table filled you may prefer the 1st option).

Using CO/Trunk lines lookup table
- use Settings/Line Numbers page to fill and manage list of channels connected to PSTN
- in the driver settings (Configuration/PBX Communication Properties tab) select 'CO/Trunk table' in the Take PSTNs from' field
- every time you change something on the Settings/Line Numbers page you will have to reload the driver by opening Configuration/PBX Communication page and clicking the Save button there

Using the driver settings
- use Configuration/PBX Communication Properties tab to manage list of channels connected to PSTN
- select 'Driver Settings' in the Take PSTNs from' field, this enables PSTNs section at the bottom of the tab
- enter channel name in the New PSTN field in the section and press '>>' button to add the channel to the list; alternatively you may use <Ctrl>+<Enter> keys to add the channel
- select group of channels in the list using mouse and <Ctrl> and <Shift> keys and press '<<' button to remove channel names from the list
- after editing the list press Save button on the page to save the settings
« Last Edit: September 01, 2005, 05:57:12 AM by sergey » Logged
souza
Newbie
*
Offline Offline

Posts: 1


View Profile Email
« Reply #1 on: November 01, 2006, 06:10:23 AM »

I have installed Call Accounting Mate and configure it with Asterisk using MySQL ODBC 3.51 Driver. Am now able to see call records in view/live . My problem is the report. I have configured the call costs. How can i configure reports so that it give me the costing for a given extension for a given period of time?

SOUZA
Logged
Administrator
Administrator
Super User
*****
Offline Offline

Posts: 165


View Profile
« Reply #2 on: November 01, 2006, 09:08:00 AM »

We have a section on costing in our Startup and Installation Guide (that explains call costing) found here:
http://www.callaccounting.ws/download.htm

If you require further assistance, please email us at support@callaccounting.ws  the file c:\bill\calls.dat  (zipped) or post an example here and we will attempt to provide a resolution.

Regards,
callaccounting.ws
Logged
Zozo
Newbie
*
Offline Offline

Posts: 2


View Profile Email
« Reply #3 on: January 21, 2009, 06:17:57 AM »

Hi,

I have configured Call Accounting Mate together with asterisk. I am not able to reparse my data though and when I open the View/List .. I only see my data under "Raw Data" only the other fields like "Call Classifier" and others are empty.. The Log file has the data.. I don't know where I went wrong, can you help me out?
Logged
Administrator
Administrator
Super User
*****
Offline Offline

Posts: 165


View Profile
« Reply #4 on: September 10, 2009, 11:26:49 AM »

Asterisk CDR data is customizable and depends on your query and / or configuration. For most asterisk deployments a custom CAM driver is requried. The good news is your are collecting data. Simply email support@callaccounting.ws your c:\bill\smdrlog.txt file and they can provide you an updated driver that will parse your data.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.1 | SMF © 2006, Simple Machines LLC Valid XHTML 1.0! Valid CSS!