Ticket #1110 (new Feature Requests)

Opened 7 years ago

Last modified 4 years ago

Additional Function for DID Accounting

Reported by: alexpalmer Assigned to:
Priority: minor Milestone: Undetermined
Component: Core Version:
Keywords: SetAccount Cc:
Confirmation: Unreviewed Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

Ability to add an Account Code to an incoming route:

in extensions.class.php i added:

class ext_setaccount {
	var $value;
	
	function ext_setaccount($value) {
		$this->value = $value;
	}

	function output() {
		return "SetAccount(".$this->value.")";
	}
}

then added in functions.inc.php (of modules/core)

$ext->add($context, $exten, '', new ext_setaccount($exten.'-in'));

I need someone to help me add an account field on the actual incoming route DID page

Attachments

didaccounting-1.0.tgz (3.0 kB) - added by alexpalmer on 09/20/09 22:00:01.
DID Accounting Module 1.0

Change History

09/01/06 00:28:48 changed by p_lindheimer

To the DEV that acts on this:

if we choose to add this, we should make sure that it is added to inbound routing as well as direct did routing on the extensions and users pages. We want to assure that these keep in sync so that the feature set is consistent. (e.g. I already added fax and privacy manager handling to direct did routing that was only in inbound routing before). It also warrants a comment. If implemented there will probably be a check box indicating whether to use account code or not. On the direct did routing, it should either choose the account code specificied in the associated device details (if using page.extensions.php) as default. (Or in page.users.php, if the defice is a fixed device, may want to do the same from the associtated fixed device).

(follow-up: ↓ 3 ) 07/24/08 22:02:40 changed by ryppn

  • confirmation set to Unreviewed.
  • engine_version changed.
  • svn_rev changed.
  • milestone set to Cut Line.

(in reply to: ↑ 2 ) 09/16/09 20:55:10 changed by alexpalmer

Any chance that something along these lines can be introduced in 2.5/2.7?

I'll gladly do the legwork, but want to make sure the feature is added with others input.

09/16/09 21:46:29 changed by mbrevda

Perhaps this would be best implemented as a module, similarly to languages, queue priorities, and set caller id.

09/20/09 12:28:38 changed by alexpalmer

Here's the module. It has been tested for incoming routes without any caller id parameters.

Ie. 519XXXXXXX/Any CID will work, but 519XXXXXXX/519XXXXXXy will not

DID->Accounts are set in the DID Accounting page, and displayed on the Incoming Route page via module hooks.

09/20/09 22:00:01 changed by alexpalmer

  • attachment didaccounting-1.0.tgz added.

DID Accounting Module 1.0

09/21/09 03:59:28 changed by mbrevda

see also: #3901