[Asterisk-cvs] asterisk/channels chan_sip.c,1.630,1.631
markster at lists.digium.com
markster at lists.digium.com
Thu Jan 13 14:23:00 CST 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv21804/channels
Modified Files:
chan_sip.c
Log Message:
Fix realtime in SIP (bug #3332)
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.630
retrieving revision 1.631
diff -u -d -r1.630 -r1.631
--- chan_sip.c 12 Jan 2005 23:01:44 -0000 1.630
+++ chan_sip.c 13 Jan 2005 20:26:33 -0000 1.631
@@ -1135,14 +1135,11 @@
tmp = var;
while(tmp) {
- if (strcasecmp(tmp->name, "type"))
- continue;
-
- if (!strcasecmp(tmp->value, "user")) {
+ if (!strcasecmp(tmp->name, "type") &&
+ !strcasecmp(tmp->value, "user")) {
ast_destroy_realtime(var);
return NULL;
}
-
tmp = tmp->next;
}
@@ -1207,10 +1204,8 @@
tmp = var;
while (tmp) {
- if (strcasecmp(tmp->name, "type"))
- continue;
-
- if (!strcasecmp(tmp->value, "peer")) {
+ if (!strcasecmp(tmp->name, "type") &&
+ !strcasecmp(tmp->value, "peer")) {
ast_destroy_realtime(var);
return NULL;
}
More information about the svn-commits
mailing list