Summary:ASTERISK-11953: SendText() ignores headers added via SIPAddHeader()
Reporter:Maximillian Dornseif (mdornseif)Labels:
Date Opened:2008-05-01 07:24:17Date Closed:2008-05-01 13:46:15
Versions:Frequency of
Description:Seemingly SendText does not include headers added via SIPAddHeader().


I have tried something like

exten => 123,1,SIPAddHeader(Content-Disposition: desktop)
exten => 123,n,SIPAddHeader(Alert-Info: Message sound)  
exten => 123,n,Answer
exten => 123,n,SendText(test234)      
exten => 123,n,HangUp

... but I also tried permutations of where to place the Answer(). When calling 123 from a SIP Phone (Snom 370) and observing the SIP traffic via tcpdump I see that the 'Content-Disposition' and 'Alert-Info' headers are not send to the phone.

I can work arround this by using sipsak but things would be much easier, if asterisk could be used to set these headers.
Comments:By: Jason Parker (jparker) 2008-05-01 13:12:54

The headers from SIPAddHeader are only (currently) used on INVITEs.

I don't know how we want to handle this.

By: Jason Parker (jparker) 2008-05-01 13:13:25

oej, can you comment?

By: Olle Johansson (oej) 2008-05-01 13:45:57

This is a feature request. Please add it to www.asteriskideas.org.

SIPaddheader only add headers on the first invite by design.