Page 1 of 1

3 voice server load balancing

PostPosted: Tue Mar 27, 2007 9:08 am
by bulcrack
Im wondering hows the dialplan configuration for every server of 3 server load balancing overflow setup.

below is for two servers, how could it be if you have 3 asterisk servers. Any thoughts will be appreciated.

SERVER ONE(ASTtest1-10.10.10.15)
extensions.conf:
[globals]
TRUNKIAX2=IAX2/ASTtest1:test@10.10.10.16

[default]
exten => _010*010*010*016*8600XXX,1,Dial(${TRUNKIAX2}/${EXTEN:16},55,o)
exten => _010*010*010*016*8600XXX,2,Hangup
exten => _010*010*010*015*8600XXX,1,Goto(default,${EXTEN:16},1)

exten => _010*010*010*016*8600XXX*.,1,Dial(${TRUNKIAX2}/${EXTEN:16},55,o)
exten => _010*010*010*015*8600XXX*.,1,Goto(default,${EXTEN:16},1)
exten => _8600XXX*.,1,AGI(agi-VDADfixCXFER.agi)

SERVER TWO(ASTtest2-10.10.10.16)
extensions.conf:
[globals]
TRUNKIAX1=IAX2/ASTtest2:test@10.10.10.15

[default]
exten => _010*010*010*015*8600XXX,1,Dial(${TRUNKIAX1}/${EXTEN:16},55,o)
exten => _010*010*010*015*8600XXX,2,Hangup
exten => _010*010*010*016*8600XXX,1,Goto(default,${EXTEN:16},1)

exten => _010*010*010*015*8600XXX*.,1,Dial(${TRUNKIAX1}/${EXTEN:16},55,o)
exten => _010*010*010*016*8600XXX*.,1,Goto(default,${EXTEN:16},1)
exten => _8600XXX*.,1,AGI(agi-VDADfixCXFER.agi)

PostPosted: Tue Mar 27, 2007 1:41 pm
by mxtreme311
SERVER ONE (ASTtest1-10.10.10.15)
extensions.conf:
[globals]
TRUNKIAX2=IAX2/ASTtest1:test@10.10.10.16
TRUNKIAX3=IAX2/ASTtest1:test@10.10.10.17

[default]
exten => _010*010*010*016*8600XXX,1,Dial(${TRUNKIAX2}/${EXTEN:16},55,o)
exten => _010*010*010*016*8600XXX,2,Hangup
exten => _010*010*010*017*8600XXX,1,Dial(${TRUNKIAX3}/${EXTEN:16},55,o)
exten => _010*010*010*017*8600XXX,2,Hangup

SERVER TWO (ASTtest1-10.10.10.16)
extensions.conf:
[globals]
TRUNKIAX1=IAX2/ASTtest2:test@10.10.10.15
TRUNKIAX3=IAX2/ASTtest2:test@10.10.10.17

[default]
exten => _010*010*010*015*8600XXX,1,Dial(${TRUNKIAX1}/${EXTEN:16},55,o)
exten => _010*010*010*015*8600XXX,2,Hangup
exten => _010*010*010*017*8600XXX,1,Dial(${TRUNKIAX3}/${EXTEN:16},55,o)
exten => _010*010*010*017*8600XXX,2,Hangup

SERVER THREE (ASTtest3-10.10.10.17)
extensions.conf:
[globals]
TRUNKIAX1=IAX2/ASTtest3:test@10.10.10.15
TRUNKIAX2=IAX2/ASTtest3:test@10.10.10.16

[default]
exten => _010*010*010*015*8600XXX,1,Dial(${TRUNKIAX1}/${EXTEN:16},55,o)
exten => _010*010*010*015*8600XXX,2,Hangup
exten => _010*010*010*016*8600XXX,1,Dial(${TRUNKIAX2}/${EXTEN:16},55,o)
exten => _010*010*010*016*8600XXX,2,Hangup

PostPosted: Tue Mar 27, 2007 3:46 pm
by bulcrack
no more like this?


exten => _010*010*010*015*8600XXX*.,1,Dial(${TRUNKIAX1}/${EXTEN:16},55,o)
exten => _010*010*010*016*8600XXX*.,1,Goto(default,${EXTEN:16},1)
exten => _8600XXX*.,1,AGI(agi-VDADfixCXFER.agi)

PostPosted: Wed Mar 28, 2007 1:14 am
by mxtreme311
Yes you'll need this entry on every server as well.

exten => _8600XXX*.,1,AGI(agi-VDADfixCXFER.agi)

PostPosted: Wed Mar 28, 2007 6:39 am
by bulcrack
Have you tried to setup and Agent-only and Dialout servers?

PostPosted: Wed Mar 28, 2007 4:38 pm
by mflorell
I am beginning to wonder why I put that "Hangup" step in the instructions, I will have to look into that.

I have setup dialing-only and agent only, it works just fine, but I would recommend using current SVN code or waiting for 2.0.3 because I have fixed several issues with it recently.

PostPosted: Thu Mar 29, 2007 9:19 am
by mflorell
I have updated the LOAD_BALANCING.txt doc in SVN to have 3-server load balancing conf examples.