Два транка (без авторизации), по ip, оба доступны. Поставщик странный - пропускает звонки в шахматном порядке, по очереди через транки, при непропуске дает 480, hangupcause 19.
Во freepbx ставим Check to always try next trunk, казалось бы, но нет.
Код: Выделить всё
-- Called SIP/trunk2/ХХХХХХХХХ
-- Got SIP response 480 "Temporarily Unavailable" back from 172.30.х.х:5060
-- SIP/trunk2-00000059 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing [s@macro-dialout-trunk:23] NoOp("SIP/server-00000058", "Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 19") in new stack
-- Executing [s@macro-dialout-trunk:24] GotoIf("SIP/server-00000058", "1?continue,1:s-CONGESTION,1") in new stack
-- Goto (macro-dialout-trunk,continue,1)
-- Executing [continue@macro-dialout-trunk:1] NoOp("SIP/server-00000058", "TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 19 - failing through to other trunks") in new stack
-- Executing [continue@macro-dialout-trunk:2] Set("SIP/server-00000058", "CALLERID(number)=") in new stack
-- Executing [continue@macro-dialout-trunk:3] MacroExit("SIP/server-00000058", "") in new stack ;это втыкал я проверить, то ли исполняется )
-- Executing [ХХХХХХХХХ@from-internal:8] Congestion("SIP/server-00000058", "20") in new stack
Код: Выделить всё
[ Context 'outrt-1' created by 'pbx_config' ]
'_XXXXXXXXX' (CID match '_X.') => 1. Macro(user-callerid,LIMIT,EXTERNAL,) [pbx_config]
2. Gosub(sub-record-cancel,s,1()) [pbx_config]
3. Set(__REC_POLICY_MODE=never) [pbx_config]
4. Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})}) [pbx_config]
5. Set(_NODEST=) [pbx_config]
6. Gosub(sub-record-check,s,1(out,${EXTEN},)) [pbx_config]
7. Macro(dialout-trunk,5,${EXTEN},,on) [pbx_config]
8. Macro(dialout-trunk,3,${EXTEN},,on) [pbx_config]
9. Macro(outisbusy,) [pbx_config]
'_XXXXXXXXX' => 1. Macro(user-callerid,LIMIT,EXTERNAL,) [pbx_config]
Include => 'outrt-1-custom' [pbx_config]
https://pastebin.com/Rf1S98xT
Откуда congestion?