Configure Asterisk to give off the speeddial as 2 records,
see example of master.csv
- Code: Select all
""2278 FA Control Room"
<2278>","2278","5049","from-internal","SIP/2278-000003e7","Local/8990713950219@from-internal-5f86,1","Dial","Local/8990713950219@from-internal/n|","2010-07-07 10:31:04","2010-07-07 10:31:06","2010-07-07
10:31:57","53","51","ANSWERED","DOCUMENTATION","","1278491464.2438",""
""2278 FA Control Room"
<2278>","2278","8990713950219","from-internal","Local/8990713950219@from-internal-5f86,2","DAHDI/62-1","Dial","DAHDI/62/770713950219|300|","2010-07-07 10:31:04","2010-07-07 10:31:06","2010-07-07
10:31:57","53","51","ANSWERED","DOCUMENTATION","","1278491464.2440",""
""E2273 Bagplant DECT"
This will translate to raw.txt in the TNG logs folder,
see example
- Code: Select all
07-07-2010|10:31:04|2278|5049|O||00|00|51|Local/8990713950219|O_ANSWERED|0|2||||2278 FA Control Room||
07-07-2010|10:31:04|2278|8990713950219|O||00|00|51|DAHDI/62|O_ANSWERED|0|2||||2278 FA Control Room||
Field explanation of pip string:
- Code: Select all
Date|Time|Ext|Number|IO|PINCODE|Hour|Min|Seconds|Line|Action|Pulses|RingTime|Reference|DID|MYGROUP|MyUSER|Account|
Note:
The difference between this 2 call records are the telephone
number and the trunk number. You need to 'delete' the 'Local'
trunk record and setup the trunk of the other record as per
costing requirements, else it will default cost to the default
ratebook.
TNG configuration:
To get the number, in this case '8990713950219', to cost
correct use number masking to remove the prefix.
TNG Home Page -> Number Masking.
Click on link to see example.
The call record with local as trunk must be 'deleted',
else it will double cost.
Options:
Use the plugin rule to do this.
Set the speeddial trunk numbers to ratebook DO_NOT_COST.
This is configured under 'Trunk Configuration'. You will need
the trunk lines for each speeddial number (see call list page
or rawdata file in tng logs folder to get trunk numbers).
Create a file named rules.ini and save in the tng plugins folder.
Paste the following in side
- Code: Select all
[PluginRules]
Internal=1
0=LINE|STARTS|Local|<DELETE RECORD>|TRUE
NOTE: by default the rules is not applied to internal calls. You need to set as per example above:
Internal=1
Plugin rules only apply to internal calls from version 1.0.6.0 and newer.
Note that some Asterisk PABX units gives the line off as " Local/".
To make provision for this space in front of the trunk number also add a rule:
- Code: Select all
1=LINE|STARTS| Local|<DELETE RECORD>|TRUE
If TNG is set to 'write rawdata to raw.txt' you can see the translated string, for example:
- Code: Select all
23-03-2011|09:16:07|235|#108|O||00|01|35| Local/0317003061|O_ANSWERED|0|0||||Nicolas| |