On Tuesday 23 December 2003 11:13, Robert Hajime Lanning wrote: > I have, in iax.conf the register statement: > register => username:[EMAIL PROTECTED] > > This causes registration attempts to iaxtel.com for both IAX and > IAX2. > > Every once in a while there is a packet for port 4569 keeping the > IAX2 registration alive. This is fine. > > But, I have a barrage of registration attempts to iaxtel on port > 5036 for IAX. Every UDP packet is answered with an ICMP packet > claiming "port unreachable". > > I know that iaxtel has turned off IAX, So, how do I turn off the > registration attempts for IAX, for that particular connection? > (and keep IAX2)
How's this for a solution (attached)? -Tilghman
Index: channels/chan_iax.c =================================================================== RCS file: /usr/cvsroot/asterisk/channels/chan_iax.c,v retrieving revision 1.43 diff -u -r1.43 chan_iax.c --- channels/chan_iax.c 9 Dec 2003 23:55:17 -0000 1.43 +++ channels/chan_iax.c 23 Dec 2003 18:43:41 -0000 @@ -4661,7 +4661,7 @@ } else if (!strcasecmp(v->value, "yes")) { peer->maxms = DEFAULT_MAXMS; } else if (sscanf(v->value, "%d", &peer->maxms) != 1) { - ast_log(LOG_WARNING, "Qualification of peer '%s' should be 'yes', 'no', or a number of milliseconds at line %d of iax.conf\n", peer->name, v->lineno); + ast_log(LOG_WARNING, "Qualification of peer '%s' should be 'yes', 'no', or a number of milliseconds at line %d of iax1.conf\n", peer->name, v->lineno); peer->maxms = 0; } } //else if (strcasecmp(v->name,"type")) @@ -4962,7 +4962,7 @@ static int reload_config(void) { - char *config = "iax.conf"; + char *config = "iax1.conf"; struct iax_registry *reg; struct sockaddr_in dead_sin; strncpy(accountcode, "", sizeof(accountcode)-1); @@ -5359,7 +5359,7 @@ int load_module(void) { - char *config = "iax.conf"; + char *config = "iax1.conf"; int res = 0; int x; struct iax_registry *reg;