[asterisk-commits] rizzo: branch rizzo/astobj2 r47928 -
/team/rizzo/astobj2/channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Nov 22 06:43:52 MST 2006
Author: rizzo
Date: Wed Nov 22 07:43:51 2006
New Revision: 47928
URL: http://svn.digium.com/view/asterisk?view=rev&rev=47928
Log:
remove some useless code
Modified:
team/rizzo/astobj2/channels/chan_sip.c
Modified: team/rizzo/astobj2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/astobj2/channels/chan_sip.c?view=diff&rev=47928&r1=47927&r2=47928
==============================================================================
--- team/rizzo/astobj2/channels/chan_sip.c (original)
+++ team/rizzo/astobj2/channels/chan_sip.c Wed Nov 22 07:43:51 2006
@@ -12385,9 +12385,6 @@
ast_log(LOG_WARNING, "Forbidden - wrong password on authentication for REGISTER for '%s' to '%s'\n", r->username, r->hostname);
else
ast_log(LOG_WARNING, "Got 404 Not found on SIP register to service %s@%s, giving up\n", r->username, r->hostname);
- /* XXX how is this useful given we have no pending event anymore ??? */
- if (global_regattempts_max)
- r->regattempts = global_regattempts_max+1;
set_destroy(p);
r->register_pvt = pvt_unref(r->register_pvt);
break;
@@ -12410,9 +12407,6 @@
case 479: /* SER: Not able to process the URI - address is wrong in register*/
ast_log(LOG_WARNING, "Got error 479 on register to %s@%s, giving up (check config)\n", r->username, r->hostname);
- /* XXX how is this useful given we have no pending event anymore ??? */
- if (global_regattempts_max)
- r->regattempts = global_regattempts_max+1;
set_destroy(p);
r->register_pvt = pvt_unref(r->register_pvt);
break;
@@ -12474,7 +12468,7 @@
if (sipdebug)
ast_log(LOG_NOTICE, "Outbound Registration: Expiry for %s is %d sec (Scheduling reregistration in %d s)\n", r->hostname, expires, expires_ms/1000);
- r->refresh= (int) expires_ms / 1000;
+ r->refresh= expires_ms / 1000;
/* Schedule re-registration before we expire */
r->timeout=ast_sched_add(sched, expires_ms, sip_reregister, r);
More information about the asterisk-commits
mailing list