I didn't debug it, but this should do what you want:
Read(ACCOUNTCODE,prompts/please_enter_the_account_code,10,,2,5)
Set(CDR(accountcode)=${ACCOUNTCODE})
You just need to make sure you have a recording called
please_enter_the_account_code in the folder prompts/ off the
/var/lib/asterisk/sounds folder
so . . . thirsty . . .
> -----Original Message-----
> From: Henry Coleman [VoIP-PBX.ca] [mailto:[EMAIL PROTECTED]
> Sent: September 22, 2006 1:15 PM
> To: TAUG - Tech
> Subject: [on-asterisk] Yet more functionality required
>
> Hi all, I'm looking for a non-verified account code feature
> -- The concept is simple, my client (a lawyer) dials a
> feature code *xx is then asked to assign an account number
> (6-10 digits) to this call Asterisk returns a dial tone and
> the client is able to dial-out in the usual way ie 9+ number.
> This account number is then saved with the CDR It doesn need
> to be verified, and is only required to track the number of
> calls and time spent on specific accounts If the account
> number can appear in the freepbx "reports" or the ARI app
> this would be great !
>
> I like short and sweet, so the shortest and most elegant
> solution gets a
> 2 beer bounty at Toby's
>
> A. "Okay, so the answer is 42, now what was the question?"
> Q. "The question was.... What is the meaning of life the
> universe and everything ?"
>
> Passage from: THGTTG
>
> Henry L.Coleman [ VoIP-PBX ] Tel.1 866 415-5355
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.12.7/454 - Release
> Date: 21/09/2006
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.12.8/455 - Release
> Date: 22/09/2006
>
>
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: 22/09/2006