В зависимости от полученного случайного числа (равномерное распределение) передаем либо в свой, либо в посторонний КЦ. 50 - порог, если поменять, то соотношение переданных звонков изменится.
same => n,Answer
same => n,Set(TIMEOUT(response)=30)
same => n,Background(announce/announce180122)
same => n,Background(silence/5)
same => n,Macro(recording,${CALLERID(num)},${EXTEN})
same => n,Set(WhoServe=${RAND(1,100)})
same => n,Verbose("WhoServe is ${WhoServe}")
same => n,Gotoif($[${WhoServe} > 50]?ownday)
same => n(outsourceday),Dial(sip/+74951112233@outsource,300,'g')
same => n,Hangup()
same => n(ownday),Queue(callcenter,t,,,600)
same => n,Hangup()
same => n,Set(TIMEOUT(response)=30)
same => n,Background(announce/announce180122)
same => n,Background(silence/5)
same => n,Macro(recording,${CALLERID(num)},${EXTEN})
same => n,Set(WhoServe=${RAND(1,100)})
same => n,Verbose("WhoServe is ${WhoServe}")
same => n,Gotoif($[${WhoServe} > 50]?ownday)
same => n(outsourceday),Dial(sip/+74951112233@outsource,300,'g')
same => n,Hangup()
same => n(ownday),Queue(callcenter,t,,,600)
same => n,Hangup()