[svn-commits] rizzo: trunk r45658 - /trunk/channels/chan_sip.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Oct 19 02:54:53 MST 2006


Author: rizzo
Date: Thu Oct 19 04:54:51 2006
New Revision: 45658

URL: http://svn.digium.com/view/asterisk?rev=45658&view=rev
Log:
+ move the definition of netlock as it was not related to the
  comment just above;

+ decouple the struct definition and variable declaration (iflist);


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=45658&r1=45657&r2=45658&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Thu Oct 19 04:54:51 2006
@@ -551,9 +551,10 @@
 /*! \brief Protect the SIP dialog list (of sip_pvt's) */
 AST_MUTEX_DEFINE_STATIC(iflock);
 
+AST_MUTEX_DEFINE_STATIC(netlock);
+
 /*! \brief Protect the monitoring thread, so only one process can kill or start it, and not
    when it's doing something critical. */
-AST_MUTEX_DEFINE_STATIC(netlock);
 
 AST_MUTEX_DEFINE_STATIC(monlock);
 
@@ -861,7 +862,7 @@
 };
 
 /*! \brief sip_pvt: PVT structures are used for each SIP dialog, ie. a call, a registration, a subscribe  */
-static struct sip_pvt {
+struct sip_pvt {
 	ast_mutex_t lock;			/*!< Dialog private lock */
 	int method;				/*!< SIP method that opened this dialog */
 	AST_DECLARE_STRING_FIELDS(
@@ -973,7 +974,9 @@
 	struct sip_pvt *next;			/*!< Next dialog in chain */
 	struct sip_invite_param *options;	/*!< Options for INVITE */
 	int autoframing;
-} *iflist = NULL;
+};
+
+static struct sip_pvt *iflist = NULL;
 
 #define FLAG_RESPONSE (1 << 0)
 #define FLAG_FATAL (1 << 1)



More information about the svn-commits mailing list