Posted: Tue Mar 25, 2003 1:20 am Post subject: [Asterisk-Dev] IAX behind NAT?
I am running two instances of NAT, both behind firewalls.
In one case, the private IP for the asterisk box is translated, 1-to-1,
to a public IP.
In the other case, the asterisk box shares and IP with other users.
Here's the rub: the "shared NAT" box seems to be able to send traffic to
the "1-to-1 NAT" box just fine, and voice goes nicely both ways. In
this case there is an entry in iax.conf that contains the visible IP of
the 1-to-1 box.
But the other way doesn't go so smoothly. I hope I can say this
intelligbly: if I try to have the 1-to-1 box answer an incoming PSTN
call and then use IAX to pass it off to the "shared NAT" box, I see the
IAX connection request going out, but at the other end it nothing is
ever logged.
Is this to be expected? If not, could someone point me towards a method
of debugging the problem?
I'm sure it must be due to the many machines (I'm at a conference, and
want to show off asterisk) who are all sharing the same IP.
I know they have a Linksys box at the head end of the network here. .
Posted: Tue Mar 25, 2003 2:28 am Post subject: [Asterisk-Dev] IAX behind NAT?
On Monday 24 March 2003 19:20, Brian Capouch wrote:
Quote:
I am running two instances of NAT, both behind firewalls.
In one case, the private IP for the asterisk box is
translated, 1-to-1, to a public IP.
In the other case, the asterisk box shares and IP with other
users.
Here's the rub: the "shared NAT" box seems to be able to send
traffic to the "1-to-1 NAT" box just fine, and voice goes
nicely both ways. In this case there is an entry in iax.conf
that contains the visible IP of the 1-to-1 box.
But the other way doesn't go so smoothly. I hope I can say
this intelligbly: if I try to have the 1-to-1 box answer an
incoming PSTN call and then use IAX to pass it off to the
"shared NAT" box, I see the IAX connection request going out,
but at the other end it nothing is ever logged.
Is this to be expected? If not, could someone point me
towards a method of debugging the problem?
I'm sure it must be due to the many machines (I'm at a
conference, and want to show off asterisk) who are all sharing
the same IP.
I know they have a Linksys box at the head end of the network
here. .
I believe that you'll want to have the asterisk server behind the
shared NAT register with the server behind the 1-to-1 box.
Posted: Tue Mar 25, 2003 6:40 am Post subject: [Asterisk-Dev] IAX behind NAT?
I wish I knew what I was doing wrong. Here is some output from the
console. You can see the call come in, and I attempt to send it to the
remote instance via IAX (the instance registers as "bc" and you can see
the addr it was using.
I do see that the firewall here seems to switch up the ports with great
frequency. I wonder if that is causing my problems. . .I obfuscated the
firewall IP addr, btw.
Thanks.
B.
-- Starting simple switch on 'Zap/1-1'
-- Executing SetMusicOnHold("Zap/1-1", "default") in new stack
-- Executing ResponseTimeout("Zap/1-1", "30") in new stack
-- Set Response Timeout to 30
-- Executing Answer("Zap/1-1", "") in new stack
-- Executing Dial("Zap/1-1", "IAX/bc/82|20") in new stack
== Everyone is busy at this time
-- Executing BackGround("Zap/1-1", "bcunavail") in new stack
-- Playing 'bcunavail'
-- Registered 'bc' (AUTHENTICATED) at 1.2.3.4:52039
-- Registered 'bc' (AUTHENTICATED) at 1.2.3.4:51612
-- Executing BackGround("Zap/1-1", "vm-intro") in new stack
-- Playing 'vm-intro'
== Spawn extension (bell, s, 6) exited non-zero on 'Zap/1-1'
-- Hungup 'Zap/1-1'
Posted: Tue Mar 25, 2003 3:12 pm Post subject: [Asterisk-Dev] IAX behind NAT?
What is a definition of [bc] in iax.conf ?
I mean do you have "host=dynamic" ?
Anyways you should wait till the remote host registers with your local
asterisk server.
regards
Martin
On Tue, 25 Mar 2003, Brian Capouch wrote:
Quote:
I wish I knew what I was doing wrong. Here is some output from the
console. You can see the call come in, and I attempt to send it to the
remote instance via IAX (the instance registers as "bc" and you can see
the addr it was using.
I do see that the firewall here seems to switch up the ports with great
frequency. I wonder if that is causing my problems. . .I obfuscated the
firewall IP addr, btw.
Thanks.
B.
-- Starting simple switch on 'Zap/1-1'
-- Executing SetMusicOnHold("Zap/1-1", "default") in new stack
-- Executing ResponseTimeout("Zap/1-1", "30") in new stack
-- Set Response Timeout to 30
-- Executing Answer("Zap/1-1", "") in new stack
-- Executing Dial("Zap/1-1", "IAX/bc/82|20") in new stack
== Everyone is busy at this time
-- Executing BackGround("Zap/1-1", "bcunavail") in new stack
-- Playing 'bcunavail'
-- Registered 'bc' (AUTHENTICATED) at 1.2.3.4:52039
-- Registered 'bc' (AUTHENTICATED) at 1.2.3.4:51612
-- Executing BackGround("Zap/1-1", "vm-intro") in new stack
-- Playing 'vm-intro'
== Spawn extension (bell, s, 6) exited non-zero on 'Zap/1-1'
-- Hungup 'Zap/1-1'
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum