[Asterisk-Users] IAX peers and NAT

WipeOut wipe_out at onetel.com
Thu Oct 23 12:36:20 MST 2003


Olle E. Johansson wrote:

> Thank you. Still confused.
>
> It must be a definition on the outside server... But that's the same name
> as the "loginname" - the name the inside server uses to login on the 
> outside.
> I must be able to call from the outside server without giving the 
> @insideserver.
> As far as I know, the IAXTEL network calls me after my server 
> registers on the line I register on,
> that's the way it gets into my server. Or...
>
> Here's an overview of my dilemma
> ----------------------------------------------------------
> IAX.conf outside
> [insideserver] definition
>
> IAX.conf inside
> register -> insideserver:password at outsideserver
> ---------------------------
> Extensions.conf outside (Wipeout suggestion)
> exten => 1234,1,Dial(IAX/loginname:password at otherserver/12345)
>
> *** Olle: Which loginname, password and otherserver? Do I need an 
> [outsideserver] definition on the inside iax.conf?
>
> As far as I understand:
> exten => 1234,1,Dial(IAX/insideserver/12345)
>
> ---------------------------------------------------------
>
> Still confused. Still getting the errormessage about IAXTEL.COM, which 
> is even more
> confusing.
>
> /O



Here is basically the way mine is setup.. names changed to protect the 
innocent.. :)

Maybe you can spot what you are missing..

PBX1- insidepbx (behind NAT)
---iax.conf--
register => user:pass at pbx.outside.com   ; Server on static IP
[outsidepbx]
;For inbound calls
type = user
context=something
blah
blah

[outsidepbx]
;For outbound calls
type=peer
blah
blah
------------

---extensions.conf---
exten => _20x,1,Dial(IAX2/user:pass at pbx.outside.com/${exten}@somecontext)
; "somecontext" specified because multiple contexts are available on 
remote side
------------------------

PBX2 - outsidepbx (open internet with static IP)
---iax.conf---
[insidepbx]
;For inbound calls
type = user
context = something
blah
blah

[insidepbx]
;For outbound calls
type=peer
blah
blah
--------------

---extension.conf-----
exten => _30x,1,Dial(IAX2/user:pass at insidepbx/${exten})
; note: word [insidepbx] is used here......^^^^^^^

---------------------------







More information about the asterisk-users mailing list