Странно, но Астериск никак не хочет в контекст трансфера.
Создал контекст и объявил его в extensions_additional.conf
Прописал контекст в extensions_custom.conf
в логах при трансфере все без изменений:
Код: Выделить всё
-- Executing [s@macro-dial-one:31] Set("SIP/1801-0000232c", "D_OPTIONS=Ttr") in new stack
-- Executing [s@macro-dial-one:32] NoOp("SIP/1801-0000232c", "Blind Transfer: , Attended Transfer: , User: 1801, Alert Info: ") in new stack
-- Executing [s@macro-dial-one:33] ExecIf("SIP/1801-0000232c", "1?Set(ALERT_INFO=)") in new stack
-- Executing [s@macro-dial-one:34] ExecIf("SIP/1801-0000232c", "0?Set(ALERT_INFO=)") in new stack
-- Executing [s@macro-dial-one:35] ExecIf("SIP/1801-0000232c", "0?Set(ALERT_INFO=)") in new stack
-- Executing [s@macro-dial-one:36] ExecIf("SIP/1801-0000232c", "0?Set(ALERT_INFO=;volume=)") in new stack
-- Executing [s@macro-dial-one:37] ExecIf("SIP/1801-0000232c", "0?Set(ALERT_INFO=;volume=)") in new stack
-- Executing [s@macro-dial-one:38] GosubIf("SIP/1801-0000232c", "0?func-set-sipheader,s,1(Alert-Info,)") in new stack
-- Executing [s@macro-dial-one:39] ExecIf("SIP/1801-0000232c", "0?Set(CHANNEL(musicclass)=)") in new stack
-- Executing [s@macro-dial-one:40] GosubIf("SIP/1801-0000232c", "0?qwait,1()") in new stack
-- Executing [s@macro-dial-one:41] Set("SIP/1801-0000232c", "__CWIGNORE=") in new stack
-- Executing [s@macro-dial-one:42] Set("SIP/1801-0000232c", "__KEEPCID=TRUE") in new stack
-- Executing [s@macro-dial-one:43] GotoIf("SIP/1801-0000232c", "0?usegoto,1") in new stack
-- Executing [s@macro-dial-one:44] GotoIf("SIP/1801-0000232c", "0?godial") in new stack
-- Executing [s@macro-dial-one:45] Gosub("SIP/1801-0000232c", "sub-presencestate-display,s,1(1005)") in new stack
-- Executing [s@sub-presencestate-display:1] Goto("SIP/1801-0000232c", "state-not_set,1") in new stack
-- Goto (sub-presencestate-display,state-not_set,1)
При попытке добавления что-либо в extensions_additional.conf в итоге все перетирается и восстанавливается прежняя версия после core reload.