[asterisk-users] Capture "Server" header in SIP reply.
Chris Maciejewski
chris at wima.co.uk
Sun May 17 08:53:57 CDT 2009
"User-Agent" header is present in SIP *request* i.e. "INVITE" received
by Asterisk from UAC.
RFC 3261 - 20.41 User-Agent
The User-Agent header field contains information about the UAC
originating the request. The semantics of this header field are
defined in [H14.43].
Revealing the specific software version of the user agent might allow
the user agent to become more vulnerable to attacks against software
that is known to contain security holes. Implementers SHOULD make
the User-Agent header field a configurable option.
Example:
User-Agent: Softphone Beta1.5
"Server" header is present in SIP *response* i.e. "200 OK" generated
by UAS to "INVITE" generated by Asterisk.
RFC 3261 - 20.35 Server
The Server header field contains information about the software used
by the UAS to handle the request.
Revealing the specific software version of the server might allow the
server to become more vulnerable to attacks against software that is
known to contain security holes. Implementers SHOULD make the Server
header field a configurable option.
Example:
Server: HomeServer v2
My scenario:
Phone 1 ----- INVITE [1] -----> Asterisk ------> INVITE [2] ------> Phone 2
<------- 200
OK [3] -------
What I want to do is capture "Server" header in "200 OK" reply
generated by Phone 2.
2009/5/17 David Backeberg <dbackeberg at gmail.com>:
> On Sun, May 17, 2009 at 9:04 AM, Chris Maciejewski <chris at wima.co.uk> wrote:
>
> Maybe you need a better name for it than server. To me server means
> the hostname / address of the other side of the SIP conversation, aka:
> FROM.
>
> You can use SipAddHeader to make your own X-blah tags for your
> packets, and then pick them off on the other side. I don't seem to
> understand what you mean by 'server', despite my command of the
> english language. Perhaps you want
> ${SIPUSERAGENT}
>
More information about the asterisk-users
mailing list