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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20180508/7709d359/attachment.html>
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: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Mike Sent: Tuesday, May 08, 2018 1:46 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' <asterisk-users at lists.digium.com> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20180508/ed19594c/attachment.html>
Rafael dos Santos Saraiva
2018-May-09 11:38 UTC
[asterisk-users] Reject call from Asterisk dialplan
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] <rafaelsnsa at gmail.com> 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 <alex.lopez at opsys.com>:> 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:* asterisk-users-bounces at lists.digium.com [mailto:asterisk-users- > bounces at lists.digium.com] *On Behalf Of *Mike > *Sent:* Tuesday, May 08, 2018 1:46 PM > *To:* 'Asterisk Users Mailing List - Non-Commercial Discussion' < > asterisk-users at lists.digium.com> > *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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20180509/5847b925/attachment.html>