Hi, I have successfully configured an IAX trunk between 2 asterisks, calls can go through both ways without any problems, NAT in the middle of course (iptables) Now , leave them for a while , and make a call from the external server , it doesn't go through, Dial from the internal one, everything works fine again.. Now , it is clearly a problem in the NAT engine, although IAX shouldn't have this problem is there something I can do to prevent asterisk from tearing down the trunk while it is not used or , modify the iptables so that to allow the incoming UDP connections Cheers h -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050207/5260f1e1/attachment.htm
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in;
}P.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times
New Roman"}LI.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt;
FONT-FAMILY: "Times New Roman"}DIV.MsoNormal { FONT-SIZE: 12pt;
MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"}A:link { COLOR:
blue; TEXT-DECORATION: underline}SPAN.MsoHyperlink { COLOR: blue;
TEXT-DECORATION: underline}A:visited { COLOR: purple; TEXT-DECORATION:
underline}SPAN.MsoHyperlinkFollowed { COLOR: purple; TEXT-DECORATION:
underline}SPAN.EmailStyle17 { COLOR: windowtext; FONT-FAMILY: Arial;
mso-style-type: personal-compose}DIV.Section1 { page: Section1}Hallo
i had same problem
you need to staticly set the register refresh variable in the iax2.h file and
recompile. (cannot remember exact variable.. will look if you cannot find it.
put this on the external server.
I had to drop mine down to 14 sec, the default is 60.
the problem is that the nat translations seems to only stay for 15 sec. dont
know why.
cheers
----- Original Message -----
From: Mustafa N. Deeb
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Sent: Monday, February 07, 2005 9:45 AM
Subject: [Asterisk-Users] IAX2 Trunk Problems with NAT
Hi,
I have successfully configured an IAX trunk between 2 asterisks, calls can go
through both ways without any problems, NAT in the middle of course (iptables)
Now , leave them for a while , and make a call from the external server , it
doesn’t go through,
Dial from the internal one, everything works fine again..
Now , it is clearly a problem in the NAT engine, although IAX shouldn’t have
this problem
is there something I can do to prevent asterisk from tearing down the trunk
while it is not used
or , modify the iptables so that to allow the incoming UDP connections
Cheers
h
---------------------------------
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20050207/51eceabc/attachment.htm
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in;
}P.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times
New Roman"}LI.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt;
FONT-FAMILY: "Times New Roman"}DIV.MsoNormal { FONT-SIZE: 12pt;
MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"}A:link { COLOR:
blue; TEXT-DECORATION: underline}SPAN.MsoHyperlink { COLOR: blue;
TEXT-DECORATION: underline}A:visited { COLOR: purple; TEXT-DECORATION:
underline}SPAN.MsoHyperlinkFollowed { COLOR: purple; TEXT-DECORATION:
underline}SPAN.EmailStyle17 { COLOR: windowtext; FONT-FAMILY: Arial;
mso-style-type: personal-compose}DIV.Section1 { page: Section1}
IAX_DEFAULT_REG_EXPIRE
that is the value to be changed in iax2.h
----- Original Message -----
From: Mustafa N. Deeb
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Sent: Monday, February 07, 2005 9:45 AM
Subject: [Asterisk-Users] IAX2 Trunk Problems with NAT
Hi,
I have successfully configured an IAX trunk between 2 asterisks, calls can go
through both ways without any problems, NAT in the middle of course (iptables)
Now , leave them for a while , and make a call from the external server , it
doesn’t go through,
Dial from the internal one, everything works fine again..
Now , it is clearly a problem in the NAT engine, although IAX shouldn’t have
this problem
is there something I can do to prevent asterisk from tearing down the trunk
while it is not used
or , modify the iptables so that to allow the incoming UDP connections
Cheers
h
---------------------------------
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
---------------------------------
Do you Yahoo!?
Yahoo! Search presents - Jib Jab's 'Second Term'
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20050207/8233a390/attachment.htm
v\:* { BEHAVIOR: url(#default#VML)}o\:* { BEHAVIOR: url(#default#VML)}w\:* {
BEHAVIOR: url(#default#VML)}..shape { BEHAVIOR:
url(#default#VML)}st1\:*{behavior:url(#default#ieooui) } when you did the
iax show registration, what dit the refresh say?
did it say the time you specified?
----- Original Message -----
From: Mustafa N. Deeb
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Sent: Monday, February 07, 2005 11:58 AM
Subject: RE: [Asterisk-Users] IAX2 Trunk Problems with NAT
Hi
Unfortunately, same problem
Cheers
---------------------------------
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Liaan vd Merwe
Sent: Monday, February 07, 2005 11:15 AM
To: Mustafa@palnet.com; Asterisk Users Mailing List - Non-Commercial
Discussion
Subject: Re: [Asterisk-Users] IAX2 Trunk Problems with NAT
IAX_DEFAULT_REG_EXPIRE
that is the value to be changed in iax2.h
----- Original Message -----
From: Mustafa N. Deeb
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Sent: Monday, February 07, 2005 9:45 AM
Subject: [Asterisk-Users] IAX2 Trunk Problems with NAT
Hi,
I have successfully configured an IAX trunk between 2 asterisks, calls can
go through both ways without any problems, NAT in the middle of course
(iptables)
Now , leave them for a while , and make a call from the external server ,
it doesnt go through,
Dial from the internal one, everything works fine again..
Now , it is clearly a problem in the NAT engine, although IAX shouldnt have
this problem
is there something I can do to prevent asterisk from tearing down the trunk
while it is not used
or , modify the iptables so that to allow the incoming UDP connections
Cheers
h
---------------------------------
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
---------------------------------
Do you Yahoo!?
Yahoo! Search presents - Jib Jab's 'Second Term'
---------------------------------
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
---------------------------------
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20050207/267b4471/attachment.htm
v\:* { BEHAVIOR: url(#default#VML)}o\:* { BEHAVIOR: url(#default#VML)}w\:* {
BEHAVIOR: url(#default#VML)}..shape { BEHAVIOR:
url(#default#VML)}st1\:*{behavior:url(#default#ieooui) } on both servers?
----- Original Message -----
From: Mustafa N. Deeb
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Sent: Monday, February 07, 2005 12:12 PM
Subject: RE: [Asterisk-Users] IAX2 Trunk Problems with NAT
Weird
It is empty , even during a call
pbx*CLI> iax2 show registry
Host Username Perceived Refresh State
pbx*CLI>
---------------------------------
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Liaan vd Merwe
Sent: Monday, February 07, 2005 12:03 PM
To: Mustafa@palnet.com; Asterisk Users Mailing List - Non-Commercial
Discussion
Subject: Re: [Asterisk-Users] IAX2 Trunk Problems with NAT
when you did the iax show registration, what dit the refresh say?
did it say the time you specified?
----- Original Message -----
From: Mustafa N. Deeb
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Sent: Monday, February 07, 2005 11:58 AM
Subject: RE: [Asterisk-Users] IAX2 Trunk Problems with NAT
Hi
Unfortunately, same problem
Cheers
---------------------------------
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Liaan vd Merwe
Sent: Monday, February 07, 2005 11:15 AM
To: Mustafa@palnet.com; Asterisk Users Mailing List - Non-Commercial
Discussion
Subject: Re: [Asterisk-Users] IAX2 Trunk Problems with NAT
IAX_DEFAULT_REG_EXPIRE
that is the value to be changed in iax2.h
----- Original Message -----
From: Mustafa N. Deeb
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Sent: Monday, February 07, 2005 9:45 AM
Subject: [Asterisk-Users] IAX2 Trunk Problems with NAT
Hi,
I have successfully configured an IAX trunk between 2 asterisks, calls can
go through both ways without any problems, NAT in the middle of course
(iptables)
Now , leave them for a while , and make a call from the external server
, it doesnt go through,
Dial from the internal one, everything works fine again..
Now , it is clearly a problem in the NAT engine, although IAX shouldnt
have this problem
is there something I can do to prevent asterisk from tearing down the
trunk while it is not used
or , modify the iptables so that to allow the incoming UDP
connections
Cheers
h
---------------------------------
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
---------------------------------
Do you Yahoo!?
Yahoo! Search presents - Jib Jab's 'Second Term'
---------------------------------
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
---------------------------------
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.
---------------------------------
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20050207/96adffff/attachment.htm
v\:* { BEHAVIOR: url(#default#VML)}o\:* { BEHAVIOR: url(#default#VML)}w\:* {
BEHAVIOR: url(#default#VML)}..shape { BEHAVIOR:
url(#default#VML)}st1\:*{behavior:url(#default#ieooui) }
How did you configure the trunk between the 2 servers?
using register => user:pass@external server
or using extension?
----- Original Message -----
From: Mustafa N. Deeb
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Sent: Monday, February 07, 2005 12:21 PM
Subject: RE: [Asterisk-Users] IAX2 Trunk Problems with NAT
Yes
---------------------------------
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Liaan vd Merwe
Sent: Monday, February 07, 2005 12:17 PM
To: Mustafa@palnet.com; Asterisk Users Mailing List - Non-Commercial
Discussion
Subject: Re: [Asterisk-Users] IAX2 Trunk Problems with NAT
on both servers?
----- Original Message -----
From: Mustafa N. Deeb
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Sent: Monday, February 07, 2005 12:12 PM
Subject: RE: [Asterisk-Users] IAX2 Trunk Problems with NAT
Weird
It is empty , even during a call
pbx*CLI> iax2 show registry
Host Username Perceived Refresh
State
pbx*CLI>
---------------------------------
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Liaan vd Merwe
Sent: Monday, February 07, 2005 12:03 PM
To: Mustafa@palnet.com; Asterisk Users Mailing List - Non-Commercial
Discussion
Subject: Re: [Asterisk-Users] IAX2 Trunk Problems with NAT
when you did the iax show registration, what dit the refresh say?
did it say the time you specified?
----- Original Message -----
From: Mustafa N. Deeb
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Sent: Monday, February 07, 2005 11:58 AM
Subject: RE: [Asterisk-Users] IAX2 Trunk Problems with NAT
Hi
Unfortunately, same problem
Cheers
---------------------------------
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Liaan vd
Merwe
Sent: Monday, February 07, 2005 11:15 AM
To: Mustafa@palnet.com; Asterisk Users Mailing List - Non-Commercial
Discussion
Subject: Re: [Asterisk-Users] IAX2 Trunk Problems with NAT
IAX_DEFAULT_REG_EXPIRE
that is the value to be changed in iax2.h
----- Original Message -----
From: Mustafa N. Deeb
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Sent: Monday, February 07, 2005 9:45 AM
Subject: [Asterisk-Users] IAX2 Trunk Problems with NAT
Hi,
I have successfully configured an IAX trunk between 2 asterisks, calls
can go through both ways without any problems, NAT in the middle of
course (iptables)
Now , leave them for a while , and make a call from the external
server , it doesnt go through,
Dial from the internal one, everything works fine again..
Now , it is clearly a problem in the NAT engine, although IAX shouldnt
have this problem
is there something I can do to prevent asterisk from tearing down the
trunk while it is not used
or , modify the iptables so that to allow the incoming UDP
connections
Cheers
h
---------------------------------
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
---------------------------------
Do you Yahoo!?
Yahoo! Search presents - Jib Jab's 'Second Term'
---------------------------------
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
---------------------------------
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.
---------------------------------
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
---------------------------------
Do you Yahoo!?
All your favorites on one personal page Try My Yahoo!
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20050207/6b9209b5/attachment.htm
v\:* { BEHAVIOR: url(#default#VML)}o\:* { BEHAVIOR: url(#default#VML)}w\:* {
BEHAVIOR: url(#default#VML)}..shape { BEHAVIOR:
url(#default#VML)}st1\:*{behavior:url(#default#ieooui) } ok.
your options are:
setup publishing rule on your IPtables to allow access to you internal * from
external *
or:
register to the external server using the internalserver-peer username:pass
then you can, in your extension.conf, call dial(iax2/internal-peer)
let me know if you need some help with this
regards
liaan
----- Original Message -----
From: Mustafa N. Deeb
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Sent: Monday, February 07, 2005 1:01 PM
Subject: RE: [Asterisk-Users] IAX2 Trunk Problems with NAT
No ,
Im using the other type configuration since the NAT server IP doesnt
change..
On the External Server
[internalserver-peer]
username=external-user
type=peer
trunk=yes
secret=password
host={external NAT IP ADDRESS}
[internal-user]
type=user
trunk=yes
secret=password
context=from-internal
on the internal server
[external-peer]
username=internal-user
type=peer
trunk=yes
secret=password
host={external IP ADDRESS}
[external-user]
type=user
trunk=yes
secret=password
context=from-internal
---------------------------------
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Liaan vd Merwe
Sent: Monday, February 07, 2005 12:28 PM
To: Mustafa@palnet.com; Asterisk Users Mailing List - Non-Commercial
Discussion
Subject: Re: [Asterisk-Users] IAX2 Trunk Problems with NAT
How did you configure the trunk between the 2 servers?
using register => user:pass@external server
or using extension?
----- Original Message -----
From: Mustafa N. Deeb
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Sent: Monday, February 07, 2005 12:21 PM
Subject: RE: [Asterisk-Users] IAX2 Trunk Problems with NAT
Yes
---------------------------------
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Liaan vd Merwe
Sent: Monday, February 07, 2005 12:17 PM
To: Mustafa@palnet.com; Asterisk Users Mailing List - Non-Commercial
Discussion
Subject: Re: [Asterisk-Users] IAX2 Trunk Problems with NAT
on both servers?
----- Original Message -----
From: Mustafa N. Deeb
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Sent: Monday, February 07, 2005 12:12 PM
Subject: RE: [Asterisk-Users] IAX2 Trunk Problems with NAT
Weird
It is empty , even during a call
pbx*CLI> iax2 show registry
Host Username Perceived
Refresh State
pbx*CLI>
---------------------------------
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Liaan vd
Merwe
Sent: Monday, February 07, 2005 12:03 PM
To: Mustafa@palnet.com; Asterisk Users Mailing List - Non-Commercial
Discussion
Subject: Re: [Asterisk-Users] IAX2 Trunk Problems with NAT
---------------------------------
Do you Yahoo!?
All your favorites on one personal page Try My Yahoo!
---------------------------------
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
---------------------------------
Do you Yahoo!?
The all-new My Yahoo! Get yours free!
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20050207/9b5e78ea/attachment.htm
Miguel Ruiz Velasco Sobrino
2005-Feb-07 12:14 UTC
[Asterisk-Users] Re: IAX2 Trunk Problems with NAT
Simple! first: return the iax.h to it's original state because it's a config issue, not a code one. In the internal server, you need to put in the relevant section a host directive with the name or IP of the external server AND a register under the [general] section of the iax.conf In the external server, in the definition you need to put host=dynamic. Then hoy need to dial with the definition section name ***internal: *iax.conf [general] register => user:pw@external-hostname [iax-external] host=external-hostname *extensions.conf ... Dial (IAX2/iax-external/phonenumber) ***external: *iax.conf [iax-internal] host=dynamic *extensions.conf ... Dial (IAX2/iax-internal/phonenumber) This also addresses the problem of someone having two iax2/udp streams, one of each call, even with trunking enabled.> From: Mustafa N. Deeb <mailto:mustafa@palnet.com> > > To: 'Asterisk Users Mailing List - <mailto:asterisk-users@lists.digium.com> > Non-Commercial Discussion' > > Sent: Monday, February 07, 2005 9:45 AM > > Subject: [Asterisk-Users] > > > > Hi, > > I have successfully configured an IAX trunk between 2 asterisks, calls can > go through both ways without any problems, NAT in the middle of course > (iptables) > > Now , leave them for a while , and make a call from the external server , > it doesnt go through, > > Dial from the internal one, everything works fine again.. > > > Now , it is clearly a problem in the NAT engine, although IAX shouldnt > have this problem > > is there something I can do to prevent asterisk from tearing down the trunk > while it is not used > > or , modify the iptables so that to allow the incoming UDP connections > > Cheers====Miguel Ruiz Velasco Version: OpenKeyServer v1.2 Comment: Extracted from belgium.keyserver.net Signature: 0x59831109 __________________________________ Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. http://info.mail.yahoo.com/mail_250