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:
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:
.... 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:
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
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: