[asterisk-users] Capture "Server" header in SIP reply.
David Backeberg
dbackeberg at gmail.com
Sun May 17 08:19:30 CDT 2009
On Sun, May 17, 2009 at 9:04 AM, Chris Maciejewski <chris at wima.co.uk> wrote:
> Unfortunately SIP_HEADER(FROM) is not an option for me.
>
> What I want to do is record in CDRs "User-Agent" header of calling
> party (this can be easily done with ${CHANNEL(useragent)}), and SIP
> "Server" header of called party (from 200 OK response to INVITE
> generated by Asterisk).
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