Re: Входящая маршрутизация по первым цифрам АОНа
Добавлено: 30 ноя 2015, 17:17
чую со скобками вбили
Русский форум Asterisk сообщества
https://forum.asterisk.ru/
Код: Выделить всё
[ext-did-0001]
include => ext-did-0001-custom
exten => fax,1,Goto(${CUT(FAX_DEST,^,1)},${CUT(FAX_DEST,^,2)},${CUT(FAX_DEST,^,3)})
exten => _./_8911XXXXXXX,1,Set(__FROM_DID=${EXTEN})
exten => _./_8911XXXXXXX,n,Goto(s,1)
exten => s/_8911XXXXXXX,1,ExecIf($["${FROM_DID}" = ""]?Set(__FROM_DID=${EXTEN}))
exten => s/_8911XXXXXXX,n,Gosub(sub-record-check,s,1(in,${EXTEN},dontcare))
exten => s/_8911XXXXXXX,n,Set(CDR(did)=${FROM_DID})
exten => s/_8911XXXXXXX,n,ExecIf($[ "${CALLERID(name)}" = "" ] ?Set(CALLERID(name)=${CALLERID(num)}))
exten => s/_8911XXXXXXX,n,Set(CHANNEL(musicclass)=default)
exten => s/_8911XXXXXXX,n,Set(__MOHCLASS=default)
exten => s/_8911XXXXXXX,n,Set(__REVERSAL_REJECT=FALSE)
exten => s/_8911XXXXXXX,n,GotoIf($["${REVERSAL_REJECT}"!="TRUE"]?post-reverse-charge)
exten => s/_8911XXXXXXX,n,GotoIf($["${CHANNEL(reversecharge)}"="1"]?macro-hangupcall)
exten => s/_8911XXXXXXX,n(post-reverse-charge),Noop()
exten => s/_8911XXXXXXX,n,Set(__CALLINGNAMEPRES_SV=${CALLERID(name-pres)})
exten => s/_8911XXXXXXX,n,Set(__CALLINGNUMPRES_SV=${CALLERID(num-pres)})
exten => s/_8911XXXXXXX,n,Set(CALLERID(name-pres)=allowed_not_screened)
exten => s/_8911XXXXXXX,n,Set(CALLERID(num-pres)=allowed_not_screened)
exten => s/_8911XXXXXXX,n(dest-ext),Goto(from-did-direct,800,1)