Out писал(а):В файле аддитионал что сверху, в шапке, написано?
в этом контексте написано include => app-chanspy-custom, но оно не отрабатывает!
Код: Выделить всё
Elastix-DSK*CLI> dialplan show app-chanspy
[ Context 'app-chanspy' created by 'pbx_config' ]
'*555' => 1. Macro(user-callerid,) [pbx_config]
2. Answer() [pbx_config]
3. Wait(1) [pbx_config]
4. ChanSpy() [pbx_config]
5. Hangup() [pbx_config]
Include => 'app-chanspy-custom' [pbx_config]
-= 1 extension (5 priorities) in 1 context. =-
Elastix-DSK*CLI> dialplan show app-chanspy-custom
[ Context 'app-chanspy-custom' created by 'pbx_config' ]
'*555' => 1. Macro(user-callerid,) [pbx_config]
2. Answer() [pbx_config]
3. Wait(1) [pbx_config]
4. ChanSpy(SIP/6100) [pbx_config]
5. Hangup() [pbx_config]
-= 1 extension (5 priorities) in 1 context. =-
вот пример другова контекста, который нормально отрабатывается!
Код: Выделить всё
[ Context 'ivr-13' created by 'pbx_config' ]
'1' => 1. Noop(Deleting: ${BLKVM_OVERRIDE} ${DB_DELETE(${BLKVM_OVERRIDE})}) [pbx_config]
2. Set(__NODEST=) [pbx_config]
3. Goto(ext-group,6931,1) [pbx_config]
'2' => 1. Noop(Deleting: ${BLKVM_OVERRIDE} ${DB_DELETE(${BLKVM_OVERRIDE})}) [pbx_config]
2. Set(__NODEST=) [pbx_config]
3. Goto(ext-group,6932,1) [pbx_config]
'3' => 1. Noop(Deleting: ${BLKVM_OVERRIDE} ${DB_DELETE(${BLKVM_OVERRIDE})}) [pbx_config]
2. Set(__NODEST=) [pbx_config]
3. Goto(ext-group,6933,1) [pbx_config]
'4' => 1. Noop(Deleting: ${BLKVM_OVERRIDE} ${DB_DELETE(${BLKVM_OVERRIDE})}) [pbx_config]
2. Set(__NODEST=) [pbx_config]
3. Goto(ext-group,6934,1) [pbx_config]
'5' => 1. Noop(Deleting: ${BLKVM_OVERRIDE} ${DB_DELETE(${BLKVM_OVERRIDE})}) [pbx_config]
2. Set(__NODEST=) [pbx_config]
3. Goto(ext-group,6935,1) [pbx_config]
'fax' => 1. Goto(${CUT(FAX_DEST,^,1)},${CUT(FAX_DEST,^,2)},${CUT(FAX_DEST,^,3)}) [pbx_config]
'h' => 1. Hangup() [pbx_config]
'hang' => 1. Playback(vm-goodbye) [pbx_config]
2. Hangup() [pbx_config]
'i' => 1. Playback(invalid) [pbx_config]
2. Goto(loop,1) [pbx_config]
'loop' => 1. Set(LOOPCOUNT=$[${LOOPCOUNT} + 1]) [pbx_config]
2. GotoIf($[${LOOPCOUNT} > 1]?hang,1) [pbx_config]
3. Goto(ivr-13,s,begin) [pbx_config]
'return' => 1. Set(MSG=custom/NEW_Ritail_2) [pbx_config]
2. Set(_IVR_CONTEXT=${CONTEXT}) [pbx_config]
3. Set(_IVR_CONTEXT_${CONTEXT}=${IVR_CONTEXT_${CONTEXT}}) [pbx_config]
4. Goto(ivr-13,s,begin) [pbx_config]
's' => 1. Set(MSG=custom/NEW_Ritail_2) [pbx_config]
2. Set(LOOPCOUNT=0) [pbx_config]
3. Set(__DIR-CONTEXT=) [pbx_config]
4. Set(_IVR_CONTEXT_${CONTEXT}=${IVR_CONTEXT}) [pbx_config]
5. Set(_IVR_CONTEXT=${CONTEXT}) [pbx_config]
6. GotoIf($["${CDR(disposition)}" = "ANSWERED"]?begin) [pbx_config]
7. Answer() [pbx_config]
8. Wait(1) [pbx_config]
[begin] 9. Set(TIMEOUT(digit)=3) [pbx_config]
10. Set(TIMEOUT(response)=5) [pbx_config]
11. Set(__IVR_RETVM=) [pbx_config]
12. ExecIf($["${MSG}" != ""]?Background(${MSG})) [pbx_config]
13. WaitExten(,) [pbx_config]
't' => 1. Set(LOOPCOUNT=$[${LOOPCOUNT} + 1]) [pbx_config]
2. GotoIf($[${LOOPCOUNT} <= 1]?s,begin) [pbx_config]
3. Noop(Deleting: ${BLKVM_OVERRIDE} ${DB_DELETE(${BLKVM_OVERRIDE})}) [pbx_config]
4. Set(__NODEST=) [pbx_config]
5. Goto(ext-group,6945,1) [pbx_config]
Include => 'ivr-13-custom' [pbx_config]
Include => 'from-did-direct-ivr' [pbx_config]
-= 13 extensions (46 priorities) in 1 context. =-
Elastix-DSK*CLI> dialplan show ivr-13-custom
[ Context 'ivr-13-custom' created by 'pbx_config' ]
'_[*]xxxx' => 1. Goto(from-internal,${EXTEN:1},1) [pbx_config]
'_[2]xxx' => 1. Goto(from-internal,${EXTEN},1) [pbx_config]
'_[123456789]xx' => 1. Goto(from-internal,2${EXTEN},1) [pbx_config]
-= 3 extensions (3 priorities) in 1 context. =-
не догоняю, все равно почему не работает, лето на мозги давит!