Hi I guess is not possible send specific SIP response from dialplan in Asterisk, but you can send ISDN hangupcauses. In this case, to reject the call you can use Hangup(21). To do this remotly, my suggestion is create a context that pickup the call and execute hangup with cause 21.
[image: Sua Foto] <[email protected]> Rafael S. Saraiva Porto Alegre - RS | Mobile: (51) 981-747-956 <http://br.linkedin.com/pub/rafael-saraiva/52/aab/230> 2018-05-08 15:12 GMT-03:00 Alexander Lopez <[email protected]>: > Use a script to redirect the ringing call into an extension that returns > the proper sip result, and hangup. > > > > You could also add logic to alert or log that call. > > > > > > *From:* [email protected] [mailto:asterisk-users- > [email protected]] *On Behalf Of *Mike > *Sent:* Tuesday, May 08, 2018 1:46 PM > *To:* 'Asterisk Users Mailing List - Non-Commercial Discussion' < > [email protected]> > *Subject:* [asterisk-users] Reject call from Asterisk dialplan > > > > Hi, > > > > I’m looking for a way to reject a call remotely using the Asterisk > dialplan. > > > > For example, phone A is ringing – I’m at the other end of the room next to > phone B, and I want to reject the call to Phone A by dialing an extension. > > > > I’m basically trying to reproduce the Polycom “reject” action but through > the Asterisk dialplan. > > > > Reasons: > > 1. It would allow me to log through Asterisk who’s rejecting calls > 2. It would allow rejecting calls from another phone (see above > scenario) > > > > I thought there could be a “SendSIPCode 486 to SIP peer phoneA” > application, but a quick scan of the documentation does not bring obvious > answers. > > > > Mike > > > > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > Check out the new Asterisk community forum at: https://community.asterisk. > org/ > > New to Asterisk? Start here: > https://wiki.asterisk.org/wiki/display/AST/Getting+Started > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
