Hello,
I'm willing to implement call barring for incoming and outgoing calls and I
would like to discuss it with the list first, since I think It can't be
implemented in a 'natural way' and I will need to use agi scripting -
database.
Process would be:
1. incoming calls
priority 1, call incoming.agi, select all the blocked cli's for the
called user, if caller is on the list -> congestion
2. outgoing calls
priority 1, call outgoing.agi, select all the blocked numbers for the
caller user, if number dialled is on the list -> hang-up or play message.
Does It sound like correct? What do you think about execute a script for every
call, query the database each time..? Do you think It'll overcharge the
system?
Thanks a lot and kind regards,
Victor.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20050520/99b0b8f6/attachment.htm
> Does It sound like correct?The AGI should set an Variable to indicate if to block or not. > What do you think about execute a script for> every call, query the database each time..? Do you think It'll > overcharge the system?Usually that should not be a problem since it is run at call initiation only. How many call-initiations do you have per second? If it is about one or more you should redesign your AGI: Build it as an native executable use the Fast-Agi-Extension and ommit the DB-Connection (recompile on changed block list). Elmar
I was thinking in use realtime asterisk to decide wether to call the agi or not. I mean, add the agi in the first position of the dialplan or delete it for each user. So I can activate - desactivate it and call the script only when necessary. Thanks, Victor. ------------------------------ Message: 18 Date: Fri, 20 May 2005 14:39:44 +0200 From: Elmar Haneke <elmar@haneke.de> Subject: Re: [Asterisk-Users] call barring To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users@lists.digium.com> Message-ID: <428DDA90.50800@haneke.de> Content-Type: text/plain; charset=us-ascii; format=flowed> Does It sound like correct?The AGI should set an Variable to indicate if to block or not. > What do you think about execute a script for> every call, query the database each time..? Do you think It'll > overcharge the system?Usually that should not be a problem since it is run at call initiation only. How many call-initiations do you have per second? If it is about one or more you should redesign your AGI: Build it as an native executable use the Fast-Agi-Extension and ommit the DB-Connection (recompile on changed block list). Elmar ------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050520/51cdbf99/attachment.htm