[Asterisk-cvs] asterisk/channels chan_sip.c,1.751,1.752
kpfleming at lists.digium.com
kpfleming at lists.digium.com
Sun Jun 5 10:44:34 CDT 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv1591/channels
Modified Files:
chan_sip.c
Log Message:
more cleanups for outbound registrations (bug #4457)
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.751
retrieving revision 1.752
diff -u -d -r1.751 -r1.752
--- chan_sip.c 5 Jun 2005 14:43:49 -0000 1.751
+++ chan_sip.c 5 Jun 2005 14:47:09 -0000 1.752
@@ -613,7 +613,7 @@
#define REG_STATE_REJECTED 4
#define REG_STATE_TIMEOUT 5
#define REG_STATE_NOAUTH 6
-#define REG_STATE_GAVEUP 7
+#define REG_STATE_FAILED 7
/* sip_registry: Registrations with other SIP proxies */
@@ -4527,8 +4527,8 @@
static char *regstate2str(int regstate)
{
switch(regstate) {
- case REG_STATE_GAVEUP:
- return "Gave up.";
+ case REG_STATE_FAILED:
+ return "Failed";
case REG_STATE_UNREGISTERED:
return "Unregistered";
case REG_STATE_REGSENT:
@@ -4610,7 +4610,7 @@
/* Ok, enough is enough. Don't try any more */
/* We could add an external notification here...
steal it from app_voicemail :-) */
- r->regstate=REG_STATE_GAVEUP;
+ r->regstate=REG_STATE_FAILED;
} else {
r->regstate=REG_STATE_UNREGISTERED;
r->timeout = -1;
More information about the svn-commits
mailing list