[asterisk-users] Send 503 or 603 error after answer()
Hello list. Is it possible in the Asterisk dialplan to send a 503 Service Unavailable of 603 Decline after having answered the call with Answer() in the dialplan ?? Suppose that I first want to check the call in a MySQL-database, while I put some MoH, and then let the call go through or send some error to my ITSP where the call comes from. I know there is something like 'early media', but isn't it good practise to always have Answer() in the dialplan ? Another thing why I want to have this 503 or 603 after having Answered the call : my ITSP offers the ability to have a backup number for the call if it can't get through. If I send the call to a queue and there is nobody in the queue at that moment, I want to send a sort of error so my ITSP will send the call to a backup number, like my cellphone. If I send the call myself to my cellphone, I will have to pay big time and it's a waist of bandwidth... Kind regards, Jonas. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Send 503 or 603 error after answer()
jonas kellens wrote: Is it possible in the Asterisk dialplan to send a 503 Service Unavailable of 603 Decline after having answered the call with Answer() in the dialplan ?? No. Answer generates (for a SIP channel) a '200 OK', which is a final response. You cannot send any further final responses for that INVITE. You need to not answer the call until you really want to answer it and keep it. -- Kevin P. Fleming Digium, Inc. | Director of Software Technologies 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA skype: kpfleming | jabber: kpflem...@digium.com Check us out at www.digium.com www.asterisk.org -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Send 503 or 603 error after answer()
Thank you for your answer. So if I use early media (not putting answer() at the beginning of my dialplan), how can I send a 503 or 603 from the dialplan ?? Kind regards, Jonas. On Tue, 2010-01-12 at 12:05 -0600, Kevin P. Fleming wrote: jonas kellens wrote: Is it possible in the Asterisk dialplan to send a 503 Service Unavailable of 603 Decline after having answered the call with Answer() in the dialplan ?? No. Answer generates (for a SIP channel) a '200 OK', which is a final response. You cannot send any further final responses for that INVITE. You need to not answer the call until you really want to answer it and keep it. -- Kevin P. Fleming Digium, Inc. | Director of Software Technologies 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA skype: kpfleming | jabber: kpflem...@digium.com Check us out at www.digium.com www.asterisk.org -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Send 503 or 603 error after answer()
jonas kellens wrote: So if I use early media (not putting answer() at the beginning of my dialplan), how can I send a 503 or 603 from the dialplan ?? By using the proper method of canceling the call... Busy, Congestion, or an explicit cause code passed to Hangup. -- Kevin P. Fleming Digium, Inc. | Director of Software Technologies 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA skype: kpfleming | jabber: kpflem...@digium.com Check us out at www.digium.com www.asterisk.org -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users