[asterisk-users] Send 503 or 603 error after answer()

2010-01-12 Thread jonas kellens
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

Re: [asterisk-users] Send 503 or 603 error after answer()

2010-01-12 Thread Kevin P. Fleming
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

Re: [asterisk-users] Send 503 or 603 error after answer()

2010-01-12 Thread jonas kellens
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

Re: [asterisk-users] Send 503 or 603 error after answer()

2010-01-12 Thread Kevin P. Fleming
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,