[asterisk-commits] russell: branch russell/events r62288 - /team/russell/events/channels/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Apr 28 13:32:02 MST 2007


Author: russell
Date: Sat Apr 28 15:32:01 2007
New Revision: 62288

URL: http://svn.digium.com/view/asterisk?view=rev&rev=62288
Log:
Remove register=yes support for iax.conf for now

Modified:
    team/russell/events/channels/chan_iax2.c

Modified: team/russell/events/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/team/russell/events/channels/chan_iax2.c?view=diff&rev=62288&r1=62287&r2=62288
==============================================================================
--- team/russell/events/channels/chan_iax2.c (original)
+++ team/russell/events/channels/chan_iax2.c Sat Apr 28 15:32:01 2007
@@ -8577,7 +8577,6 @@
 	int maskfound = 0;
 	int found = 0;
 	int firstpass = 1;
-	unsigned int reg = 0;
 	const char *host = NULL;
 	const char *port = NULL;
 
@@ -8794,8 +8793,6 @@
 				ast_string_field_set(peer, zonetag, v->value);
 			} else if (!strcasecmp(v->name, "adsi")) {
 				peer->adsi = ast_true(v->value);
-			} else if (!strcasecmp(v->name, "register")) {
-				reg = ast_true(v->value);
 			}/* else if (strcasecmp(v->name,"type")) */
 			/*	ast_log(LOG_WARNING, "Ignoring %s\n", v->name); */
 			v = v->next;
@@ -8818,15 +8815,6 @@
 		peer->mwi_event_sub = ast_event_subscribe(AST_EVENT_MWI, mwi_event_cb, NULL,
 			AST_EVENT_IE_MAILBOX, AST_EVENT_IE_PLTYPE_STR, peer->mailbox,
 			AST_EVENT_IE_END);
-	}
-
-	if (reg) {
-		if (ast_test_flag(peer, IAX_DYNAMIC)) {
-			ast_log(LOG_ERROR, "You can't set register=yes with host=dynamic for peer '%s'!\n",
-				peer->name);
-		} else if (!ast_strlen_zero(host)) {
-			iax2_append_register(host, peer->username, peer->secret, port);
-		}
 	}
 
 	return peer;



More information about the asterisk-commits mailing list