[asterisk-users] Wanting to manipulate SIP response headers

Bruce Ferrell bferrell at baywinds.org
Tue May 12 15:10:40 CDT 2009



Philipp Kempgen wrote:
> 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

That will actually serve to do what I need.  Thanks!



More information about the asterisk-users mailing list