[svn-commits] trunk r20901 - /trunk/channels/chan_sip.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Mon Apr 17 06:22:35 MST 2006
Author: oej
Date: Mon Apr 17 08:22:31 2006
New Revision: 20901
URL: http://svn.digium.com/view/asterisk?rev=20901&view=rev
Log:
- Documentation update
- Formatting change
Modified:
trunk/channels/chan_sip.c
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=20901&r1=20900&r2=20901&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Mon Apr 17 08:22:31 2006
@@ -823,9 +823,9 @@
#define FLAG_RESPONSE (1 << 0)
#define FLAG_FATAL (1 << 1)
-/*! \brief sip packet - read in sipsock_read(), transmitted in send_request() */
+/*! \brief sip packet - raw format for outbound packets that are sent or scheduled for transmission */
struct sip_pkt {
- struct sip_pkt *next; /*!< Next packet */
+ struct sip_pkt *next; /*!< Next packet in linked list */
int retrans; /*!< Retransmission number */
int method; /*!< SIP method for this packet */
int seqno; /*!< Sequence number */
@@ -4874,10 +4874,8 @@
static int transmit_reinvite_with_sdp(struct sip_pvt *p)
{
struct sip_request req;
- if (ast_test_flag(&p->flags[0], SIP_REINVITE_UPDATE))
- reqprep(&req, p, SIP_UPDATE, 0, 1);
- else
- reqprep(&req, p, SIP_INVITE, 0, 1);
+
+ reqprep(&req, p, ast_test_flag(&p->flags[0], SIP_REINVITE_UPDATE) ? SIP_UPDATE : SIP_INVITE, 0, 1);
add_header(&req, "Allow", ALLOWED_METHODS);
add_header(&req, "Supported", SUPPORTED_EXTENSIONS);
More information about the svn-commits
mailing list