[asterisk-users] Rejecting a Call
Eric "ManxPower" Wieling
eric at fnords.org
Wed Dec 6 13:19:09 MST 2006
Ray Jackson wrote:
> 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?
In Asterisk 1.2 and later you can do a Hangup(CAUSE) where the CAUSE is
an Asterisk HANGUPCAUSE. Asterisk should translate this to a SIP return
code.
More information about the asterisk-users
mailing list