Hello All…
Can someone help me do a modification to the PHP Code in FreePBX that generates the following Context: “EXT-DID” found in extensions_additional.conf
I need to be able to Assign DID’s an Account Code for CDR Billing
I have experimented makeing the changes manually…
EXISTING CODE GENERATED BY FREE PBX
exten => 800XXX1234,1,Set(FROM_DID=800XXX1234)
exten => 800XXX1234,n,Gosub(app-blacklist-check,s,1)
exten => 800XXX1234,n,Set(FAX_RX=disabled)
exten => 800XXX1234,n,Goto(ext-local,1000,1)
NEW CODE I WOULD LIKE FREEPBX TO GENERATE
exten => 800XXX1234,1,Set(FROM_DID=800XXX1234)
exten => 800XXX1234,n,Gosub(app-blacklist-check,s,1)
exten => 800XXX1234,n,Set(FAX_RX=disabled)
exten => 800XXX1234,n,Set(CDR(accountcode)=WhatEverISet)
exten => 800XXX1234,n,Goto(ext-local,1000,1)
There is a page called: page.did.php
If we can ADD and INPUT Field like the example below to LINE# 199… At this point I am stuck because I do not know PHP well… Now need this info to be STORED in the Database
<tr>
<td><a href="#" class="info"><?php echo _("Alert Info")?><span><?php echo _('DID Account Code.')?></span></a>:</td>
<td><input type="text" name="didacctcode" size="10" value="<?php echo ($alertinfo)?$alertinfo:'' ?>"></td>
</tr>
Anyone Can HELP
PLEASE PLEASE PLEASE