Пожалуйста, войдите здесь. Часто задаваемые вопросы О нас
Задайте Ваш вопрос

История изменений [назад]

нажмите, чтобы скрыть/показать версии 1
изначальная версия
редактировать

спросил 2016-03-16 18:45:25 +0400

sattva Gravatar sattva

PearlPBX + приоритет в очереди

Доброго времени суток. Используем сборку asterisk 11.6 PearlPBX. Разработчик техподдержку не оказывает (разовали договор), требуется настроить стратегию очереди таким образом:

Blockquote В очереди на прием звонков находятся следующие операторы:

[root@pearlpbx asterisk]# asterisk -rx "queue show" CallCenter has 0 calls (max unlimited) in 'ringall' strategy (3s holdtime, 137s talktime), W:0, C:3294, A:395, SL:0.1% within 0s Members: 731 (SIP/731 from SIP/731) with penalty 1 (ringinuse disabled) (realtime) (Not in use) has taken 132 calls (last was 68032 secs ago) 765 (SIP/765 from SIP/765) with penalty 1 (ringinuse disabled) (realtime) (Not in use) has taken 76 calls (last was 81980 secs ago) 761 (SIP/761 from SIP/761) with penalty 1 (ringinuse disabled) (realtime) (In use) has taken 266 calls (last was 1117 secs ago) 722 (SIP/722 from SIP/722) with penalty 1 (ringinuse disabled) (realtime) (Not in use) has taken 264 calls (last was 1040 secs ago) 711 (SIP/711 from SIP/711) with penalty 1 (ringinuse disabled) (realtime) (Not in use) has taken 256 calls (last was 1338 secs ago) 744 (SIP/744 from SIP/744) (ringinuse disabled) (realtime) (Not in use) has taken 1183 calls (last was 2 secs ago) 743 (SIP/743 from SIP/743) (ringinuse disabled) (realtime) (Unavailable) has taken 70 calls (last was 170178 secs ago) 741 (SIP/741 from SIP/741) (ringinuse disabled) (realtime) (Not in use) has taken 1024 calls (last was 267 secs ago) 771 (SIP/771 from SIP/771) with penalty 1 (ringinuse disabled) (realtime) (paused) (Not in use) has taken 23 calls (last was 1029571 secs ago) No Callers

741+743+744 имеют повышенный приоритет и именно им направляется звонок в первые 15 секунд. Потом звонок идет на всех, кто не в состоянии "пауза". Состояние "пауза" генерируется по графику и описано ниже в коде диалплана.

Blockquote

Вот кусок диалплана

PearlPBX + приоритет в очереди

Доброго времени суток. Используем сборку asterisk 11.6 PearlPBX. Разработчик техподдержку не оказывает (разовали договор), требуется настроить стратегию очереди таким образом:

Blockquote

В очереди на прием звонков находятся следующие операторы:

[root@pearlpbx asterisk]# asterisk -rx "queue show" CallCenter has 0 calls (max unlimited) in 'ringall' strategy (3s holdtime, 137s talktime), W:0, C:3294, A:395, SL:0.1% within 0s Members: 731 (SIP/731 from SIP/731) with penalty 1 (ringinuse disabled) (realtime) (Not in use) has taken 132 calls (last was 68032 secs ago) 765 (SIP/765 from SIP/765) with penalty 1 (ringinuse disabled) (realtime) (Not in use) has taken 76 calls (last was 81980 secs ago) 761 (SIP/761 from SIP/761) with penalty 1 (ringinuse disabled) (realtime) (In use) has taken 266 calls (last was 1117 secs ago) 722 (SIP/722 from SIP/722) with penalty 1 (ringinuse disabled) (realtime) (Not in use) has taken 264 calls (last was 1040 secs ago) 711 (SIP/711 from SIP/711) with penalty 1 (ringinuse disabled) (realtime) (Not in use) has taken 256 calls (last was 1338 secs ago) 744 (SIP/744 from SIP/744) (ringinuse disabled) (realtime) (Not in use) has taken 1183 calls (last was 2 secs ago) 743 (SIP/743 from SIP/743) (ringinuse disabled) (realtime) (Unavailable) has taken 70 calls (last was 170178 secs ago) 741 (SIP/741 from SIP/741) (ringinuse disabled) (realtime) (Not in use) has taken 1024 calls (last was 267 secs ago) 771 (SIP/771 from SIP/771) with penalty 1 (ringinuse disabled) (realtime) (paused) (Not in use) has taken 23 calls (last was 1029571 secs ago) No Callers

741+743+744 имеют должны имеють повышенный приоритет и именно им направляется звонок в первые 15 секунд. Потом звонок идет на всех, кто не в состоянии "пауза". Состояние "пауза" генерируется по графику и описано ниже в коде диалплана.

Blockquote

Вот кусок диалплана

[CallCenter] exten => X!,1,Wait(1) exten => _X!,n,Answer() ;exten => _X!,n,Playback(pearlpbx/custom/Vasvitaemedichnijcentr_Asklepij) exten => _X!,n,GotoIfTime(08:00-17:00,mon-fri,,?20) exten => _X!,n,GotoIfTime(17:00-19:00,mon-fri,,?30) exten => _X!,n,GotoIfTime(19:00-21:00,mon-fri,,?40) exten => _X!,n,GotoIfTime(21:00-23:00,mon-fri,,?50) exten => _X!,n,GotoIfTime(08:00-12:00,sat,,?60) exten => _X!,n,GotoIfTime(12:00-14:00,sat,,?70)

exten => X!,n,NoOp(HE PABOTAEM) exten => _X!,n,Playback(pearlpbx/nerabotaem20150312) ;exten => _X!,n,Playback(pearlpbx/custom/VasvitaemedichnijcentrAsklepij) ;exten => _X!,n,Playback(pearlpbx/custom/Nazhalzarazminemozhemovidpovistinavashdzvinok) ;exten => _X!,n,Playback(pearlpbx/custom/Boguniya8-23) ;exten => X!,n,Playback(pearlpbx/custom/Peretelefonujtebud-laskavrobochijchas) ;exten => _X!,n,Playback(pearlpbx/custom/Djakuemozarozuminnja2) ;exten => _X!,n,Playback(pearlpbx/custom/WaitinForYouCall) exten => _X!,n,Hangup(16) ; 8:00-17:00 Zvonki postupayut na vseh krome(711; 761; 771; 743) exten => _X!,20,NoOp exten => _X!,n,GoSub(subUnpauseAll,start,1()) exten => _X!,n,PauseQueueMember(CallCenter,SIP/711) exten => _X!,n,PauseQueueMember(CallCenter,SIP/761) exten => _X!,n,PauseQueueMember(CallCenter,SIP/771) exten => _X!,n,PauseQueueMember(CallCenter,SIP/743) exten => _X!,n,Goto(100) ; 17:00-19:00 Zvonki postupayut tolko na Shevchenko 14 (761) exten => _X!,30,NoOp exten => _X!,n,GoSub(subPauseAll,start,1()) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/761) exten => _X!,n,Goto(100) ; 19:00-21:00 Zvonki postupayut tolko na Vokzalnaya, 12 (711) exten => _X!,40,NoOp exten => _X!,n,GoSub(subPauseAll,start,1()) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/711) exten => _X!,n,Goto(100) ; 21:00-23:00 Zvonki postupayut tolko na Vokzalnaya 12 (711) exten => _X!,50,NoOp exten => _X!,n,GoSub(subPauseAll,start,1()) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/711) exten => _X!,n,Goto(100) ; SatAM 8:00-12:00 Zvonki postupayut tolko na CallCenter (741; 744) exten => _X!,60,NoOp exten => _X!,n,GoSub(subPauseAll,start,1()) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/741) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/744) exten => _X!,n,Goto(100) ; SatPM 12:00-14:00 Zvonki postupayut tolko na Shevchenko 14 (761) exten => _X!,70,NoOp exten => _X!,n,GoSub(subPauseAll,start,1()) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/761) exten => _X!,n,Goto(100)

; Queue exten => X!,100,Playback(pearlpbx/custom/Vasvitaemedichnijcentr_Asklepij) exten => _X!,n,Queue(CallCenter,rtT) exten => _X!,n,Hangup()

exten => _X!,150,AGI(PearlPBX-callback-add.pl,${CALLERID(num)},${EXTEN},${CHANNEL}) exten => _X!,n,Hangup();

[subPauseAll] exten => start,1,PauseQueueMember(CallCenter,SIP/711) same => n,PauseQueueMember(CallCenter,SIP/741) same => n,PauseQueueMember(CallCenter,SIP/743) same => n,PauseQueueMember(CallCenter,SIP/744) same => n,PauseQueueMember(CallCenter,SIP/722) same => n,PauseQueueMember(CallCenter,SIP/731) same => n,PauseQueueMember(CallCenter,SIP/761) same => n,PauseQueueMember(CallCenter,SIP/765) same => n,PauseQueueMember(CallCenter,SIP/771) same => n,PauseQueueMember(CallCenter,SIP/790) same => n,PauseQueueMember(CallCenter,SIP/791) same => n,PauseQueueMember(CallCenter,SIP/798) same => n,Return()

[subUnpauseAll] exten => start,1,UnpauseQueueMember(CallCenter,SIP/711) same => n,UnpauseQueueMember(CallCenter,SIP/741) same => n,UnpauseQueueMember(CallCenter,SIP/743) same => n,UnpauseQueueMember(CallCenter,SIP/744) same => n,UnpauseQueueMember(CallCenter,SIP/722) same => n,UnpauseQueueMember(CallCenter,SIP/731) same => n,UnpauseQueueMember(CallCenter,SIP/761) same => n,UnpauseQueueMember(CallCenter,SIP/765) same => n,UnpauseQueueMember(CallCenter,SIP/771) same => n,UnpauseQueueMember(CallCenter,SIP/790) same => n,UnpauseQueueMember(CallCenter,SIP/791) same => n,UnpauseQueueMember(CallCenter,SIP/798) same => n,Return()

;[Saturday] ;switch => Realtime/Saturday@extensions

741+743+744 должны имеють повышенный приоритет и именно им направляется звонок в первые 15 секунд. - КАК ЭТО РЕАЛИЗОВАТЬ?

PearlPBX + приоритет в очереди

Доброго времени суток. Используем сборку asterisk 11.6 PearlPBX. Разработчик техподдержку не оказывает (разовали договор), требуется настроить стратегию очереди таким образом:

В очереди на прием звонков находятся следующие операторы:

[root@pearlpbx asterisk]# asterisk -rx "queue show" CallCenter has 0 calls (max unlimited) in 'ringall' strategy (3s holdtime, 137s talktime), W:0, C:3294, A:395, SL:0.1% within 0s Members: 731 (SIP/731 from SIP/731) with penalty 1 (ringinuse disabled) (realtime) (Not in use) has taken 132 calls (last was 68032 secs ago) 765 (SIP/765 from SIP/765) with penalty 1 (ringinuse disabled) (realtime) (Not in use) has taken 76 calls (last was 81980 secs ago) 761 (SIP/761 from SIP/761) with penalty 1 (ringinuse disabled) (realtime) (In use) has taken 266 calls (last was 1117 secs ago) 722 (SIP/722 from SIP/722) with penalty 1 (ringinuse disabled) (realtime) (Not in use) has taken 264 calls (last was 1040 secs ago) 711 (SIP/711 from SIP/711) with penalty 1 (ringinuse disabled) (realtime) (Not in use) has taken 256 calls (last was 1338 secs ago) 744 (SIP/744 from SIP/744) (ringinuse disabled) (realtime) (Not in use) has taken 1183 calls (last was 2 secs ago) 743 (SIP/743 from SIP/743) (ringinuse disabled) (realtime) (Unavailable) has taken 70 calls (last was 170178 secs ago) 741 (SIP/741 from SIP/741) (ringinuse disabled) (realtime) (Not in use) has taken 1024 calls (last was 267 secs ago) 771 (SIP/771 from SIP/771) with penalty 1 (ringinuse disabled) (realtime) (paused) (Not in use) has taken 23 calls (last was 1029571 secs ago) No Callers

741+743+744 должны имеють повышенный приоритет и именно им направляется звонок в первые 15 секунд. Потом звонок идет на всех, кто не в состоянии "пауза". Состояние "пауза" генерируется по графику и описано ниже в коде диалплана.

Blockquote

Вот кусок диалплана

[CallCenter] exten => X!,1,Wait(1) exten => _X!,n,Answer() ;exten => _X!,n,Playback(pearlpbx/custom/Vasvitaemedichnijcentr_Asklepij) exten => _X!,n,GotoIfTime(08:00-17:00,mon-fri,,?20) exten => _X!,n,GotoIfTime(17:00-19:00,mon-fri,,?30) exten => _X!,n,GotoIfTime(19:00-21:00,mon-fri,,?40) exten => _X!,n,GotoIfTime(21:00-23:00,mon-fri,,?50) exten => _X!,n,GotoIfTime(08:00-12:00,sat,,?60) exten => _X!,n,GotoIfTime(12:00-14:00,sat,,?70)

exten => X!,n,NoOp(HE PABOTAEM) exten => _X!,n,Playback(pearlpbx/nerabotaem20150312) ;exten => _X!,n,Playback(pearlpbx/custom/VasvitaemedichnijcentrAsklepij) ;exten => _X!,n,Playback(pearlpbx/custom/Nazhalzarazminemozhemovidpovistinavashdzvinok) ;exten => _X!,n,Playback(pearlpbx/custom/Boguniya8-23) ;exten => X!,n,Playback(pearlpbx/custom/Peretelefonujtebud-laskavrobochijchas) ;exten => _X!,n,Playback(pearlpbx/custom/Djakuemozarozuminnja2) ;exten => _X!,n,Playback(pearlpbx/custom/WaitinForYouCall) exten => _X!,n,Hangup(16) ; 8:00-17:00 Zvonki postupayut na vseh krome(711; 761; 771; 743) exten => _X!,20,NoOp exten => _X!,n,GoSub(subUnpauseAll,start,1()) exten => _X!,n,PauseQueueMember(CallCenter,SIP/711) exten => _X!,n,PauseQueueMember(CallCenter,SIP/761) exten => _X!,n,PauseQueueMember(CallCenter,SIP/771) exten => _X!,n,PauseQueueMember(CallCenter,SIP/743) exten => _X!,n,Goto(100) ; 17:00-19:00 Zvonki postupayut tolko na Shevchenko 14 (761) exten => _X!,30,NoOp exten => _X!,n,GoSub(subPauseAll,start,1()) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/761) exten => _X!,n,Goto(100) ; 19:00-21:00 Zvonki postupayut tolko na Vokzalnaya, 12 (711) exten => _X!,40,NoOp exten => _X!,n,GoSub(subPauseAll,start,1()) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/711) exten => _X!,n,Goto(100) ; 21:00-23:00 Zvonki postupayut tolko na Vokzalnaya 12 (711) exten => _X!,50,NoOp exten => _X!,n,GoSub(subPauseAll,start,1()) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/711) exten => _X!,n,Goto(100) ; SatAM 8:00-12:00 Zvonki postupayut tolko na CallCenter (741; 744) exten => _X!,60,NoOp exten => _X!,n,GoSub(subPauseAll,start,1()) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/741) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/744) exten => _X!,n,Goto(100) ; SatPM 12:00-14:00 Zvonki postupayut tolko na Shevchenko 14 (761) exten => _X!,70,NoOp exten => _X!,n,GoSub(subPauseAll,start,1()) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/761) exten => _X!,n,Goto(100)

; Queue exten => X!,100,Playback(pearlpbx/custom/Vasvitaemedichnijcentr_Asklepij) exten => _X!,n,Queue(CallCenter,rtT) exten => _X!,n,Hangup()

exten => _X!,150,AGI(PearlPBX-callback-add.pl,${CALLERID(num)},${EXTEN},${CHANNEL}) exten => _X!,n,Hangup();

[subPauseAll] exten => start,1,PauseQueueMember(CallCenter,SIP/711) same => n,PauseQueueMember(CallCenter,SIP/741) same => n,PauseQueueMember(CallCenter,SIP/743) same => n,PauseQueueMember(CallCenter,SIP/744) same => n,PauseQueueMember(CallCenter,SIP/722) same => n,PauseQueueMember(CallCenter,SIP/731) same => n,PauseQueueMember(CallCenter,SIP/761) same => n,PauseQueueMember(CallCenter,SIP/765) same => n,PauseQueueMember(CallCenter,SIP/771) same => n,PauseQueueMember(CallCenter,SIP/790) same => n,PauseQueueMember(CallCenter,SIP/791) same => n,PauseQueueMember(CallCenter,SIP/798) same => n,Return()

[subUnpauseAll] exten => start,1,UnpauseQueueMember(CallCenter,SIP/711) same => n,UnpauseQueueMember(CallCenter,SIP/741) same => n,UnpauseQueueMember(CallCenter,SIP/743) same => n,UnpauseQueueMember(CallCenter,SIP/744) same => n,UnpauseQueueMember(CallCenter,SIP/722) same => n,UnpauseQueueMember(CallCenter,SIP/731) same => n,UnpauseQueueMember(CallCenter,SIP/761) same => n,UnpauseQueueMember(CallCenter,SIP/765) same => n,UnpauseQueueMember(CallCenter,SIP/771) same => n,UnpauseQueueMember(CallCenter,SIP/790) same => n,UnpauseQueueMember(CallCenter,SIP/791) same => n,UnpauseQueueMember(CallCenter,SIP/798) same => n,Return()

;[Saturday] ;switch => Realtime/Saturday@extensions

741+743+744 должны имеють повышенный приоритет и именно им направляется звонок в первые 15 секунд. - КАК ЭТО РЕАЛИЗОВАТЬ?

PearlPBX + приоритет в очереди

Доброго времени суток. Используем сборку asterisk 11.6 PearlPBX. Разработчик техподдержку не оказывает (разовали договор), требуется настроить стратегию очереди таким образом:

В очереди на прием звонков находятся следующие операторы:

[root@pearlpbx asterisk]# asterisk -rx -rx "queue show" show" CallCenter has 0 calls calls (max unlimited) in 'ringall' strategy strategy (3s holdtime, 137s talktime), W:0, W:0, C:3294, A:395, SL:0.1% within 0s 0s
Members: 731 (SIP/731 from SIP/731) with penalty 1 (ringinuse disabled) disabled) (realtime) (Not in use) has taken 132 132 calls (last was 68032 secs ago) 765 (SIP/765 from SIP/765) with penalty 1 (ringinuse disabled) disabled) (realtime) (Not in use) has taken 76 76 calls (last was 81980 secs ago) 761 (SIP/761 from SIP/761) with penalty 1 (ringinuse disabled) disabled) (realtime) (In use) has taken 266 266 calls (last was 1117 secs ago) 722 (SIP/722 from SIP/722) with penalty 1 (ringinuse disabled) disabled) (realtime) (Not in use) has taken 264 264 calls (last was 1040 secs ago) 711 (SIP/711 from SIP/711) with penalty 1 (ringinuse disabled) disabled) (realtime) (Not in use) has taken 256 256 calls (last was 1338 secs ago) 744 (SIP/744 from SIP/744) (ringinuse disabled) (realtime) (Not (Not in use) has taken 1183 calls (last was was 2 secs ago) 743 (SIP/743 from SIP/743) (ringinuse disabled) (realtime) (realtime) (Unavailable) has taken 70 calls (last (last was 170178 secs ago) 741 (SIP/741 from SIP/741) (ringinuse disabled) (realtime) (Not (Not in use) has taken 1024 calls (last was was 267 secs ago) 771 (SIP/771 from SIP/771) with penalty 1 (ringinuse disabled) disabled) (realtime) (paused) (Not in use) has has taken 23 calls (last was 1029571 secs ago) secs ago) No Callers

741+743+744 должны имеють повышенный приоритет и именно им направляется звонок в первые 15 секунд. Потом звонок идет на всех, кто не в состоянии "пауза". Состояние "пауза" генерируется по графику и описано ниже в коде диалплана.

Вот кусок диалплана

[CallCenter] exten => X!,1,Wait(1) exten => _X!,n,Answer() ;exten => _X!,n,Playback(pearlpbx/custom/Vasvitaemedichnijcentr_Asklepij) exten => _X!,n,GotoIfTime(08:00-17:00,mon-fri,,?20) exten => _X!,n,GotoIfTime(17:00-19:00,mon-fri,,?30) exten => _X!,n,GotoIfTime(19:00-21:00,mon-fri,,?40) exten => _X!,n,GotoIfTime(21:00-23:00,mon-fri,,?50) exten => _X!,n,GotoIfTime(08:00-12:00,sat,,?60) exten => _X!,n,GotoIfTime(12:00-14:00,sat,,?70)

exten => X!,n,NoOp(HE PABOTAEM) exten => _X!,n,Playback(pearlpbx/nerabotaem20150312) ;exten => _X!,n,Playback(pearlpbx/custom/VasvitaemedichnijcentrAsklepij) ;exten => _X!,n,Playback(pearlpbx/custom/Nazhalzarazminemozhemovidpovistinavashdzvinok) ;exten => _X!,n,Playback(pearlpbx/custom/Boguniya8-23) ;exten => X!,n,Playback(pearlpbx/custom/Peretelefonujtebud-laskavrobochijchas) ;exten => _X!,n,Playback(pearlpbx/custom/Djakuemozarozuminnja2) ;exten => _X!,n,Playback(pearlpbx/custom/WaitinForYouCall) exten => _X!,n,Hangup(16) ; 8:00-17:00 Zvonki postupayut na vseh krome(711; 761; 771; 743) exten => _X!,20,NoOp exten => _X!,n,GoSub(subUnpauseAll,start,1()) exten => _X!,n,PauseQueueMember(CallCenter,SIP/711) exten => _X!,n,PauseQueueMember(CallCenter,SIP/761) exten => _X!,n,PauseQueueMember(CallCenter,SIP/771) exten => _X!,n,PauseQueueMember(CallCenter,SIP/743) exten => _X!,n,Goto(100) ; 17:00-19:00 Zvonki postupayut tolko na Shevchenko 14 (761) exten => _X!,30,NoOp exten => _X!,n,GoSub(subPauseAll,start,1()) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/761) exten => _X!,n,Goto(100) ; 19:00-21:00 Zvonki postupayut tolko na Vokzalnaya, 12 (711) exten => _X!,40,NoOp exten => _X!,n,GoSub(subPauseAll,start,1()) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/711) exten => _X!,n,Goto(100) ; 21:00-23:00 Zvonki postupayut tolko na Vokzalnaya 12 (711) exten => _X!,50,NoOp exten => _X!,n,GoSub(subPauseAll,start,1()) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/711) exten => _X!,n,Goto(100) ; SatAM 8:00-12:00 Zvonki postupayut tolko na CallCenter (741; 744) exten => _X!,60,NoOp exten => _X!,n,GoSub(subPauseAll,start,1()) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/741) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/744) exten => _X!,n,Goto(100) ; SatPM 12:00-14:00 Zvonki postupayut tolko na Shevchenko 14 (761) exten => _X!,70,NoOp exten => _X!,n,GoSub(subPauseAll,start,1()) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/761) exten => _X!,n,Goto(100)

; Queue exten => X!,100,Playback(pearlpbx/custom/Vasvitaemedichnijcentr_Asklepij) exten => _X!,n,Queue(CallCenter,rtT) exten => _X!,n,Hangup()

exten => _X!,150,AGI(PearlPBX-callback-add.pl,${CALLERID(num)},${EXTEN},${CHANNEL}) exten => _X!,n,Hangup();

[subPauseAll] exten => start,1,PauseQueueMember(CallCenter,SIP/711) same => n,PauseQueueMember(CallCenter,SIP/741) same => n,PauseQueueMember(CallCenter,SIP/743) same => n,PauseQueueMember(CallCenter,SIP/744) same => n,PauseQueueMember(CallCenter,SIP/722) same => n,PauseQueueMember(CallCenter,SIP/731) same => n,PauseQueueMember(CallCenter,SIP/761) same => n,PauseQueueMember(CallCenter,SIP/765) same => n,PauseQueueMember(CallCenter,SIP/771) same => n,PauseQueueMember(CallCenter,SIP/790) same => n,PauseQueueMember(CallCenter,SIP/791) same => n,PauseQueueMember(CallCenter,SIP/798) same => n,Return()

[subUnpauseAll] exten => start,1,UnpauseQueueMember(CallCenter,SIP/711) same => n,UnpauseQueueMember(CallCenter,SIP/741) same => n,UnpauseQueueMember(CallCenter,SIP/743) same => n,UnpauseQueueMember(CallCenter,SIP/744) same => n,UnpauseQueueMember(CallCenter,SIP/722) same => n,UnpauseQueueMember(CallCenter,SIP/731) same => n,UnpauseQueueMember(CallCenter,SIP/761) same => n,UnpauseQueueMember(CallCenter,SIP/765) same => n,UnpauseQueueMember(CallCenter,SIP/771) same => n,UnpauseQueueMember(CallCenter,SIP/790) same => n,UnpauseQueueMember(CallCenter,SIP/791) same => n,UnpauseQueueMember(CallCenter,SIP/798) same => n,Return()

;[Saturday] ;switch => Realtime/Saturday@extensions

741+743+744 должны имеють повышенный приоритет и именно им направляется звонок в первые 15 секунд. - КАК ЭТО РЕАЛИЗОВАТЬ?

PearlPBX + приоритет в очереди

Доброго времени суток. Используем сборку asterisk 11.6 PearlPBX. Разработчик техподдержку не оказывает (разовали договор), требуется настроить стратегию очереди таким образом:

В очереди на прием звонков находятся следующие операторы:

[root@pearlpbx asterisk]# asterisk -rx "queue show" CallCenter has 0 calls (max unlimited) in 'ringall' strategy (3s holdtime, 137s talktime), W:0, C:3294, A:395, SL:0.1% within 0s
Members: 731 (SIP/731 from SIP/731) with penalty 1 (ringinuse disabled) (realtime) (Not in use) has taken 132 calls (last was 68032 secs ago) 765 (SIP/765 from SIP/765) with penalty 1 (ringinuse disabled) (realtime) (Not in use) has taken 76 calls (last was 81980 secs ago) 761 (SIP/761 from SIP/761) with penalty 1 (ringinuse disabled) (realtime) (In use) has taken 266 calls (last was 1117 secs ago) 722 (SIP/722 from SIP/722) with penalty 1 (ringinuse disabled) (realtime) (Not in use) has taken 264 calls (last was 1040 secs ago) 711 (SIP/711 from SIP/711) with penalty 1 (ringinuse disabled) (realtime) (Not in use) has taken 256 calls (last was 1338 secs ago) 744 (SIP/744 from SIP/744) (ringinuse disabled) (realtime) (Not in use) has taken 1183 calls (last was 2 secs ago) 743 (SIP/743 from SIP/743) (ringinuse disabled) (realtime) (Unavailable) has taken 70 calls (last was 170178 secs ago) 741 (SIP/741 from SIP/741) (ringinuse disabled) (realtime) (Not in use) has taken 1024 calls (last was 267 secs ago) 771 (SIP/771 from SIP/771) with penalty 1 (ringinuse disabled) (realtime) (paused) (Not in use) has taken 23 calls (last was 1029571 secs ago) No Callers

741+743+744 должны имеють повышенный приоритет и именно им направляется звонок в первые 15 секунд. Потом звонок идет на всех, кто не в состоянии "пауза". Состояние "пауза" генерируется по графику и описано ниже в коде диалплана.

Вот кусок диалплана

[CallCenter] exten => X!,1,Wait(1) exten => _X!,n,Answer() ;exten => _X!,n,Playback(pearlpbx/custom/Vasvitaemedichnijcentr_Asklepij) exten => _X!,n,GotoIfTime(08:00-17:00,mon-fri,,?20) exten => _X!,n,GotoIfTime(17:00-19:00,mon-fri,,?30) exten => _X!,n,GotoIfTime(19:00-21:00,mon-fri,,?40) exten => _X!,n,GotoIfTime(21:00-23:00,mon-fri,,?50) exten => _X!,n,GotoIfTime(08:00-12:00,sat,,?60) exten => _X!,n,GotoIfTime(12:00-14:00,sat,,?70)

exten => X!,n,NoOp(HE PABOTAEM) exten => _X!,n,Playback(pearlpbx/nerabotaem20150312) ;exten => _X!,n,Playback(pearlpbx/custom/VasvitaemedichnijcentrAsklepij) ;exten => _X!,n,Playback(pearlpbx/custom/Nazhalzarazminemozhemovidpovistinavashdzvinok) ;exten => _X!,n,Playback(pearlpbx/custom/Boguniya8-23) ;exten => X!,n,Playback(pearlpbx/custom/Peretelefonujtebud-laskavrobochijchas) ;exten => _X!,n,Playback(pearlpbx/custom/Djakuemozarozuminnja2) ;exten => _X!,n,Playback(pearlpbx/custom/WaitinForYouCall) exten => _X!,n,Hangup(16) ; 8:00-17:00 Zvonki postupayut na vseh krome(711; 761; 771; 743) exten => _X!,20,NoOp exten => _X!,n,GoSub(subUnpauseAll,start,1()) exten => _X!,n,PauseQueueMember(CallCenter,SIP/711) exten => _X!,n,PauseQueueMember(CallCenter,SIP/761) exten => _X!,n,PauseQueueMember(CallCenter,SIP/771) exten => _X!,n,PauseQueueMember(CallCenter,SIP/743) exten => _X!,n,Goto(100) ; 17:00-19:00 Zvonki postupayut tolko na Shevchenko 14 (761) exten => _X!,30,NoOp exten => _X!,n,GoSub(subPauseAll,start,1()) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/761) exten => _X!,n,Goto(100) ; 19:00-21:00 Zvonki postupayut tolko na Vokzalnaya, 12 (711) exten => _X!,40,NoOp exten => _X!,n,GoSub(subPauseAll,start,1()) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/711) exten => _X!,n,Goto(100) ; 21:00-23:00 Zvonki postupayut tolko na Vokzalnaya 12 (711) exten => _X!,50,NoOp exten => _X!,n,GoSub(subPauseAll,start,1()) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/711) exten => _X!,n,Goto(100) ; SatAM 8:00-12:00 Zvonki postupayut tolko na CallCenter (741; 744) exten => _X!,60,NoOp exten => _X!,n,GoSub(subPauseAll,start,1()) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/741) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/744) exten => _X!,n,Goto(100) ; SatPM 12:00-14:00 Zvonki postupayut tolko na Shevchenko 14 (761) exten => _X!,70,NoOp exten => _X!,n,GoSub(subPauseAll,start,1()) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/761) exten => _X!,n,Goto(100)

; Queue exten => X!,100,Playback(pearlpbx/custom/Vasvitaemedichnijcentr_Asklepij) exten => _X!,n,Queue(CallCenter,rtT) exten => _X!,n,Hangup()

exten => _X!,150,AGI(PearlPBX-callback-add.pl,${CALLERID(num)},${EXTEN},${CHANNEL}) exten => _X!,n,Hangup();

[subPauseAll] exten => start,1,PauseQueueMember(CallCenter,SIP/711) same => n,PauseQueueMember(CallCenter,SIP/741) same => n,PauseQueueMember(CallCenter,SIP/743) same => n,PauseQueueMember(CallCenter,SIP/744) same => n,PauseQueueMember(CallCenter,SIP/722) same => n,PauseQueueMember(CallCenter,SIP/731) same => n,PauseQueueMember(CallCenter,SIP/761) same => n,PauseQueueMember(CallCenter,SIP/765) same => n,PauseQueueMember(CallCenter,SIP/771) same => n,PauseQueueMember(CallCenter,SIP/790) same => n,PauseQueueMember(CallCenter,SIP/791) same => n,PauseQueueMember(CallCenter,SIP/798) same => n,Return()

[subUnpauseAll] exten => start,1,UnpauseQueueMember(CallCenter,SIP/711) same => n,UnpauseQueueMember(CallCenter,SIP/741) same => n,UnpauseQueueMember(CallCenter,SIP/743) same => n,UnpauseQueueMember(CallCenter,SIP/744) same => n,UnpauseQueueMember(CallCenter,SIP/722) same => n,UnpauseQueueMember(CallCenter,SIP/731) same => n,UnpauseQueueMember(CallCenter,SIP/761) same => n,UnpauseQueueMember(CallCenter,SIP/765) same => n,UnpauseQueueMember(CallCenter,SIP/771) same => n,UnpauseQueueMember(CallCenter,SIP/790) same => n,UnpauseQueueMember(CallCenter,SIP/791) same => n,UnpauseQueueMember(CallCenter,SIP/798) same => n,Return()

;[Saturday] ;switch => Realtime/Saturday@extensions

741+743+744

!!741+743+744 должны имеють повышенный приоритет и именно им направляется звонок в первые 15 секунд. - КАК ЭТО РЕАЛИЗОВАТЬ?

PearlPBX + приоритет в очереди

Доброго времени суток. Используем сборку asterisk 11.6 PearlPBX. Разработчик техподдержку не оказывает (разовали договор), требуется настроить стратегию очереди таким образом:

В очереди на прием звонков находятся следующие операторы:

> [root@pearlpbx asterisk]# asterisk -rx
 > "queue show" CallCenter has 0 calls
 > (max unlimited) in 'ringall' strategy
 > (3s holdtime, 137s talktime), W:0,
 > C:3294, A:395, SL:0.1% within 0s 
> Members: > 731 (SIP/731 from SIP/731) with penalty 1 (ringinuse disabled) > (realtime) (Not in use) has taken 132 > calls (last was 68032 secs ago) > 765 (SIP/765 from SIP/765) with penalty 1 (ringinuse disabled) > (realtime) (Not in use) has taken 76 > calls (last was 81980 secs ago) > 761 (SIP/761 from SIP/761) with penalty 1 (ringinuse disabled) > (realtime) (In use) has taken 266 > calls (last was 1117 secs ago) > 722 (SIP/722 from SIP/722) with penalty 1 (ringinuse disabled) > (realtime) (Not in use) has taken 264 > calls (last was 1040 secs ago) > 711 (SIP/711 from SIP/711) with penalty 1 (ringinuse disabled) > (realtime) (Not in use) has taken 256 > calls (last was 1338 secs ago) > 744 (SIP/744 from SIP/744) (ringinuse disabled) (realtime) (Not > in use) has taken 1183 calls (last was > 2 secs ago) > 743 (SIP/743 from SIP/743) (ringinuse disabled) (realtime) > (Unavailable) has taken 70 calls (last > was 170178 secs ago) > 741 (SIP/741 from SIP/741) (ringinuse disabled) (realtime) (Not > in use) has taken 1024 calls (last was > 267 secs ago) > 771 (SIP/771 from SIP/771) with penalty 1 (ringinuse disabled) > (realtime) (paused) (Not in use) has > taken 23 calls (last was 1029571 secs > ago) No Callers

Callers

741+743+744 должны имеють повышенный приоритет и именно им направляется звонок в первые 15 секунд. Потом звонок идет на всех, кто не в состоянии "пауза". Состояние "пауза" генерируется по графику и описано ниже в коде диалплана. диалплана.

Вот кусок диалплана

[CallCenter] 
exten => X!,1,Wait(1)
_X!,1,Wait(1)
exten => _X!,n,Answer() 
;exten => _X!,n,Playback(pearlpbx/custom/Vasvitaemedichnijcentr_Asklepij)
exten => _X!,n,GotoIfTime(08:00-17:00,mon-fri,,?20)
exten => _X!,n,GotoIfTime(17:00-19:00,mon-fri,,?30)
exten => _X!,n,GotoIfTime(19:00-21:00,mon-fri,,?40)
exten => _X!,n,GotoIfTime(21:00-23:00,mon-fri,,?50)
exten => _X!,n,GotoIfTime(08:00-12:00,sat,,?60)
exten => _X!,n,GotoIfTime(12:00-14:00,sat,,?70)

exten => X!,n,NoOp(HE _X!,n,Playback(pearlpbx/custom/Vas_vitae_medichnij_centr_Asklepij) exten => _X!,n,GotoIfTime(08:00-17:00,mon-fri,*,*?20) exten => _X!,n,GotoIfTime(17:00-19:00,mon-fri,*,*?30) exten => _X!,n,GotoIfTime(19:00-21:00,mon-fri,*,*?40) exten => _X!,n,GotoIfTime(21:00-23:00,mon-fri,*,*?50) exten => _X!,n,GotoIfTime(08:00-12:00,sat,*,*?60) exten => _X!,n,GotoIfTime(12:00-14:00,sat,*,*?70) exten => _X!,n,NoOp(HE PABOTAEM) exten => _X!,n,Playback(pearlpbx/nerabotaem20150312) _X!,n,Playback(pearlpbx/ne_rabotaem_20150312) ;exten => _X!,n,Playback(pearlpbx/custom/VasvitaemedichnijcentrAsklepij) _X!,n,Playback(pearlpbx/custom/Vas_vitae_medichnij_centr_Asklepij) ;exten => _X!,n,Playback(pearlpbx/custom/Nazhalzarazminemozhemovidpovistinavashdzvinok) _X!,n,Playback(pearlpbx/custom/Nazhal_zaraz_mi_ne_mozhemo_vidpovisti_na_vash_dzvinok) ;exten => _X!,n,Playback(pearlpbx/custom/Boguniya8-23) _X!,n,Playback(pearlpbx/custom/Boguniya_8-23) ;exten => X!,n,Playback(pearlpbx/custom/Peretelefonujtebud-laskavrobochijchas) _X!,n,Playback(pearlpbx/custom/Peretelefonujte_bud-laska_v_robochij_chas) ;exten => _X!,n,Playback(pearlpbx/custom/Djakuemozarozuminnja2) _X!,n,Playback(pearlpbx/custom/Djakuemo_za_rozuminnja_2) ;exten => _X!,n,Playback(pearlpbx/custom/WaitinForYouCall) exten => _X!,n,Hangup(16) ; 8:00-17:00 Zvonki postupayut na vseh krome(711; 761; 771; 743) exten => _X!,20,NoOp exten => _X!,n,GoSub(subUnpauseAll,start,1()) exten => _X!,n,PauseQueueMember(CallCenter,SIP/711) exten => _X!,n,PauseQueueMember(CallCenter,SIP/761) exten => _X!,n,PauseQueueMember(CallCenter,SIP/771) exten => _X!,n,PauseQueueMember(CallCenter,SIP/743) exten => _X!,n,Goto(100) ; 17:00-19:00 Zvonki postupayut tolko na Shevchenko 14 (761) exten => _X!,30,NoOp exten => _X!,n,GoSub(subPauseAll,start,1()) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/761) exten => _X!,n,Goto(100) ; 19:00-21:00 Zvonki postupayut tolko na Vokzalnaya, 12 (711) exten => _X!,40,NoOp exten => _X!,n,GoSub(subPauseAll,start,1()) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/711) exten => _X!,n,Goto(100) ; 21:00-23:00 Zvonki postupayut tolko na Vokzalnaya 12 (711) exten => _X!,50,NoOp exten => _X!,n,GoSub(subPauseAll,start,1()) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/711) exten => _X!,n,Goto(100) ; SatAM 8:00-12:00 Zvonki postupayut tolko na CallCenter (741; 744) exten => _X!,60,NoOp exten => _X!,n,GoSub(subPauseAll,start,1()) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/741) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/744) exten => _X!,n,Goto(100) ; SatPM 12:00-14:00 Zvonki postupayut tolko na Shevchenko 14 (761) exten => _X!,70,NoOp exten => _X!,n,GoSub(subPauseAll,start,1()) exten => _X!,n,UnpauseQueueMember(CallCenter,SIP/761) exten => _X!,n,Goto(100)

_X!,n,Goto(100) ; Queue exten => X!,100,Playback(pearlpbx/custom/Vasvitaemedichnijcentr_Asklepij) _X!,100,Playback(pearlpbx/custom/Vas_vitae_medichnij_centr_Asklepij) exten => _X!,n,Queue(CallCenter,rtT) exten => _X!,n,Hangup()

exten => _X!,150,AGI(PearlPBX-callback-add.pl,${CALLERID(num)},${EXTEN},${CHANNEL}) exten => _X!,n,Hangup();

_X!,n,Hangup(); [subPauseAll] exten => start,1,PauseQueueMember(CallCenter,SIP/711) same => n,PauseQueueMember(CallCenter,SIP/741) same => n,PauseQueueMember(CallCenter,SIP/743) same => n,PauseQueueMember(CallCenter,SIP/744) same => n,PauseQueueMember(CallCenter,SIP/722) same => n,PauseQueueMember(CallCenter,SIP/731) same => n,PauseQueueMember(CallCenter,SIP/761) same => n,PauseQueueMember(CallCenter,SIP/765) same => n,PauseQueueMember(CallCenter,SIP/771) same => n,PauseQueueMember(CallCenter,SIP/790) same => n,PauseQueueMember(CallCenter,SIP/791) same => n,PauseQueueMember(CallCenter,SIP/798) same => n,Return()

n,Return() [subUnpauseAll] exten => start,1,UnpauseQueueMember(CallCenter,SIP/711) same => n,UnpauseQueueMember(CallCenter,SIP/741) same => n,UnpauseQueueMember(CallCenter,SIP/743) same => n,UnpauseQueueMember(CallCenter,SIP/744) same => n,UnpauseQueueMember(CallCenter,SIP/722) same => n,UnpauseQueueMember(CallCenter,SIP/731) same => n,UnpauseQueueMember(CallCenter,SIP/761) same => n,UnpauseQueueMember(CallCenter,SIP/765) same => n,UnpauseQueueMember(CallCenter,SIP/771) same => n,UnpauseQueueMember(CallCenter,SIP/790) same => n,UnpauseQueueMember(CallCenter,SIP/791) same => n,UnpauseQueueMember(CallCenter,SIP/798) same => n,Return()

n,Return() ;[Saturday] ;switch => Realtime/Saturday@extensions

Realtime/Saturday@extensions

!!741+743+744 должны имеють повышенный приоритет и именно им направляется звонок в первые 15 секунд. - КАК ЭТО РЕАЛИЗОВАТЬ?

Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией GNU GPL.