I've managed to get a semi-functional NAT Firewall working as a PBX (with Asterisk running directly on the firewall itself), but there are issues with bind()ing to various interfaces which is causing outbound SIP issues.
To get around these issues, the idea is to do something like this:
Internet
|
-------
| |
| Public PBX
|
NAT Firewall
|
----------------
| | |
Private PBX Phone Phone ...This way we can run private Asterisk PBXes behind NATting firewalls that register with a central "public" Asterisk PBX using IAX/IAX2. The phones can merrily run SIP to the local Private PBX without worrying about NAT headaches or outbound proxies.
I've managed to get the PBXes to mutually register correctly:
Public PBX:
*CLI> iax show users
Username Secret Authen Def.Context A/C
privatepbx rsa default NoPrivate PBX:
*CLI> iax show registry
Host Username Perceived Refresh State
x.x.x.x:5036 privatepbx x.x.x.x:5036 60 Registered *CLI> iax2 show registry
Host Username Perceived Refresh State
x.x.x.x:4569 privatepbx x.x.x.x:4569 60 RegisteredOn the Public PBX, I added:
iax.conf:
[privatepbx]
type=friend
host=dynamic
;trunk=yes ;<-- doesn't work without a zap interface for timing
context=outgoing
auth=rsa
inkeys=privatepbx
outkeys=publicpbx
qualify=yesextension.conf:
[outgoing]
include => iaxtel ; IAXTEL
include => fwd ; fwd.pulver.com
include => iptel ; iptel.org
include => sipphone ; SIPPhone.com
include => commx ; CommunicationsXchange.comOn the Private PBX, I've added what I think are the appropriate sections:
iax.conf:
[general]
register => privatepbx:[EMAIL PROTECTED]extension.conf:
[outgoing]
switch => IAX/privatepbx:[EMAIL PROTECTED]/outgoing
;exten => s,1,Dial(IAX/privatepbx:[EMAIL PROTECTED]/outgoing,20,tr)Whenever I try to route an outbound call, however, I get the following errors on the private PBX:
WARNING[15376]: File chan_iax.c, Line 4837 (find_cache): Unable to generate call for 'privatepbx:[EMAIL PROTECTED]/outgoing'
WARNING[15376]: File chan_iax.c, Line 4957 (iax_exists): Unable to make DP cache
WARNING[15376]: File chan_iax.c, Line 4837 (find_cache): Unable to generate call for 'privatepbx:[EMAIL PROTECTED]/outgoing'
WARNING[15376]: File chan_iax.c, Line 4979 (iax_canmatch): Unable to make DP cache
No IAX traffic appears to go out in response to this.. so I'm guessing I have another problem.
Can anyone help point me in the right direction?
-- - Ian C. Blenke <[EMAIL PROTECTED]> (This message bound by the following: http://www.nks.net/email_disclaimer.html)
_______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
