VIDEOCHAT  ::   FAQ  ::   Поиск  ::   Регистрация  ::   Вход

Помогите, закопался в настройке IVRов

Новичком считается только что прочитавший «Астериск - будущее телефонии»
http://asterisk.ru/knowledgebase/books
и пытающийся сделать большее

Модераторы: april22, Zavr2008

Ответить
nickel82
Сообщения: 109
Зарегистрирован: 04 апр 2011, 12:51

Помогите, закопался в настройке IVRов

Сообщение nickel82 »

Такая ситуация.
Настроил с пол года назад IVR.
С помощью такой приставки:

[ivr-8-custom]
exten => _[1234567].,1,Goto(from-internal,${EXTEN},1)

разрешил с нее донобор, на другие АТС соединенные по потоку.
На данный IVR приходили городские номера (c CIDом), по аналоговым линиям на CS1000, а потом по потоку на Asterisk.

Создаю новое IVR (IVR-16). завожу с городской линии на которой нет определителя. Все настройки вроде делаю такие же, но не позволяет донобрать номера с других АТС.

[ivr-16-custom]
exten => _[123456].,1,Goto(from-internal,${EXTEN},1)

Лог:
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
== CDR updated on DAHDI/62-1
-- Executing [4000@ivr-16:1] Goto("DAHDI/62-1", "from-internal,4000,1") in new stack
-- Goto (from-internal,4000,1)
-- Executing [4000@from-internal:1] Macro("DAHDI/62-1", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("DAHDI/62-1", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("DAHDI/62-1", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("DAHDI/62-1", "1?Set(REALCALLERIDNUM=)") in new stack
-- Executing [s@macro-user-callerid:4] Set("DAHDI/62-1", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("DAHDI/62-1", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/62-1", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("DAHDI/62-1", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("DAHDI/62-1", "Using CallerID "" <>") in new stack
-- Executing [4000@from-internal:2] Set("DAHDI/62-1", "__ROUTENAME=CS1000") in new stack
-- Executing [4000@from-internal:3] Set("DAHDI/62-1", "_NODEST=") in new stack
-- Executing [4000@from-internal:4] Macro("DAHDI/62-1", "record-enable,,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("DAHDI/62-1", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("DAHDI/62-1", "1?MacroExit()") in new stack
-- Executing [4000@from-internal:5] Macro("DAHDI/62-1", "dialout-trunk,1,4000,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("DAHDI/62-1", "DIAL_TRUNK=1") in new stack
-- Executing [s@macro-dialout-trunk:2] AGI("DAHDI/62-1", "checkperms.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/checkperms.agi
checkperms.agi: Starting checkperms.agi
checkperms.agi: CallerID not Parseable - received unknown - exiting with DENY
-- AGI Script Executing Application: (Goto) Options: (macro-trunk-dial|barred|1)
-- Goto (macro-trunk-dial,barred,1)
-- <DAHDI/62-1>AGI Script checkperms.agi completed, returning 0
== Channel 'DAHDI/62-1' jumping out of macro 'dialout-trunk'
-- Hungup 'DAHDI/62-1'
если переключаю на линию с определителем номера донобор проходит:
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
== CDR updated on DAHDI/33-1
-- Executing [4000@ivr-16:1] Goto("DAHDI/33-1", "from-internal,4000,1") in new stack
-- Goto (from-internal,4000,1)
-- Executing [4000@from-internal:1] Macro("DAHDI/33-1", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("DAHDI/33-1", "AMPUSER=4922334771") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("DAHDI/33-1", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("DAHDI/33-1", "1?Set(REALCALLERIDNUM=4922334771)") in new stack
-- Executing [s@macro-user-callerid:4] Set("DAHDI/33-1", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("DAHDI/33-1", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/33-1", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("DAHDI/33-1", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("DAHDI/33-1", "Using CallerID "4922334771" <4922334771>") in new stack
-- Executing [4000@from-internal:2] Set("DAHDI/33-1", "__ROUTENAME=CS1000") in new stack
-- Executing [4000@from-internal:3] Set("DAHDI/33-1", "_NODEST=") in new stack
-- Executing [4000@from-internal:4] Macro("DAHDI/33-1", "record-enable,,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("DAHDI/33-1", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("DAHDI/33-1", "1?MacroExit()") in new stack
-- Executing [4000@from-internal:5] Macro("DAHDI/33-1", "dialout-trunk,1,4000,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("DAHDI/33-1", "DIAL_TRUNK=1") in new stack
-- Executing [s@macro-dialout-trunk:2] AGI("DAHDI/33-1", "checkperms.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/checkperms.agi
checkperms.agi: Starting checkperms.agi
> checkperms.agi: SQL Debug: SELECT allowed,faildest FROM routepermissions WHERE exten='4922334771' and routename='CS1000'
== checkperms.agi: Access to route granted
-- <DAHDI/33-1>AGI Script checkperms.agi completed, returning 0
-- Executing [s@macro-dialout-trunk:3] GosubIf("DAHDI/33-1", "0?sub-pincheck,s,1") in new stack
-- Executing [s@macro-dialout-trunk:4] GotoIf("DAHDI/33-1", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("DAHDI/33-1", "DIAL_NUMBER=4000") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("DAHDI/33-1", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:7] Set("DAHDI/33-1", "OUTBOUND_GROUP=OUT_1") in new stack
-- Executing [s@macro-dialout-trunk:8] GotoIf("DAHDI/33-1", "0?nomax") in new stack
-- Executing [s@macro-dialout-trunk:9] GotoIf("DAHDI/33-1", "0?chanfull") in new stack
-- Executing [s@macro-dialout-trunk:10] GotoIf("DAHDI/33-1", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:11] Set("DAHDI/33-1", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:12] Macro("DAHDI/33-1", "outbound-callerid,1") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("DAHDI/33-1", "1?Set(CALLERPRES()=allowed_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("DAHDI/33-1", "0?Set(REALCALLERIDNUM=4922334771)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("DAHDI/33-1", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("DAHDI/33-1", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("DAHDI/33-1", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("DAHDI/33-1", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("DAHDI/33-1", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("DAHDI/33-1", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("DAHDI/33-1", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("DAHDI/33-1", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("DAHDI/33-1", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:13] ExecIf("DAHDI/33-1", "1?AGI(fixlocalprefix)") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
> fixlocalprefix: Using pattern 75+9|8492XXXXXXX
> fixlocalprefix: Using pattern 75+9|890[013456]XXXXXXX
> fixlocalprefix: Using pattern 75+9|89100[39]XXXXX
> fixlocalprefix: Using pattern 75+9|89101[78]XXXXX
> fixlocalprefix: Using pattern 75+9|891067XXXXX
> fixlocalprefix: Using pattern 75+9|891077XXXXX
> fixlocalprefix: Using pattern 75+9|89157[579]XXXXX
> fixlocalprefix: Using pattern 75+9|89190[012]XXXXX
> fixlocalprefix: Using pattern 75+9|8920[69]XXXXXX
> fixlocalprefix: Using pattern 75+9|89290[23]XXXXX
> fixlocalprefix: Using pattern 75+9|8930[078]XXXXXX
> fixlocalprefix: Using pattern 75+9|896[14]XXXXXXX
> fixlocalprefix: Using pattern 75+9|898058XXXXX
> fixlocalprefix: Using pattern 75+9|[23456]XXXXX
> fixlocalprefix: Using pattern 76+9|849[59]XXXXXXX
> fixlocalprefix: Using pattern 79+9|849[0134678]XXXXXXX
> fixlocalprefix: Using pattern 79+9|84[012345678]XXXXXXXX
> fixlocalprefix: Using pattern 79+9|890[2789]XXXXXXX
> fixlocalprefix: Using pattern 79+9|89100[01245678]XXXXX
> fixlocalprefix: Using pattern 79+9|89101[01234569]XXXXX
> fixlocalprefix: Using pattern 79+9|89106[012345689]XXXXX
> fixlocalprefix: Using pattern 79+9|89107[012345689]XXXXX
> fixlocalprefix: Using pattern 79+9|8910[234589]XXXXXX
> fixlocalprefix: Using pattern 79+9|89157[0123468]XXXXX
> fixlocalprefix: Using pattern 79+9|8915[012345689]XXXXXX
> fixlocalprefix: Using pattern 79+9|891[1234678]XXXXXXX
> fixlocalprefix: Using pattern 79+9|8920[01234578]XXXXXX
> fixlocalprefix: Using pattern 79+9|89290[01456789]XXXXX
> fixlocalprefix: Using pattern 79+9|8929[123456789]XXXXXX
> fixlocalprefix: Using pattern 79+9|892[12345678]XXXXXX
> fixlocalprefix: Using pattern 79+9|8930[1234569]XXXXXX
> fixlocalprefix: Using pattern 79+9|893[123456789]XXXXXXX
> fixlocalprefix: Using pattern 79+9|896[02356789]XXXXXXX
> fixlocalprefix: Using pattern 79+9|89805[012345679]XXXXX
> fixlocalprefix: Using pattern 79+9|8980[012346789]XXXXXX
> fixlocalprefix: Using pattern 79+9|898[123456789]XXXXXXX
> fixlocalprefix: Using pattern 79+9|89[4579]XXXXXXXX
> fixlocalprefix: Using pattern 79+9|8[235678]XXXXXXXXX
> fixlocalprefix: Using pattern 798+8|.
-- <DAHDI/33-1>AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:14] Set("DAHDI/33-1", "OUTNUM=4000") in new stack
-- Executing [s@macro-dialout-trunk:15] Set("DAHDI/33-1", "custom=DAHDI/g0") in new stack
-- Executing [s@macro-dialout-trunk:16] ExecIf("DAHDI/33-1", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack
-- Executing [s@macro-dialout-trunk:17] Macro("DAHDI/33-1", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("DAHDI/33-1", "") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("DAHDI/33-1", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:19] GotoIf("DAHDI/33-1", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:20] Dial("DAHDI/33-1", "DAHDI/g0/4000,300,") in new stack
-- Requested transfer capability: 0x00 - SPEECH
-- Called g0/4000
!! Unknown IE 255 (cs0, Unknown Information Element)
-- DAHDI/2-1 is proceeding passing it to DAHDI/33-1
-- DAHDI/2-1 is ringing
-- DAHDI/2-1 answered DAHDI/33-1
-- Native bridging DAHDI/33-1 and DAHDI/2-1
-- Channel 0/2, span 1 got hangup request, cause 16
-- Executing [h@macro-dialout-trunk:1] Macro("DAHDI/33-1", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("DAHDI/33-1", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] NoOp("DAHDI/33-1", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:4] GotoIf("DAHDI/33-1", "1?noautomon2") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [s@macro-hangupcall:6] NoOp("DAHDI/33-1", "MONITOR_FILENAME=") in new stack
-- Executing [s@macro-hangupcall:7] GotoIf("DAHDI/33-1", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,10)
-- Executing [s@macro-hangupcall:10] GotoIf("DAHDI/33-1", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,13)
-- Executing [s@macro-hangupcall:13] GotoIf("DAHDI/33-1", "1?theend") in new stack
-- Goto (macro-hangupcall,s,15)
-- Executing [s@macro-hangupcall:15] Hangup("DAHDI/33-1", "") in new stack
== Spawn extension (macro-hangupcall, s, 15) exited non-zero on 'DAHDI/33-1' in macro 'hangupcall'
== Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on 'DAHDI/33-1'
-- Hungup 'DAHDI/2-1'
== Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on 'DAHDI/33-1' in macro 'dialout-trunk'
== Spawn extension (from-internal, 4000, 5) exited non-zero on 'DAHDI/33-1'
-- Executing [h@from-internal:1] Macro("DAHDI/33-1", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("DAHDI/33-1", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] NoOp("DAHDI/33-1", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:4] GotoIf("DAHDI/33-1", "1?noautomon2") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [s@macro-hangupcall:6] NoOp("DAHDI/33-1", "MONITOR_FILENAME=") in new stack
-- Executing [s@macro-hangupcall:7] GotoIf("DAHDI/33-1", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,10)
-- Executing [s@macro-hangupcall:10] GotoIf("DAHDI/33-1", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,13)
-- Executing [s@macro-hangupcall:13] GotoIf("DAHDI/33-1", "1?theend") in new stack
-- Goto (macro-hangupcall,s,15)
-- Executing [s@macro-hangupcall:15] Hangup("DAHDI/33-1", "") in new stack
== Spawn extension (macro-hangupcall, s, 15) exited non-zero on 'DAHDI/33-1' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'DAHDI/33-1'
-- Hungup 'DAHDI/33-1'
Все звонки от CS1000 приходят по DID номеру, есть несколько правил DID/CID.
В extensions_additional.conf

exten => 6910,1,Set(__FROM_DID=${EXTEN})
exten => 6910,n,Gosub(app-blacklist-check,s,1)
exten => 6910,n,Gosub(cidlookup,cidlookup_3,1)
exten => 6910,n,ExecIf($[ "${CALLERID(name)}" = "" ] ?Set(CALLERID(name)=${CALLERID(num)}))
exten => 6910,n,Macro(privacy-mgr,3,1)
exten => 6910,n(dest-ext),Goto(ivr-16,s,1)

Как сделать так, чтобы разрешить звонки без определителя?

лог всего неполучающегося звонка:
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
-- Accepting call from '' to '6910' on channel 0/20, span 2
-- Executing [6910@from-pstn:1] Set("DAHDI/51-1", "__FROM_DID=6910") in new stack
-- Executing [6910@from-pstn:2] Gosub("DAHDI/51-1", "app-blacklist-check,s,1") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("DAHDI/51-1", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Set("DAHDI/51-1", "CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:3] Return("DAHDI/51-1", "") in new stack
-- Executing [6910@from-pstn:3] Set("DAHDI/51-1", "CHANNEL(language)=en") in new stack
-- Executing [6910@from-pstn:4] ExecIf("DAHDI/51-1", "1 ?Set(CALLERID(name)=)") in new stack
-- Executing [6910@from-pstn:5] Set("DAHDI/51-1", "__CALLINGPRES_SV=unknown") in new stack
-- Executing [6910@from-pstn:6] Set("DAHDI/51-1", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [6910@from-pstn:7] Goto("DAHDI/51-1", "ivr-16,s,1") in new stack
-- Goto (ivr-16,s,1)
-- Executing [s@ivr-16:1] Set("DAHDI/51-1", "MSG=custom/IVR_Ritail1") in new stack
-- Executing [s@ivr-16:2] Set("DAHDI/51-1", "LOOPCOUNT=0") in new stack
-- Executing [s@ivr-16:3] Set("DAHDI/51-1", "__DIR-CONTEXT=default") in new stack
-- Executing [s@ivr-16:4] Set("DAHDI/51-1", "_IVR_CONTEXT_ivr-16=") in new stack
-- Executing [s@ivr-16:5] Set("DAHDI/51-1", "_IVR_CONTEXT=ivr-16") in new stack
-- Executing [s@ivr-16:6] GotoIf("DAHDI/51-1", "0?begin") in new stack
-- Executing [s@ivr-16:7] Answer("DAHDI/51-1", "") in new stack
-- Executing [s@ivr-16:8] Wait("DAHDI/51-1", "1") in new stack
-- Executing [s@ivr-16:9] Set("DAHDI/51-1", "TIMEOUT(digit)=3") in new stack
-- Digit timeout set to 3.000
-- Executing [s@ivr-16:10] Set("DAHDI/51-1", "TIMEOUT(response)=4") in new stack
-- Response timeout set to 4.000
-- Executing [s@ivr-16:11] Set("DAHDI/51-1", "__IVR_RETVM=") in new stack
-- Executing [s@ivr-16:12] ExecIf("DAHDI/51-1", "1?Background(custom/IVR_Ritail1)") in new stack
-- <DAHDI/51-1> Playing 'custom/IVR_Ritail1.slin' (language 'en')
-- DAHDI/1-1 is proceeding passing it to SIP/6100-0000b09f
-- DAHDI/1-1 is ringing
-- DAHDI/1-1 answered SIP/6100-0000b09f
-- Invalid extension '0' in context 'ivr-16' on DAHDI/51-1
== CDR updated on DAHDI/51-1
-- Executing [i@ivr-16:1] Playback("DAHDI/51-1", "invalid") in new stack
-- <DAHDI/51-1> Playing 'invalid.gsm' (language 'en')
> doing dnsmgr_lookup for 'sip.zadarma.com'
> doing dnsmgr_lookup for 'sip.zadarma.com'
-- Executing [i@ivr-16:2] Goto("DAHDI/51-1", "loop,1") in new stack
-- Goto (ivr-16,loop,1)
-- Executing [loop@ivr-16:1] Set("DAHDI/51-1", "LOOPCOUNT=1") in new stack
-- Executing [loop@ivr-16:2] GotoIf("DAHDI/51-1", "0?hang,1") in new stack
-- Executing [loop@ivr-16:3] Goto("DAHDI/51-1", "ivr-16,s,begin") in new stack
-- Goto (ivr-16,s,9)
-- Executing [s@ivr-16:9] Set("DAHDI/51-1", "TIMEOUT(digit)=3") in new stack
-- Digit timeout set to 3.000
-- Executing [s@ivr-16:10] Set("DAHDI/51-1", "TIMEOUT(response)=4") in new stack
-- Response timeout set to 4.000
-- Executing [s@ivr-16:11] Set("DAHDI/51-1", "__IVR_RETVM=") in new stack
-- Executing [s@ivr-16:12] ExecIf("DAHDI/51-1", "1?Background(custom/IVR_Ritail1)") in new stack
-- <DAHDI/51-1> Playing 'custom/IVR_Ritail1.slin' (language 'en')
== CDR updated on DAHDI/51-1
-- Executing [4000@ivr-16:1] Goto("DAHDI/51-1", "from-internal,4000,1") in new stack
-- Goto (from-internal,4000,1)
-- Executing [4000@from-internal:1] Macro("DAHDI/51-1", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("DAHDI/51-1", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("DAHDI/51-1", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("DAHDI/51-1", "1?Set(REALCALLERIDNUM=)") in new stack
-- Executing [s@macro-user-callerid:4] Set("DAHDI/51-1", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("DAHDI/51-1", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/51-1", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("DAHDI/51-1", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("DAHDI/51-1", "Using CallerID "" <>") in new stack
-- Executing [4000@from-internal:2] Set("DAHDI/51-1", "__ROUTENAME=CS1000") in new stack
-- Executing [4000@from-internal:3] Set("DAHDI/51-1", "_NODEST=") in new stack
-- Executing [4000@from-internal:4] Macro("DAHDI/51-1", "record-enable,,OUT,") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("DAHDI/51-1", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("DAHDI/51-1", "1?MacroExit()") in new stack
-- Executing [4000@from-internal:5] Macro("DAHDI/51-1", "dialout-trunk,1,4000,,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("DAHDI/51-1", "DIAL_TRUNK=1") in new stack
-- Executing [s@macro-dialout-trunk:2] AGI("DAHDI/51-1", "checkperms.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/checkperms.agi
checkperms.agi: Starting checkperms.agi
checkperms.agi: CallerID not Parseable - received unknown - exiting with DENY
-- AGI Script Executing Application: (Goto) Options: (macro-trunk-dial|barred|1)
-- Goto (macro-trunk-dial,barred,1)
-- <DAHDI/51-1>AGI Script checkperms.agi completed, returning 0
== Channel 'DAHDI/51-1' jumping out of macro 'dialout-trunk'
-- Hungup 'DAHDI/51-1'
nickel82
Сообщения: 109
Зарегистрирован: 04 апр 2011, 12:51

Re: Помогите, закопался в настройке IVRов

Сообщение nickel82 »

сама IVR
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
[ivr-16]
include => ivr-16-custom
include => from-did-direct-ivr
include => app-directory
exten => fax,1,Goto(${CUT(FAX_DEST,^,1)},${CUT(FAX_DEST,^,2)},${CUT(FAX_DEST,^,3)})
exten => #,1,Noop(Deleting: ${BLKVM_OVERRIDE} ${DB_DELETE(${BLKVM_OVERRIDE})})
exten => #,n,Set(__NODEST=)
exten => #,n,Goto(app-directory,#,1)
exten => #,n,Noop(Deleting: ${BLKVM_OVERRIDE} ${DB_DELETE(${BLKVM_OVERRIDE})})
exten => #,n,Set(__NODEST=)
exten => #,n,Goto(ivr-16,s,begin)
exten => h,1,Hangup
exten => s,1,Set(MSG=custom/IVR_Ritail1)
exten => s,n,Set(LOOPCOUNT=0)
exten => s,n,Set(__DIR-CONTEXT=default)
exten => s,n,Set(_IVR_CONTEXT_${CONTEXT}=${IVR_CONTEXT})
exten => s,n,Set(_IVR_CONTEXT=${CONTEXT})
exten => s,n,GotoIf($["${CDR(disposition)}" = "ANSWERED"]?begin)
exten => s,n,Answer
exten => s,n,Wait(1)
exten => s,n(begin),Set(TIMEOUT(digit)=3)
exten => s,n,Set(TIMEOUT(response)=4)
exten => s,n,Set(__IVR_RETVM=)
exten => s,n,ExecIf($["${MSG}" != ""]?Background(${MSG}))
exten => s,n,WaitExten(,)
exten => hang,1,Playback(vm-goodbye)
exten => hang,n,Hangup
exten => 1,1,Noop(Deleting: ${BLKVM_OVERRIDE} ${DB_DELETE(${BLKVM_OVERRIDE})})
exten => 1,n,Set(__NODEST=)
exten => 1,n,Goto(ext-group,6911,1)
exten => 2,1,Noop(Deleting: ${BLKVM_OVERRIDE} ${DB_DELETE(${BLKVM_OVERRIDE})})
exten => 2,n,Set(__NODEST=)
exten => 2,n,Goto(from-did-direct,6299,1)
exten => 3,1,Noop(Deleting: ${BLKVM_OVERRIDE} ${DB_DELETE(${BLKVM_OVERRIDE})})
exten => 3,n,Set(__NODEST=)
exten => 3,n,Goto(ext-group,6913,1)
exten => 4,1,Noop(Deleting: ${BLKVM_OVERRIDE} ${DB_DELETE(${BLKVM_OVERRIDE})})
exten => 4,n,Set(__NODEST=)
exten => 4,n,Goto(ext-group,6914,1)
exten => 5,1,Noop(Deleting: ${BLKVM_OVERRIDE} ${DB_DELETE(${BLKVM_OVERRIDE})})
exten => 5,n,Set(__NODEST=)
exten => 5,n,Goto(ext-group,6915,1)
exten => 6,1,Noop(Deleting: ${BLKVM_OVERRIDE} ${DB_DELETE(${BLKVM_OVERRIDE})})
exten => 6,n,Set(__NODEST=)
exten => 6,n,Goto(ext-group,6916,1)
exten => 7,1,Noop(Deleting: ${BLKVM_OVERRIDE} ${DB_DELETE(${BLKVM_OVERRIDE})})
exten => 7,n,Set(__NODEST=)
exten => 7,n,Goto(ext-group,6917,1)
exten => t,1,Noop(Deleting: ${BLKVM_OVERRIDE} ${DB_DELETE(${BLKVM_OVERRIDE})})
exten => t,n,Set(__NODEST=)
exten => t,n,Goto(ext-group,6912,1)
exten => i,1,Playback(invalid)
exten => i,n,Goto(loop,1)
exten => loop,1,Set(LOOPCOUNT=$[${LOOPCOUNT} + 1])
exten => loop,n,GotoIf($[${LOOPCOUNT} > 2]?hang,1)
exten => loop,n,Goto(ivr-16,s,begin)
exten => return,1,Set(MSG=custom/IVR_Ritail1)
exten => return,n,Set(_IVR_CONTEXT=${CONTEXT})
exten => return,n,Set(_IVR_CONTEXT_${CONTEXT}=${IVR_CONTEXT_${CONTEXT}})
exten => return,n,Goto(ivr-16,s,begin)

; end of [ivr-16]

Если выставить через веб морду "Конфиденциальный Менеджер" и ввести при звонке свой номер, то тогда он позволяет все донабирать!
как это обойти без этого запроса?
nickel82
Сообщения: 109
Зарегистрирован: 04 апр 2011, 12:51

Re: Помогите, закопался в настройке IVRов

Сообщение nickel82 »

Сам закопался сам разобрался, хотя думаю корявенько.

В extensions_additional.conf было:
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
[ext-did-0002]
exten => 6910,1,Set(__FROM_DID=${EXTEN})
exten => 6910,n,Gosub(app-blacklist-check,s,1)
exten => 6910,n,ExecIf($[ "${CALLERID(name)}" = "" ] ?Set(CALLERID(name)=${CALLERID(num)}))
exten => 6910,n,Macro(privacy-mgr,3,1)
exten => 6910,n(dest-ext),Goto(ivr-16,s,1)
через веб морду удалил, так как с extensions_custom.conf почему то конфликтовал.

В extensions_custom.conf добавил новое:
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
[ext-did-0002-custom]
exten => 6910,1,Set(__FROM_DID=${EXTEN})
exten => 6910,n,Set(CALLERID(num)=XXXXXX) ; вместо XXXXXX номер, например на который звонят
exten => 6910,n(dest-ext),Goto(ivr-16,s,1)
и все пошло.
nickel82
Сообщения: 109
Зарегистрирован: 04 апр 2011, 12:51

Re: Помогите, закопался в настройке IVRов

Сообщение nickel82 »

В именах я не где не косячил. Было создано все изначально через FreePBX, от туда пишется все в extensions_additional.conf. И как требовалось не работало, поэтому добавлялось в extensions_custom.conf ручками в [ext-did-0002-custom]. Но не отрабатывало по custom, поэтому и было убито в extensions_additional.conf через FreePBX.

А изначально была проблема в невозможности донабрать номер на другие АТС из-за отсутствия CID при входящем звонке.
Ответить
© 2008 — 2025 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH