Re: Ограничение на количество исходящих звонков для пиров
типа того (использован пример meral`a)
exten => _X.,1,dial(LOCAL/${EXTEN}@provider01&LOCAL/${EXTEN}@provider03&LOCAL/${EXTEN}@provider03)
[provider01]
exten => _X.,1,set(GROUP()=mygroup01)
exten => _X.,2,gotoif($[ "${GROUP_COUNT()} >1 ]?20:10)
....
exten => _X.,10,DIAL(SIP/telephone,,);zdes' esli net zvonkov
....
exten => _X.,20,noop;zdes' esli est' zvonki
[provider02]
exten => _X.,1,set(GROUP()=mygrou02)
exten => _X.,2,gotoif($[ "${GROUP_COUNT()} >1 ]?20:10)
....
exten => _X.,10,DIAL(SIP/telephone,,);zdes' esli net zvonkov
....
exten => _X.,20,noop;zdes' esli est' zvonki
[provider03]
exten => _X.,1,set(GROUP()=mygroup03)
exten => _X.,2,gotoif($[ "${GROUP_COUNT()} >1 ]?20:10)
....
exten => _X.,10,DIAL(SIP/telephone,,);zdes' esli net zvonkov
....
exten => _X.,20,noop;zdes' esli est' zvonki
|