Пожалуйста, войдите здесь. Часто задаваемые вопросы О нас
Задайте Ваш вопрос

История изменений [назад]

нажмите, чтобы скрыть/показать версии 1
изначальная версия
редактировать

ответил 2011-10-10 09:19:18 +0400

2life Gravatar 2life

Попробовал заполнить /etc/asterisk/extensionsoverridefreepbx.conf, ничего не вышло. Настройки оттуда не применяются.

Заполнил так:

[app-cf-on] include => app-cf-on-custom exten => sstate,1,Set(DEVICESTATE(Custom:CF${fromext})=${STATE}) exten => sstate,n,Set(DEVICES=${DB(AMPUSER/${fromext}/device)}) exten => sstate,n,GotoIf($["${DEVICES}" = "" ]?return) exten => sstate,n,Set(LOOPCNT=${FIELDQTY(DEVICES,&)}) exten => sstate,n,Set(ITER=1) exten => sstate,n(begin),Set(DEVICESTATE(Custom:DEVCF${CUT(DEVICES,&,${ITER})})=${STATE}) exten => sstate,n,Set(ITER=$[${ITER} + 1]) exten => sstate,n,GotoIf($[${ITER} <= ${LOOPCNT}]?begin) exten => sstate,n(return),Return()

; end of [app-cf-on]

[app-cf-on-custom] exten => 72,1,Answer exten => *72,n,Wait(1) exten => *72,n,Macro(user-callerid,) exten => *72,n,Playback(call-fwd-unconditional) exten => *72,n(startread),Playback(ent-target-attendant) exten => *72,n,Read(toext,then-press-pound,,,,) exten => *72,n,GotoIf($["foo${toext}"="foo"]?startread) exten => *72,n,Wait(1) exten => *72,n,Set(DB(CF/${AMPUSER})=${toext}) exten => *72,n,Playback(call-fwd-unconditional&for&extension) exten => *72,n,SayDigits(${AMPUSER}) exten => *72,n,Playback(is-set-to) exten => *72,n,SayDigits(${toext}) exten => *72,n,Macro(hangupcall,) exten => _72.,1,Answer exten => _72.,n,Wait(1) exten => _72.,n,Macro(user-callerid,) exten => _72.,n,Set(DB(CF/${AMPUSER})=${EXTEN:3}) exten => _72.,n,Playback(call-fwd-unconditional&for&extension) exten => _72.,n,SayDigits(${AMPUSER}) exten => _72.,n,Playback(is-set-to) exten => _72.,n,SayDigits(${EXTEN:3}) exten => _72.,n,Macro(hangupcall,) exten => h,1,Hangup()

; end of [app-cf-on-custom]

Попробовал заполнить /etc/asterisk/extensionsoverridefreepbx.conf, ничего не вышло. Настройки оттуда не применяются.

Заполнил так:

[app-cf-on]
include => app-cf-on-custom
exten => sstate,1,Set(DEVICESTATE(Custom:CF${fromext})=${STATE})
sstate,1,Set(DEVICE_STATE(Custom:CF${fromext})=${STATE})
exten => sstate,n,Set(DEVICES=${DB(AMPUSER/${fromext}/device)})
exten => sstate,n,GotoIf($["${DEVICES}" = "" ]?return)
exten => sstate,n,Set(LOOPCNT=${FIELDQTY(DEVICES,&)})
exten => sstate,n,Set(ITER=1)
exten => sstate,n(begin),Set(DEVICESTATE(Custom:DEVCF${CUT(DEVICES,&,${ITER})})=${STATE})
sstate,n(begin),Set(DEVICE_STATE(Custom:DEVCF${CUT(DEVICES,&,${ITER})})=${STATE})
exten => sstate,n,Set(ITER=$[${ITER} + 1])
exten => sstate,n,GotoIf($[${ITER} <= ${LOOPCNT}]?begin)
exten => sstate,n(return),Return()

sstate,n(return),Return()

; end of [app-cf-on]

[app-cf-on]

[app-cf-on-custom] exten => 72,1,Answer *72,1,Answer exten => *72,n,Wait(1) exten => *72,n,Macro(user-callerid,) exten => *72,n,Playback(call-fwd-unconditional) exten => *72,n(startread),Playback(ent-target-attendant) exten => *72,n,Read(toext,then-press-pound,,,,) exten => *72,n,GotoIf($["foo${toext}"="foo"]?startread) exten => *72,n,Wait(1) exten => *72,n,Set(DB(CF/${AMPUSER})=${toext}) exten => *72,n,Playback(call-fwd-unconditional&for&extension) exten => *72,n,SayDigits(${AMPUSER}) exten => *72,n,Playback(is-set-to) exten => *72,n,SayDigits(${toext}) exten => *72,n,Macro(hangupcall,) exten => _72.,1,Answer _*72.,1,Answer exten => _72.,n,Wait(1) _*72.,n,Wait(1) exten => _72.,n,Macro(user-callerid,) _*72.,n,Macro(user-callerid,) exten => _72.,n,Set(DB(CF/${AMPUSER})=${EXTEN:3}) _*72.,n,Set(DB(CF/${AMPUSER})=${EXTEN:3}) exten => _72.,n,Playback(call-fwd-unconditional&for&extension) _*72.,n,Playback(call-fwd-unconditional&for&extension) exten => _72.,n,SayDigits(${AMPUSER}) _*72.,n,SayDigits(${AMPUSER}) exten => _72.,n,Playback(is-set-to) _*72.,n,Playback(is-set-to) exten => _72.,n,SayDigits(${EXTEN:3}) _*72.,n,SayDigits(${EXTEN:3}) exten => _72.,n,Macro(hangupcall,) _*72.,n,Macro(hangupcall,) exten => h,1,Hangup()

h,1,Hangup()

; end of [app-cf-on-custom]

[app-cf-on-custom]

Попробовал заполнить /etc/asterisk/extensionsoverridefreepbx.conf, ничего не вышло. Настройки оттуда не применяются.

Заполнил так:

 [app-cf-on]
include => app-cf-on-custom
exten => sstate,1,Set(DEVICE_STATE(Custom:CF${fromext})=${STATE})
exten => sstate,n,Set(DEVICES=${DB(AMPUSER/${fromext}/device)})
exten => sstate,n,GotoIf($["${DEVICES}" = "" ]?return)
exten => sstate,n,Set(LOOPCNT=${FIELDQTY(DEVICES,&)})
exten => sstate,n,Set(ITER=1)
exten => sstate,n(begin),Set(DEVICE_STATE(Custom:DEVCF${CUT(DEVICES,&,${ITER})})=${STATE})
exten => sstate,n,Set(ITER=$[${ITER} + 1])
exten => sstate,n,GotoIf($[${ITER} <= ${LOOPCNT}]?begin)
exten => sstate,n(return),Return()

; end of [app-cf-on]

[app-cf-on-custom]
exten => *72,1,Answer
exten => *72,n,Wait(1)
exten => *72,n,Macro(user-callerid,)
exten => *72,n,Playback(call-fwd-unconditional)
exten => *72,n(startread),Playback(ent-target-attendant)
exten => *72,n,Read(toext,then-press-pound,,,,)
exten => *72,n,GotoIf($["foo${toext}"="foo"]?startread)
exten => *72,n,Wait(1)
exten => *72,n,Set(DB(CF/${AMPUSER})=${toext})
exten => *72,n,Playback(call-fwd-unconditional&for&extension)
exten => *72,n,SayDigits(${AMPUSER})
exten => *72,n,Playback(is-set-to)
exten => *72,n,SayDigits(${toext})
exten => *72,n,Macro(hangupcall,)
exten => _*72.,1,Answer
exten => _*72.,n,Wait(1)
exten => _*72.,n,Macro(user-callerid,)
exten => _*72.,n,Set(DB(CF/${AMPUSER})=${EXTEN:3})
exten => _*72.,n,Playback(call-fwd-unconditional&for&extension)
exten => _*72.,n,SayDigits(${AMPUSER})
exten => _*72.,n,Playback(is-set-to)
exten => _*72.,n,SayDigits(${EXTEN:3})
exten => _*72.,n,Macro(hangupcall,)
exten => h,1,Hangup()

; end of [app-cf-on-custom]

Попробовал заполнить /etc/asterisk/extensionsoverridefreepbx.conf, ничего не вышло. Настройки оттуда не применяются.

Заполнил так:так:

 [app-cf-on]
include => app-cf-on-custom
exten => sstate,1,Set(DEVICE_STATE(Custom:CF${fromext})=${STATE})
exten => sstate,n,Set(DEVICES=${DB(AMPUSER/${fromext}/device)})
exten => sstate,n,GotoIf($["${DEVICES}" = "" ]?return)
exten => sstate,n,Set(LOOPCNT=${FIELDQTY(DEVICES,&)})
exten => sstate,n,Set(ITER=1)
exten => sstate,n(begin),Set(DEVICE_STATE(Custom:DEVCF${CUT(DEVICES,&,${ITER})})=${STATE})
exten => sstate,n,Set(ITER=$[${ITER} + 1])
exten => sstate,n,GotoIf($[${ITER} <= ${LOOPCNT}]?begin)
exten => sstate,n(return),Return()

; end of [app-cf-on]

[app-cf-on-custom]
exten => *72,1,Answer
exten => *72,n,Wait(1)
exten => *72,n,Macro(user-callerid,)
exten => *72,n,Playback(call-fwd-unconditional)
exten => *72,n(startread),Playback(ent-target-attendant)
exten => *72,n,Read(toext,then-press-pound,,,,)
exten => *72,n,GotoIf($["foo${toext}"="foo"]?startread)
exten => *72,n,Wait(1)
exten => *72,n,Set(DB(CF/${AMPUSER})=${toext})
exten => *72,n,Playback(call-fwd-unconditional&for&extension)
exten => *72,n,SayDigits(${AMPUSER})
exten => *72,n,Playback(is-set-to)
exten => *72,n,SayDigits(${toext})
exten => *72,n,Macro(hangupcall,)
exten => _*72.,1,Answer
exten => _*72.,n,Wait(1)
exten => _*72.,n,Macro(user-callerid,)
exten => _*72.,n,Set(DB(CF/${AMPUSER})=${EXTEN:3})
exten => _*72.,n,Playback(call-fwd-unconditional&for&extension)
exten => _*72.,n,SayDigits(${AMPUSER})
exten => _*72.,n,Playback(is-set-to)
exten => _*72.,n,SayDigits(${EXTEN:3})
exten => _*72.,n,Macro(hangupcall,)
exten => h,1,Hangup()

; end of [app-cf-on-custom]

Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией GNU GPL.