Steven Sokol
2004-May-26 09:26 UTC
[Asterisk-Users] Rejecting Calls (SIT Tone/Invalid) Across PRI
Question regarding a callback application: I have a client who wants to allow callers to dial a DID which connects over a PRI to Asterisk. Asterisk will be analyzing the ANI data from each call to that DID and if it recognizes the ANI, it needs to effectively return an "Invalid Number" or "Not Found" some-such message across the PRI to prevent the user from being billed. Being a callback app, the system will then queue a callback to the party. The question is... How do I make Asterisk tell the network to disregard the billing and indicate to the caller that the callback has been scheduled? Is this possible? Is this legal? My fallback is simply to not answer the call if the ANI is recognized, then queue the callback when the incoming attempt terminates (i.e. the caller hangs up). Steven Sokol Owner/Manager Sokol & Associates, LLC Phone: 816.822.1807 IaxTel: 700.613.9004 Web: http://www.sokol-associates.com
Tobias Jönsson
2004-May-27 11:54 UTC
[Asterisk-Users] Rejecting Calls (SIT Tone/Invalid) Across PRI
On Wed, 26 May 2004, Steven Sokol wrote:> I have a client who wants to allow callers to dial a DID which connects > over a PRI to Asterisk. Asterisk will be analyzing the ANI data from > each call to that DID and if it recognizes the ANI, it needs to > effectively return an "Invalid Number" or "Not Found" some-such message > across the PRI to prevent the user from being billed.I have been looking for the same thing but chan_zap seems to be programmed to acknowledge all incoming calls that there is a matching entry in extension.conf for, which means ringing tones will be given before starting the execution of application commands. But if there is no entry for a call it will be rejected. For example: exten => 123456/456789,1,Hangup exten => 123456/789012,1,Hangup Calls from 456789 or 789012 will be hangup after one ringing tone (you could run a AGI script here). Calls from other numbers will be rejected immediately. Regards, Tobias J?nsson