mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-26 22:30:28 +00:00
chan_sip: cleanup from the introduction of ast_str
Remove the length field from sip_req and sip_pkt in chan_sip since they are redundant (ast_str holds its own length) and refactor the necessary functions. Review: https://reviewboard.asterisk.org/r/1281/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@325740 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -740,7 +740,6 @@ struct sip_socket {
|
||||
struct sip_request {
|
||||
ptrdiff_t rlPart1; /*!< Offset of the SIP Method Name or "SIP/2.0" protocol version */
|
||||
ptrdiff_t rlPart2; /*!< Offset of the Request URI or Response Status */
|
||||
int len; /*!< bytes used in data[], excluding trailing null terminator. Rarely used. */
|
||||
int headers; /*!< # of SIP Headers */
|
||||
int method; /*!< Method of this request */
|
||||
int lines; /*!< Body Content */
|
||||
@@ -1137,7 +1136,6 @@ struct sip_pkt {
|
||||
struct timeval time_sent; /*!< When pkt was sent */
|
||||
int64_t retrans_stop_time; /*!< Time in ms after 'now' that retransmission must stop */
|
||||
int retrans_stop; /*!< Timeout is reached, stop retransmission */
|
||||
int packetlen; /*!< Length of packet */
|
||||
struct ast_str *data;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user