[asterisk-users] Wanting to manipulate SIP response headers
Philipp Kempgen
philipp.kempgen at amooma.de
Tue May 12 12:47:28 CDT 2009
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
--
More information about the asterisk-users
mailing list