Hello all, We would like to "inform" the caller of the reason for a failed call. For example, when we get a "486 Busy Here", the system accepts it and in the CLI we see "Everyone is busy/congested at this time". Can we use this data to play an announcement to the caller? Thank you in advance for your help. Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101020/473ff49e/attachment-0001.htm
_____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of VoIP Question Sent: Wednesday, October 20, 2010 8:51 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] Using Calls Rejection Reasons Hello all, We would like to "inform" the caller of the reason for a failed call. For example, when we get a "486 Busy Here", the system accepts it and in the CLI we see "Everyone is busy/congested at this time". Can we use this data to play an announcement to the caller? Thank you in advance for your help. Michael Yes. You can use the built-in options and sounds like this: Exten => 123,1,dial(SIP/100,30,m) Exten => 123-BUSY,1,playback(all-reps-busy) Exten => 123-BUSY,n,hangup Exten => 123-CONGESTION,1,playback(all-circuits-busy-now) Exten => 123-CONGESTION,n,hangup Or you can get "fancy" and interpret the return and play back a verbatim message through swift/Cepstral. That's another post. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101020/01560d31/attachment.htm
Yes, look at DIALSTATUS variable that Asterisk set when use DIAL Application. Regards - Bakko -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101020/6f1738fe/attachment.htm
Thank you guys for the quick answer. To complicate it a bit, is there a way to extract the rejection reason (in this case 486) without using the DIALSTATUS and to use it? It can be useful for rejections that are not handled by DIALSTATUS. On Wed, Oct 20, 2010 at 4:05 PM, bakko <asannucci at gmail.com> wrote:> Yes, > > look at DIALSTATUS variable that Asterisk set when use DIAL Application. > > Regards > > - Bakko > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101020/df7027fd/attachment.htm