cause 20 - Subscriber absent
Добавлено: 25 мар 2015, 11:09
Добрый день форумчане
Книга "Asterisk-Будущее телефонии" была мною прочитана, буквально неделю назад.
Поставил asterisk 11.14.1 на ubuntu 14.04
имеем такие конф файлы
sip.conf
extensions.conf
CLI
sip show peers
sip show registry
при попытке sip set debug peer 46
Между собой абоненты говорить могут, во вне позвонить не могу, cause 20 - Subscriber absent
Подскажите пожалуйста в чем проблема, в какую сторону копать?
Книга "Asterisk-Будущее телефонии" была мною прочитана, буквально неделю назад.
Поставил asterisk 11.14.1 на ubuntu 14.04
имеем такие конф файлы
sip.conf
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
Код: Выделить всё
[general]
port=5555
bindport=5555
bindaddr=0.0.0.0
language=ru
dtmfmode=RFC2833
localnet=192.168.8.0/255.255.255.0
externip = 111.111.111.111
nat=yes
disallow=all
allow=ulaw
allow=alaw
allow=g729
allow=g723.1
register =>505:123@sip.123.ru:5555
register =>506:321@sip.123.ru:5555
;# SIP PROVIDERS #
[46]
context=in
dtmfmode=inband
username=505
type=peer
secret=123
host=sip.123.ru:5561
fromuser=505
fromdomain=sip.123.ru:5555
port=5555
insecure=port,invite
[46_2]
context=in
dtmfmode=inband
username=506
type=peer
secret=321
host=sip.123.ru:5555
fromuser=506
fromdomain=sip.123.ru:555
port=5555
insecure=port,invite
[1001]
host=dynamic
context=out
type=friend
username=1001
nat=no
qualify=300
secret=1001
callerid=phone1 <1001>
[1002]
host=dynamic
context=out
type=friend
username=1002
nat=no
qualify=300
secret=1002
callerid=phone2 <1002>
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
Код: Выделить всё
[general]
static = yes
writeprotect = no
clearglobalvars = no
[globals]
WAV_DIR=/var/www/html/music/wav;
MP3_DIR=/var/www/html/music/mp3;
RECORDING=1;
[macro-write-and-call]
exten => s,1,Set(fname=${UNIQUEID}-${STRFTIME(${EPOCH},,%Y-%m-%d-%H_%M)})
exten => s,n,Set(monopt=nice -n 19 /usr/bin/lame -b 32 --silent "${WAV_DIR}/${fname}.wav" "${MP3_DIR}/${fname}.mp3" && rm -f "${WAV_DIR}/${fname}.wav" && chmod o+r "${MP3}/${fname}.mp3")
exten => s,n,MixMonitor(${WAV_DIR}/${fname}.wav,b,${monopt})
exten => s,n,mysql(Connect connid localhost qqq www aaa)
exten => s,n,Set(CDR(filename)=${fname}.mp3)
exten => s,n,Dial(${ARG1}/${ARG2},50,Ttr)
exten => h,1,mysql(Disconnect ${connid})
[default]
include => in
include => out
[in]
include => out
exten => s,1,Dial(SIP/1002,50,Ttr)
[out]
exten => _X.,n,Macro(write-and-call,SIP/46,${EXTEN})
exten => _1XXX,1,Macro(write-and-call,SIP/${EXTEN},${EXTEN})
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
Код: Выделить всё
== Using SIP RTP CoS mark 5
-- Executing [8XXXXXXXXXX@out:1] ChanIsAvail("SIP/1001-00000000", "SIP/46&SIP/46_2,as") in new stack
-- Executing [8XXXXXXXXXX@out:2] NoOp("SIP/1001-00000000", "Availchan is ") in new stack
-- Executing [8XXXXXXXXXX@out:3] NoOp("SIP/1001-00000000", "Availstatus is 5&5") in new stack
-- Executing [8XXXXXXXXXX@out:4] Macro("SIP/1001-00000000", "write-and-call,SIP/46,8XXXXXXXXXX") in new stack
-- Executing [s@macro-write-and-call:1] Set("SIP/1001-00000000", "fname=1427270324.0-2015-03-25-10_58") in new stack
-- Executing [s@macro-write-and-call:2] Set("SIP/1001-00000000", "monopt=nice -n 19 /usr/bin/lame -b 32 --silent "/var/www/html/music/wav/1427270324.0-2015-03-25-10_58.wav" "/var/www/html/music/mp3/1427270324.0-2015-03-25-10_58.mp3" && rm -f "/var/www/html/music/wav/1427270324.0-2015-03-25-10_58.wav" && chmod o+r "/1427270324.0-2015-03-25-10_58.mp3"") in new stack
-- Executing [s@macro-write-and-call:3] MixMonitor("SIP/1001-00000000", "/var/www/html/music/wav/1427270324.0-2015-03-25-10_58.wav,b,nice -n 19 /usr/bin/lame -b 32 --silent "/var/www/html/music/wav/1427270324.0-2015-03-25-10_58.wav" "/var/www/html/music/mp3/1427270324.0-2015-03-25-10_58.mp3" && rm -f "/var/www/html/music/wav/1427270324.0-2015-03-25-10_58.wav" && chmod o+r "/1427270324.0-2015-03-25-10_58.mp3"") in new stack
-- Executing [s@macro-write-and-call:4] MYSQL("SIP/1001-00000000", "Connect connid localhost asterisk asterisk asteriskcdrdb") in new stack
-- Executing [s@macro-write-and-call:5] Set("SIP/1001-00000000", "CDR(filename)=1427270324.0-2015-03-25-10_58.mp3") in new stack
-- Executing [s@macro-write-and-call:6] Dial("SIP/1001-00000000", "SIP/46/8XXXXXXXXXX,50,Ttr") in new stack
[Mar 25 10:58:44] WARNING[2564][C-00000000]: app_dial.c:2437 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)
== Everyone is busy/congested at this time (1:0/0/1)
-- Auto fallthrough, channel 'SIP/1001-00000000' status is 'CHANUNAVAIL'
== Begin MixMonitor Recording SIP/1001-00000000
== MixMonitor close filestream (mixed)
== Executing [nice -n 19 /usr/bin/lame -b 32 --silent "/var/www/html/music/wav/1427270324.0-2015-03-25-10_58.wav" "/var/www/html/music/mp3/1427270324.0-2015-03-25-10_58.mp3" && rm -f "/var/www/html/music/wav/1427270324.0-2015-03-25-10_58.wav" && chmod o+r "/1427270324.0-2015-03-25-10_58.mp3"]
== End MixMonitor Recording SIP/1001-00000000
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
Код: Выделить всё
aster*CLI> sip show peers
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
1001/1001 192.168.8.248 D Auto (No) No 51614 OK (2 ms)
1002/1002 192.168.8.247 D Auto (No) No 37683 OK (4 ms)
46/505 (Unspecified) Auto (No) No 0 Unmonitored
46_2/506 (Unspecified) Auto (No) No 0 Unmonitored
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
Код: Выделить всё
aster*CLI> sip show registry
Host dnsmgr Username Refresh State Reg.Time
sip.123.ru:5555 N 506 105 Registered Wed, 25 Mar 2015 11:03:32
sip.123.ru:5555 N 505 105 Registered Wed, 25 Mar 2015 11:03:32
2 SIP registrations.
Код: Выделить всё
Unable to get IP address of peer 'it46'
Подскажите пожалуйста в чем проблема, в какую сторону копать?