I have two Asterisk boxes installed but am not sure how to setup the
configuration for what I want to do.

One box has two FXO cards in it that will connect two PSTN lines. I want to
have Asterisk transfer the incoming calls to the other box which has an FXS
card in it. That box should ring that call through to a handset attached to
the FXS card.

Probably the most common way to do this is with IAX forwards. Here is an example:


Location 1 IP address: 123.123.123.123
Location 2 IP address: 234.234.234.234

In iax.conf on my "1" box, I use:
[ast2-in]
type=user
secret=pass2
context=my_context_on_2
disallow=all
allow=ulaw

[ast2-out]
type=peer
secret=pass2
username=ast2
host=234.234.234.234
disallow=all
allow=ulaw


In iax.conf on my "2" box, I use: [ast1-in] type=user secret=pass1 context=my_context_on_1 disallow=all allow=ulaw

[ast1-out]
type=peer
secret=pass1
username=ast1
host=123.123.123.123
disallow=all
allow=ulaw


Then in extensions.conf, if I wanted to use 1XX extensions for Location 1 and 2XX extensions for Location 2, I could use something like this:


extensions.conf for Location 1:
exten => _2XX,1,Dial(IAX2/ast2-in:[EMAIL PROTECTED]/${EXTEN})

extensions.conf for Location 2:
exten => _1XX,1,Dial(IAX2/ast1-in:[EMAIL PROTECTED]/${EXTEN})


Be sure to restart asterisk on both machines after you do this (not just a reload).


BTW: If you are able to put the FXS card in the same machine as the one with the FXO's you can avoid a lot of potential problems, and the setup is a lot simpler.


- Noah

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

Reply via email to