The problem is I do not want to answer the call but reject it during call setup with the appropriate 401 or 403 type response - similar to the way Busy() sends back a '486 Busy Here'. The problem is this causes the other end to Hunt to the next endpoint, whereas I want the other end to give up on the call which would require something like a 401 or 403 after reading the documentation. I guess Asterisk can't send specific response codes like SER can?

Cheers,
Ray

Arlen Nascimento wrote:
Maybe you want something like

[undesireable]
exten => _xxxxx,1,Playback(forbidden)
exten => _xxxxx,n,Hangup


Regards

On 12/6/06, Ray Jackson <[EMAIL PROTECTED]> 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





-----------------------------------------------------------------------------------------------
This message and any attachments contain privileged and confidential information. If you are not the intended recipient of this message, you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify the sender immediately via email and then destroy this message and any attachments.
_______________________________________________
--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

Reply via email to