Sir,
I want to conact two asterisk server to communicate each other and i want to
make all outgoing call perform only one server for example i have two server
A and B i have attach TDM02B card on server A. first i want to connect both
server. second i want to make all outgoing call perform by server A suppose
if the user of server B want to call outside than call perfrom from server A
because server B having no PSTN line all PSTN line are on server A.
is it possible if yes please explain step by step i am working on SIP
protocol.
server A and server B running fine without connecting each other.
Rajeev.
Actullay i am unable to understand how to connect using SIP method will you please explain how to connect.
Thanks
Rajeev
in a word, no. there is enough info on that page for you to get a system going. if you have static ips at each end, and correct firewall forwarding, you don’t even need a trunk setup.
if you still need help, google for it (there’s an unending number of pages with detailed setups), or employ someone to do it.
feel free to post your configs here with details of how it’s not working. you’ll get help then, but you shouldn’t bank on being spoon-fed information.
Sir,
Thanks for your reply i am having static ip my sip.conf
server A
[2000]
user=2000
type=friend
secret=xyz
host=dynamic
context=from-sip
extensions.conf
exten => 2000,1,Dial(SIP/2000,40)
server B
[5555]
user=5555
type=friend
secret=xyz
host=dynamic
context=from-sip
extensions.conf
exten => 5555,1,Dial(SIP/5555,40)
will you please tell me how extension 2000 from server A talk to extension no 5555 of server B.
Rajeev.
AstRecipes » Peering two Asterisk servers using IAX
Sir,
Thanks for your reply now i am able to connect two asterisk server and make call from server A to server B and vice versa.
Now i want to call outside from server B using the zap channel of server A because all PSTN line are on server A. will you please tell me how to define to dial outside using the zap channel.
Rajeev.
i think this will do the trick
server B
exten => _x,1,Dial(tech/${exten}@serverA)
server A
exten => _x,1,Dial(Zap/${exten}@provider) – not sure w/ this one haven’t tried dialing outside using cards.
Sir,
Thanks for your reply
server B
exten => _x,1,Dial(tech/${exten}@serverA)
Please specify what is tech in this dial plan.
Rajeev.
the “tech” can be SIP, IAX, ZAP, etc. Use the appropriate