Добрый день!
Есть пару городских номерво, есть пару очередей
==========================sip.conf ============================================
[general]
register_retry_403=yes
context=default
localnet=XX.XX.XX.0/255.255.0.0 ; локальная сеть
externip=YY.YY.YY.YY ; внешний ip адрес
defaultexpiry=600
autoframing=yes
register => 11111111@172.16.1.100:sUpErPass111:11111111@172.16.1.1:5060/11111111;===AA111
register => 22222222@172.16.1.100:sUpErPass222:22222222@172.16.1.1:5060/22222222;===AA222
register => 33333333@172.16.1.100:sUpErPass333:33333333@172.16.1.1:5060/33333333;===AA333
[AA-template](!)
insecure=port,invite
type=friend
nat=yes
dtmfmode=auto
disallow=all
allow=ulaw
allow=alaw
canreinvite=no
qualify=yes
host=172.16.1.1
fromdomain=172.16.1.100
deny=0.0.0.0/0.0.0.0
permit=172.16.1.1/255.255.255.0
context=AA-IN
[AA111](AA-template)
username=11111111
secret=sUpErPass111
[AA222](AA-template)
username=22222222
secret=sUpErPass222
[AA333](AA-template)
username=33333333
secret=sUpErPass333
=========================================================================
==========================extensions.conf =================================
[general]
static=yes
writeprotect=no
[globals]
[AA-IN]
exten => _11111111,1,NoOp(Incomming call to AA111)
same => n,NoOp(from ${CALLERID(num)})
same => n,Queue(AA111,r)
same => n,Hangup
exten => _22222222,1,NoOp(Incomming call to AA222)
same => n,NoOp(from ${CALLERID(num)})
same => n,Queue(AA222,r)
same => n,Hangup
exten => _33333333,1,NoOp(Incomming call to AA333)
same => n,NoOp(from ${CALLERID(num)}))
same => n,Queue(AA333,r)
same => n,Hangup
===========================================================
ASTER*CLI> queue show AA222
AA222 has 1 calls (max unlimited) in 'rrmemory' strategy (6s holdtime, 42s talktime), W:0, C:197, A:43, SL:0.0% within 0s
Members:
SIP/1006 (ringinuse disabled) (Busy) has taken 42 calls (last was 133 secs ago)
SIP/1026 (ringinuse disabled) (Unavailable) has taken no calls yet
SIP/1002 (ringinuse disabled) (Busy) has taken 53 calls (last was 61 secs ago)
SIP/1022 (ringinuse disabled) (Unavailable) has taken no calls yet
SIP/1016 (ringinuse disabled) (Busy) has taken 50 calls (last was 47 secs ago)
SIP/1023 (ringinuse disabled) (Unavailable) has taken no calls yet
SIP/1017 (ringinuse disabled) (Busy) has taken 49 calls (last was 173 secs ago)
SIP/1020 (ringinuse disabled) (Unavailable) has taken 3 calls (last was 9505 secs ago)
SIP/1024 (ringinuse disabled) (Unavailable) has taken no calls yet
Callers:
1.SIP/AA111-000020e8 (wait: 0:03, prio: 0) ;<======== Здесь должно бытьSIP/AA222
ASTER*CLI> core show channels
Channel Location State Application(Data)
SIP/1002-00002114 (None) Up AppQueue((Outgoing Line))
SIP/AA111-00002110 (None) Up Queue(AA222,r) ;<===== Здесь должно быть SIP/AA222
SIP/AA111-00002113 (None) Up Queue(AA222,r) ;<===== Здесь должно быть SIP/AA222
SIP/AA111-000020fb (None) Up Queue(AA111,r)
SIP/1006-00002112 (None) Up AppQueue((Outgoing Line))
SIP/1026-000020fc (None) Up AppQueue((Outgoing Line))
6 active channels
3 active calls
ПОДСКАЖИТЕ КАК УБРАТЬ ЭТУ НЕПРИЯТНОСТЬ
У вас первым стоит транк с параметрами insecure=port,invite , поэтому входящий вызов всегда будет идти на транк AA111 . host у всех одинаковый.
Задан: 2016-02-05 17:45:30 +0400
Просмотрен: 211 раз
Обновлен: Feb 05 '16
Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании
Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией
GNU GPL.
Решил проблему с помощью callbackextension
everss ( 2016-02-08 11:36:28 +0400 )редактировать