[Asterisk-Users] turning off IAX registration attempts
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) Just seems like alot of wasted bandwidth, contiously knocking on a locked door. Ok, not alot of bandwidth, but, completely useless. Has anyone done a tcpdump at iaxtel to see how many IAX registration attempts hit them, and how fast? Here is my tcpdump: there are ICMP return packets for each of these UDP packets [EMAIL PROTECTED]:/etc/asterisk# tcpdump -n ip host 69.73.19.178 and udp port 5036 tcpdump: listening on eth0 17:10:01.740865 198.144.196.118.5036 69.73.19.178.5036: udp 12 (DF) [tos 0x10] 17:10:01.740912 198.144.196.118.5036 69.73.19.178.5036: udp 12 (DF) [tos 0x10] 17:10:01.760869 198.144.196.118.5036 69.73.19.178.5036: udp 12 (DF) [tos 0x10] 17:10:01.760909 198.144.196.118.5036 69.73.19.178.5036: udp 42 (DF) [tos 0x10] 17:10:09.740652 198.144.196.118.5036 69.73.19.178.5036: udp 12 (DF) [tos 0x10] 17:10:11.201240 198.144.196.118.5036 69.73.19.178.5036: udp 12 (DF) [tos 0x10] 17:10:11.750502 198.144.196.118.5036 69.73.19.178.5036: udp 12 (DF) [tos 0x10] 17:10:11.750535 198.144.196.118.5036 69.73.19.178.5036: udp 12 (DF) [tos 0x10] 17:10:11.750546 198.144.196.118.5036 69.73.19.178.5036: udp 12 (DF) [tos 0x10] 17:10:11.770504 198.144.196.118.5036 69.73.19.178.5036: udp 12 (DF) [tos 0x10] 17:10:12.220512 198.144.196.118.5036 69.73.19.178.5036: udp 12 (DF) [tos 0x10] 17:10:25.240316 198.144.196.118.5036 69.73.19.178.5036: udp 12 (DF) [tos 0x10] 17:10:26.250264 198.144.196.118.5036 69.73.19.178.5036: udp 12 (DF) [tos 0x10] 17:10:29.740007 198.144.196.118.5036 69.73.19.178.5036: udp 42 (DF) [tos 0x10] 17:10:31.759849 198.144.196.118.5036 69.73.19.178.5036: udp 42 (DF) [tos 0x10] 17:10:39.279658 198.144.196.118.5036 69.73.19.178.5036: udp 12 (DF) [tos 0x10] 17:10:39.749612 198.144.196.118.5036 69.73.19.178.5036: udp 12 (DF) [tos 0x10] 17:10:40.299550 198.144.196.118.5036 69.73.19.178.5036: udp 12 (DF) [tos 0x10] 17:10:41.759498 198.144.196.118.5036 69.73.19.178.5036: udp 12 (DF) [tos 0x10] 17:10:41.759546 198.144.196.118.5036 69.73.19.178.5036: udp 42 (DF) [tos 0x10] 20 packets received by filter 0 packets dropped by kernel -- END OF LINE -MCP ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] turning off IAX registration attempts
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 - 1.43 +++ channels/chan_iax.c 23 Dec 2003 18:43:41 - @@ -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;