Ticket #317 (closed Patches: invalid)

Opened 6 years ago

Last modified 5 years ago

accountcode for DID inbound routing

Reported by: andrew_antipin Assigned to:
Priority: minor Milestone: 2.2
Component: None Version: None
Keywords: Cc:
Confirmation: SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description (Last modified by wozto1s)

would be nice to store accountcode for inbound routing 
CDR record. Better if we could to store this name from 
added "inbound route config" accountcode field, but I don't 
know where can be stored then DID number oneself in 
CDR record, so I store accountcode=DID number to 
accountcode field for billing purpose.

(1.10.009 version)
/var/www/html/admin/did.php

94d93
<               $addarray[] = array('ext-
did',$account,$i++,'SetAccount',$accoun
t,'','0');

and need write updating script 
AMP/upgrades/1.10.009/upgrade_did.php
like
AMP/upgrades/1.10.008beta3/upgrade_did.php

only with changes:

row18:
$sql = "UPDATE extensions SET priority = '5' WHERE 
context = 'ext-did' AND extension = '".$value[0]."' AND  
priority =  '4' LIMIT 1";

row23:
$sql = "INSERT INTO extensions (context, extension, 
priority, application, args, descr, flags) VALUES ('ext-
did', '".$value[0]."', '4', 'SetAccount', $value[0]."', '' , '0')";

Change History

04/15/06 21:19:08 changed by wozto1s

  • owner deleted.
  • status changed from assigned to new.
  • description changed.
  • milestone set to 2.2.

12/03/06 11:40:32 changed by p_lindheimer

  • status changed from new to closed.
  • resolution changed from None to invalid.

this is no longer valid to any modern freepbx implementation. Feel free to open an accountcode feature request to set them.

01/08/07 13:46:44 changed by

  • milestone deleted.

Milestone 2.2 deleted

01/08/07 15:03:54 changed by vgster

  • milestone set to 2.2.