Имеет быть 'Asterisk 1.4.26.2 built by root @ pcbsd on a i386 running FreeBSD on 2010-02-01 23:28:52 UTC'.
На нем зарегистрирован удаленный шлюз Planet VIP-480FXO, в кот. включен четырехканальный городской телефонный номер.
sip.conf:
[0101]
type=friend
secret=xxxxxxx
host=dynamic
qualify=yes
context=phone-in
disallow=all
allow=alaw
allow=g729
[0102]
type=friend
secret=xxxxxxx
host=dynamic
qualify=yes
context=phone-in
disallow=all
allow=alaw
allow=g729
[0103]
type=friend
secret=xxxxxxx
host=dynamic
qualify=yes
context=phone-in
disallow=all
allow=alaw
allow=g729
[0104]
type=friend
secret=xxxxxxx
host=dynamic
qualify=yes
context=phone-in
disallow=all
allow=alaw
allow=g729
Кроме того, у астериска есть френд, подключенный по IAX2.
iax.conf:
[ogogon]
username=xxxxxxx
type=friend
secret=xxxxxxx
host=dynamic
qualify=yes
context=asterisk
insecure=port,invite
allow=all
Если на городской номер идет звонок с френда через IAX2 - звонок неуспешен.
-- Accepting AUTHENTICATED call from xxx.xxx.xxx.xxx:
> requested format = alaw,
> requested prefs = (alaw|g729),
> actual format = alaw,
> host prefs = (),
> priority = caller
-- Executing [09@asterisk:1] NoOp("IAX2/ogogon-2404", "") in new stack
-- Executing [09@asterisk:2] Dial("IAX2/ogogon-2404", "SIP/0101|60|D(09)") in new stack
-- Called 0101
[Apr 15 14:33:33] NOTICE[1111]: chan_sip.c:3028 auto_congest: Auto-congesting SIP/0101-29738000
-- SIP/0101-29738000 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing [09@asterisk:3] Dial("IAX2/ogogon-2404", "SIP/0102|60|D(09)") in new stack
-- Called 0102
[Apr 15 14:33:41] NOTICE[1111]: chan_sip.c:3028 auto_congest: Auto-congesting SIP/0102-2973d000
-- SIP/0102-2973d000 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing [09@asterisk:4] Dial("IAX2/ogogon-2404", "SIP/0103|60|D(09)") in new stack
-- Called 0103
[Apr 15 14:33:49] NOTICE[1111]: chan_sip.c:3028 auto_congest: Auto-congesting SIP/0103-29742000
-- SIP/0103-29742000 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing [09@asterisk:5] Dial("IAX2/ogogon-2404", "SIP/0104|60|D(09)") in new stack
-- Called 0104
[Apr 15 14:33:57] NOTICE[1111]: chan_sip.c:3028 auto_congest: Auto-congesting SIP/0104-29747000
-- SIP/0104-29747000 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
== Auto fallthrough, channel 'IAX2/ogogon-2404' status is 'CONGESTION'
-- Hungup 'IAX2/ogogon-2404'
"Птица Обломинго-с...", как говаривал поручик Ржевский.
Если же позвонить на вход VIP-480FO и набрать номер, или сделать это с подключенного к астериску по SIP аппарату - результат совсем другой:
-- Executing [09@phone-in:1] NoOp("SIP/0101-2971c000", "") in new stack
-- Executing [09@phone-in:2] Dial("SIP/0101-2971c000", "SIP/0101|60|D(09)") in new stack
-- Called 0101
-- SIP/0101-29721000 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing [09@phone-in:3] Dial("SIP/0101-2971c000", "SIP/0102|60|D(09)") in new stack
-- Called 0102
-- SIP/0102-2974f000 is ringing
-- SIP/0102-2974f000 is making progress passing it to SIP/0101-2971c000
-- SIP/0102-2974f000 answered SIP/0101-2971c000
-- Sending DTMF '09' to the called party.
-- adaptive jitterbuffer created on channel SIP/0101-2971c000
-- adaptive jitterbuffer created on channel SIP/0102-2974f000
-- adaptive jitterbuffer destroyed on channel SIP/0102-2974f000
== Spawn extension (phone-in, 09, 3) exited non-zero on 'SIP/0101-2971c000'
-- adaptive jitterbuffer destroyed on channel SIP/0101-2971c000
В показанном логе первый порт был занят, потому, что именно через него я заходил. Если звонить с внутреннего SIP-телефона - все то же самое, но первый порт сразу дозванивается.
Чем плох IAX2-френд?
Почему направления авто-конгестятся?
Ogogon.