Small Multiserver

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Small Multiserver

Postby Leo_Surf » Thu Sep 10, 2009 4:54 am

Hello All,

I have setup 2 vicidial servers (A and B). All my agents would be logging in on Server B.

I want to ensure that the out going call will be dialed out from Server A. Where and what I need to change so that Server B points all calls to Server A. (agents will not login to server A at all).

Thanks in advance.
Leo_Surf
 
Posts: 13
Joined: Sat Jan 31, 2009 3:53 am

Postby okli » Thu Sep 10, 2009 5:35 am

Why would you need Vicidial scripts on server A at all? Wouldn't only asterisk on it, using it as a trunk for server B, do the same job?
But in this case why would you need server A in first place, to use it just as a trunk ?!

If you are planning to use server A for other agents, or later, you may set in admin page-->servers trunks for server B to 0 and the rest of the available channels as trunks for server A. Assuming properly configured load balanced servers. Thus server B will be sending all calls to server A and out.

If you elaborate a bit more on your issue and requirements you may get ideas for a better setup.
okli
 
Posts: 671
Joined: Mon Oct 01, 2007 5:09 pm

Postby Leo_Surf » Thu Sep 10, 2009 6:37 pm

Okli,

Thanks for reply, and your question is very valid. My intention to have A as a vicidial box to have redundant box in case of failure of server B.

But as you said A can only be plain Asterisk. If we make A as only plain Asterisk server, in this case what all configuration changes required on Server B? Do we need to make any changes on Server A as well?


Thanks,
Leo
Leo_Surf
 
Posts: 13
Joined: Sat Jan 31, 2009 3:53 am

Postby okli » Fri Sep 11, 2009 9:37 am

Ideas:
1) Install Vicidial on both servers and use one only. Send over FTP the nightly backups made by ADMIN_backup.pl
crontab entry:
Code: Select all
10 3 * * * /usr/share/astguiclient/ADMIN_backup.pl --ftp-transfer

2) Set up RAID 1 at least, or 5 on the server in production. Keep FTP transfers of Admin_backup script to the other server.

You won't need to use the other machine as a trunk anyway. Should a failure occur, simply restore the database and conf files if needed and log agents on the new server.

Does that suit your needs? There are many other possible scenarios.
okli
 
Posts: 671
Joined: Mon Oct 01, 2007 5:09 pm

Postby Leo_Surf » Fri Sep 11, 2009 3:07 pm

This is great.

What if we have a plain Asterisk server (A) and Vicidial Server (B)?

In this scenario, how do we route calls via Server A, how do we set up the trunk? Or whtever the best option is, please suggest.

I really appreciate your help.

Thanks,
Leo
Leo_Surf
 
Posts: 13
Joined: Sat Jan 31, 2009 3:53 am

Postby okli » Fri Sep 11, 2009 5:41 pm

I don't see any point in having Server A as a trunk.

1) Vicidial server-->trunk (Server A)-->VoIP provider/T1
2) Vicidial server-->VoIP provider/T1

Which one has a lot less to worry about?
okli
 
Posts: 671
Joined: Mon Oct 01, 2007 5:09 pm

Postby Leo_Surf » Fri Sep 11, 2009 5:55 pm

Ofcourse the 2nd option is very less to worry about.

But given a scenario, how do we configure the trunk to ensure Server B can make calls out via Server A. Basically how do we configure the trunk here?



Thanks,
Leo
Leo_Surf
 
Posts: 13
Joined: Sat Jan 31, 2009 3:53 am

Postby okli » Fri Sep 11, 2009 6:29 pm

Server A, /etc/asterisk/iax.conf:
Code: Select all
[serverb]
type=friend
auth=md5
secret=password
qualify=yes   
disallow=all
allow=ulaw
;allow=alaw
;allow=gsm
host=dynamic
context=default
deny=0.0.0.0/0.0.0.0
permit=10.17.17.0/255.255.255.0
qualifysmoothing = yes


In asterisk CLI issue:
Code: Select all
iax2 reload


Configure Server B as per Manager's manual, or using this guide:
http://www.vicidial.org/VICIDIALforum/v ... php?t=7777

You have the registration string, amend password and IP.
okli
 
Posts: 671
Joined: Mon Oct 01, 2007 5:09 pm

Postby Leo_Surf » Sat Sep 12, 2009 7:59 am

Thanks much Okli....

Let me try implementing this as see how it goes.


Thanks a ton!!
Leo_Surf
 
Posts: 13
Joined: Sat Jan 31, 2009 3:53 am


Return to Support

Who is online

Users browsing this forum: No registered users and 88 guests