Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Asterisk2Billing and agi-confs

Status
Not open for further replies.

DevPlan

Technical User
Nov 25, 2002
70
DK
I have a peculiar question in regards to A2Billing which I haven't gotten an answer yet in the Asterisk2Billing forum and I thought maybe someone here has an idea, if the following could be setup:

I have setup extension 222 in extensions_custom.conf for outbound prepaid pin-code authorization so that the caller requires to use a pin-code and it works well:

Code:
[from-internal-custom]
exten => 222,1,Answer
exten => 222,2,Wait,2
exten => 222,3,DeadAGI(a2billing.php|1)
exten => 222,4,Wait,2
exten => 222,5,Hangup

Then I have setup certain extensions which can call outbound without using pin-codes, using the CallerID authentication and this also works.

However, I would like that for those extensions, the caller doesn't get the voice prompt of how much credit there is remaining (as this is used for postpaid cards).

This should be possible to do with a custom agi-conf, for example:

Code:
exten => _X.,1,DeadAGI(a2billing.php|2)
exten => _X.,2,Hangup
.... and in this agi-conf2 section I set the various entries that deal with voice-prompts to "NO".

But I don't know how to parse the agi-conf2 section, based on a authenticated CallerID, using the same a2billing extension (222) as above.

Anybody, who can shed some light into this and give some advice, of how this could be accomplished?

Professional, worry-free web-hosting:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top