exten => _7X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _7X.,n,Dial(${ABC}/${EXTEN:1},10000,To)
exten => _7X.,n,Hangup
in ABC
exten => _8X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _8X.,n,Dial(${XYZ}/${EXTEN:1},10000,To)
exten => _8X.,n,Hangup
and in same XYZ
exten => _9X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9X.,n,Dial(${ABC}/${EXTEN:1},10000,To)
exten => _9X.,n,Dial(${XYZ}/${EXTEN:1},10000,To)
exten => _9X.,n,Hangup
or
exten => _6X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _6X.,n,Set(Trunk=${RAND(1|2)})
exten => _6X.,n,GoToIf($[${Trunk} = 1]?trunkA)
exten => _6X.,n,GoToIf($[${Trunk} = 2]?trunkB)
exten => _6X.,n(trunkA),Dial(${ABC}/${EXTEN:1},,tToR)
exten => _6X.,n(trunkB),Dial(${XYZ}/${EXTEN:1},,tToR)
exten => _6X.,n,Hangup
then in campaing set the PREFIX as per ur requirement
7 to dial via ABC
8 to dial via XYZ
9 to dial via the failover dialplan
6 to dial via the random dialplan
exten => _9X.,n,Set(Trunk=${RAND(1|2)})
exten => _9X.,n,GoToIf($[${Trunk} = 1]?trunkA)
exten => _9X.,n,GoToIf($[${Trunk} = 2]?trunkB)
exten => _9X.,n(trunkA),Dial(${600}/${
exten => _9X.,n(trunkB),Dial(${700}/${
exten => _9X.,n,Hangup
exten => _9044X.,1,AGI(agi://127.0.0.1:
exten => _9044X.,n,Set(Trunk=${RAND(1|
exten => _9044X.,n,GoToIf($[${Trunk} = 1]?trunkA)
exten => _9044X.,n,GoToIf($[${Trunk} = 2]?trunkB)
exten => _9044X.,n,GoToIf($[${Trunk} = 3]?trunkC)
exten => _9044X.,n(trunkA),Dial(${
exten => _9044X.,n(trunkB),Dial(${
exten => _9044X.,n(trunkC),Dial(${
exten => _9044X.,n,Hangup
Comments
Post a Comment