Don't specify the remote side by name, specify it by IP address. If asterisk experiences even 1 dns failure it will not try again until a reload/restart/whatever.

[EMAIL PROTECTED] wrote:
I'm going to try and lay out all the relevant information I have here in this one post. I can provide more info if necessary.

ISSUE 1:
Office A routinely looses connection to Office B. When typing IAX2 Show Peers, it will show as Unreachable. I issue IAX2 Reload and it will work again for 1-3 days (haven't narrowed the time down yet). My theory is that the DSL at Office2 is changing IP addresses regularly and this is the cause of the problem??? This has been going on since I set up Office B (2-3 weeks). I never had to touch Office B box. Office B seemed to maintain connection, until now (see Issue 2).

ISSUE 2:
Office B will not connect to Office A via IAX2 any more. The command IAX2 Show Peers shows Office A as Unreachable. IAX2 Reload won't fix it. I even rebooted the box (MS tricks never die). Up until yesterday, Office B always remained connected to Office A (or at least since I set up Office B - 2-3 weeks ago). Each office has port 4569 forwarded to its * box. I even moved Office A box into DMZ, no help. Note, Office A extensions can call extensions at Office B.

Here is the log file after I issue IAX2 Reload from Office B box:
May 18 16:29:38 DEBUG[3168] manager.c: Manager received command 'Command'
May 18 16:29:38 DEBUG[3168] manager.c: Manager received command 'Command'
May 18 16:29:48 VERBOSE[3170] logger.c: == Parsing '/etc/asterisk/iax.conf': May 18 16:29:48 VERBOSE[3170] logger.c: == Parsing '/etc/asterisk/iax.conf': Found May 18 16:29:48 VERBOSE[3170] logger.c: == Parsing '/etc/asterisk/iax_additional.conf': May 18 16:29:48 VERBOSE[3170] logger.c: == Parsing '/etc/asterisk/iax_additional.conf': Found May 18 16:29:48 NOTICE[3170] chan_iax2.c: Ignoring bindport on reload '<--- DON'T KNOW WHAT THIS IS May 18 16:29:48 NOTICE[3170] chan_iax2.c: Ignoring bindaddr on reload '<--- OR THIS May 18 16:29:48 DEBUG[3170] db.c: Unable to find key '450' in family 'IAX/Registry' ' 450 UNUSED EXTENSION May 18 16:29:48 VERBOSE[3170] logger.c: -- doing lookup for 'officea.kicks-ass.net'
May 18 16:29:49 NOTICE[3170] chan_iax2.c: Still have a callno...
May 18 16:29:49 VERBOSE[3170] logger.c: == Loaded firmware 'iaxy.bin'
May 18 16:29:49 VERBOSE[3170] logger.c: == Parsing '/etc/asterisk/iaxprov.conf': May 18 16:29:49 VERBOSE[3170] logger.c: == Parsing '/etc/asterisk/iaxprov.conf': Found May 18 16:29:49 VERBOSE[3170] logger.c: -- Loaded provisioning template 'default' May 18 16:29:49 VERBOSE[3170] logger.c: -- Loaded provisioning template 'default'

I'm an admitted newbie, but this seems (to me) that this may be networking/Linux issue and not Asterisk???


SETUP:

OFFICE A:
-Asterisk 1.2.5
-Linksys WRT54GS router w/ SVEASOFT Alchemy-pre7a v3.37.6.8sv
-TW Roadrunner cablemodem (business class)
- * box sits behind router with port 4569 forwarded to * box. As noted, I moved * box to DMZ at one time, no help. Internal static IP address of 192.168.1.24

iax.conf:
[general]
bindport = 4569 ; Port to bind to (IAX is 4569)
bindaddr = 0.0.0.0 ; Address to bind to (all addresses on machine)
disallow=all
allow=ulaw
allow=alaw
allow=gsm
mailboxdetail=yes

#include iax_additional.conf
#include iax_custom.conf

iax_additional.conf:
[lpeaus]
username=lpeaus-user
type=peer
secret=<secret>
qualify=yes
host=officeb.kicks-ass.net
context=from-internal

[lpenb-user]
type=user
secret=<secret>
host=officeb.kicks-ass.net
context=from-internal



OFFICE B:
-Asterisk 1.2.7.1
-Linksys WRT54GL router
-SBC, er AT&T, DSL
-Set up same as Office A (network wise). Internal static network IP address of 192.168.1.20

iax.conf:
[general]
bindport = 4569 ; Port to bind to (IAX is 4569)
bindaddr = 0.0.0.0 ; Address to bind to (all addresses on machine)
disallow=all
allow=ulaw
allow=alaw
allow=gsm
mailboxdetail=yes

#include iax_custom.conf
#include iax_additional.conf

iax_additional.conf :
[lpeaus-user]
type=user
secret=<secret>
host=officea.kicks-ass.net
context=from-internal

[lpenb]
username=lpenb-user
type=peer
secret=<secret>
qualify=yes
host=officea.kicks-ass.net
context=from-internal


TIA,
Doug


_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users



--
Now accepting new clients in Birmingham, Atlanta, Huntsville, Chattanooga, and Montgomery.
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to