Bruce Ferrell
2009-May-12 16:26 UTC
[asterisk-users] Wanting to manipulate SIP response headers
My boss has asked me if there is a way to send back a 503 response to a request at will. I don't see anything in the documents that would allow for manipulation in asterisk at that low of a level. Am I wrong? Bruce Ferrell
Philipp Kempgen
2009-May-12 17:47 UTC
[asterisk-users] Wanting to manipulate SIP response headers
Bruce Ferrell schrieb:> My boss has asked me if there is a way to send back a 503 response to a > request at will. > > I don't see anything in the documents that would allow for manipulation > in asterisk at that low of a level. > > Am I wrong?Depends. Hangup(34) would send a 503 Service Unavailable on the SIP channel. See hangup_cause2sip() in chan_sip.c But in a way you are right. Hangup() works on the "call" level so you can't simply tell Asterisk to send a 503 response to an arbitrary request. Philipp Kempgen -- AMOOCON 2009, May 4-5, Rostock / Germany -> http://www.amoocon.de Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de Gesch?ftsf?hrer: Stefan Wintermeyer, Handelsregister: Neuwied B14998 --