All, Is there a way of rejecting a call using SIP in the Asterisk Dialplan? Essentially, I want to look at the called number and if it matches something I don't like I want to send back a SIP response which will not cause the other end to 'hunt'. The response codes that will achieve this are: 401 Unauthorized 403 Forbidden Is there a way of getting Asterisk to send back such a response in the dial plan without answering a call? Cheers, Ray
Maybe you want something like [undesireable] exten => _xxxxx,1,Playback(forbidden) exten => _xxxxx,n,Hangup Regards On 12/6/06, Ray Jackson <ray@jacksonz.net> wrote:> All, > > Is there a way of rejecting a call using SIP in the Asterisk Dialplan? > Essentially, I want to look at the called number and if it matches > something I don't like I want to send back a SIP response which will not > cause the other end to 'hunt'. The response codes that will achieve > this are: > > 401 Unauthorized > 403 Forbidden > > Is there a way of getting Asterisk to send back such a response in the > dial plan without answering a call? > > Cheers, > Ray > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Arlen Nascimento
In the old asterisk use to have an exapmle of fiance calls, so if the system knows the caller id of the caller and match, you allways get busy.. Try to get the example, but this is nothing to do with the kind of device SIP or IAX or MGCP. Regars, Carlos -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Ray Jackson Sent: Tuesday, December 05, 2006 11:27 PM To: asterisk-users@lists.digium.com Subject: [asterisk-users] Rejecting a Call All, Is there a way of rejecting a call using SIP in the Asterisk Dialplan? Essentially, I want to look at the called number and if it matches something I don't like I want to send back a SIP response which will not cause the other end to 'hunt'. The response codes that will achieve this are: 401 Unauthorized 403 Forbidden Is there a way of getting Asterisk to send back such a response in the dial plan without answering a call? Cheers, Ray _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
On Wed, Dec 06, 2006 at 10:25:29AM -0400, Arlen Nascimento wrote:> Maybe you want something like > > [undesireable] > exten => _xxxxx,1,Playback(forbidden)This requires Asterisk to pass audio to the other party. -- Tzafrir Cohen icq#16849755 jabber:tzafrir@jabber.org +972-50-7952406 mailto:tzafrir.cohen@xorcom.com http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir