Сообщений: 4
|
Не проигрываются звуковые файлы в chan_local
Настраиваю callback для офиса
содержание файла call
-----------------------------------------
CallerID: 917327XXXX
MaxRetries: 2
Channel: Local/8917327XXXX@dstn-callback
Context: menu-oit-teh
WaitTime: 60
Extension: s
Priority: 1
RetryTime: 10
Archive: Yes
------------------------------------------
в extensions_custom.conf
[dstn-callback]
exten => _89XXXXXXXXX,1,Dial(SIP/0011/${EXTEN})
exten => _89XXXXXXXXX,2,Dial(SIP/0012/${EXTEN})
exten => _89XXXXXXXXX,3,Dial(SIP/0013/${EXTEN})
exten => _89XXXXXXXXX,n,Hangup
[menu-oit-teh]
include => dstn-oit-teh
exten => s,1,Answer
exten => s,n,Set(choice_counter=0)
exten => s,n,Wait(${MENU_PAUSE})
exten => s,n,Gosub(call-my-record,401,1)
exten => s,n,Set(choice_counter=0)
exten => s,n,Set(TIMEOUT(response)=${TIMEOUT_RESPONSE})
exten => s,n,Set(TIMEOUT(digit)=${TIMEOUT_DIGIT})
exten => s,n,Background(zdravstujte)
exten => s,n,Background(to-call-exten)
exten => s,n,Background(dial-exten)
exten => s,n,Background(or-wait-for-receptionist)
exten => s,n,Background(thank-you-for-calling)
exten => s,n,StartMusicOnHold
exten => s,n,WaitExten(${TIMEOUT_RESPONSE})
exten => s,n,Queue(oit-mag|tT|||300);
exten => s,n,Hangup()
; special cases
exten => i,1,Background(nevernyj-vybor);
exten => i,n,Goto(s,options)
exten => t,1,Background(vremja-ozhidanija-isteklo)
exten => t,1,ExecIf($[ ${choice_counter} > 3 ]|Hangup)
exten => t,n,Set(choice_counter=$[ ${choice_counter} + 1])
exten => t,n,Goto(s,options)
Не проигрываюся звуковые файлы приветствия, причем музыку на удержании слышно в момент ее старта, логи asterisk'a следующие:
Attempting call on Local/89173278562@dstn-callback/n for s@menu-oit-teh:1 (Retry 1)
[2010-09-29 12:11:01] -- Executing [89173278562@dstn-callback:1] Dial("Local/89173278562@dstn-callback-31c2,2", "SIP/0011/89173278562") in new stack
[2010-09-29 12:11:01] -- Called 0011/89173278562
[2010-09-29 12:11:01] -- SIP/0011-082e4928 is making progress passing it to Local/89173278562@dstn-callback-31c2,2
[2010-09-29 12:11:11] -- SIP/0011-082e4928 answered Local/89173278562@dstn-callback-31c2,2
[2010-09-29 12:11:11] -- Executing [s@menu-oit-teh:1] Answer("Local/89173278562@dstn-callback-31c2,1", "") in new stack
[2010-09-29 12:11:11] -- Executing [s@menu-oit-teh:2] Set("Local/89173278562@dstn-callback-31c2,1", "choice_counter") in new stack
[2010-09-29 12:11:11] -- Executing [s@menu-oit-teh:3] Wait("Local/89173278562@dstn-callback-31c2,1", "2") in new stack
[2010-09-29 12:11:13] -- Executing [s@menu-oit-teh:4] Gosub("Local/89173278562@dstn-callback-31c2,1", "call-my-record|401|1") in new stack
[2010-09-29 12:11:13] -- Executing [401@call-my-record:1] Goto("Local/89173278562@dstn-callback-31c2,1", "record") in new stack
[2010-09-29 12:11:13] -- Goto (call-my-record,401,5)
[2010-09-29 12:11:13] -- Executing [401@call-my-record:5] Monitor("Local/89173278562@dstn-callback-31c2,1", "wav|/var/spool/asterisk/monitor/2010/09/29/12_11_13_9173278562_
401_pbx-1285747861.917|mb") in new stack
[2010-09-29 12:11:13] -- Executing [401@call-my-record:6] Set("Local/89173278562@dstn-callback-31c2,1", "CDR(userfield)=/var/spool/asterisk/monitor/2010/09/29/12_11_13_9173
278562_401_pbx-1285747861.917") in new stack
[2010-09-29 12:11:13] -- Executing [401@call-my-record:7] Return("Local/89173278562@dstn-callback-31c2,1", "") in new stack
[2010-09-29 12:11:13] -- Executing [s@menu-oit-teh:5] Set("Local/89173278562@dstn-callback-31c2,1", "choice_counter") in new stack
[2010-09-29 12:11:13] -- Executing [s@menu-oit-teh:6] Set("Local/89173278562@dstn-callback-31c2,1", "TIMEOUT(response)=10") in new stack
[2010-09-29 12:11:13] -- Response timeout set to 10
[2010-09-29 12:11:13] -- Executing [s@menu-oit-teh:7] Set("Local/89173278562@dstn-callback-31c2,1", "TIMEOUT(digit)=6") in new stack
[2010-09-29 12:11:13] -- Digit timeout set to 6
[2010-09-29 12:11:13] -- Executing [s@menu-oit-teh:8] BackGround("Local/89173278562@dstn-callback-31c2,1", "zdravstujte") in new stack
[2010-09-29 12:11:13] -- Executing [s@menu-oit-teh:9] BackGround("Local/89173278562@dstn-callback-31c2,1", "to-call-exten") in new stack
[2010-09-29 12:11:13] -- Executing [s@menu-oit-teh:10] BackGround("Local/89173278562@dstn-callback-31c2,1", "dial-exten") in new stack
[2010-09-29 12:11:13] -- Executing [s@menu-oit-teh:11] BackGround("Local/89173278562@dstn-callback-31c2,1", "or-wait-for-receptionist") in new stack
[2010-09-29 12:11:13] -- Executing [s@menu-oit-teh:12] BackGround("Local/89173278562@dstn-callback-31c2,1", "thank-you-for-calling") in new stack
[2010-09-29 12:11:13] -- Executing [s@menu-oit-teh:13] StartMusicOnHold("Local/89173278562@dstn-callback-31c2,1", "") in new stack
[2010-09-29 12:11:13] -- Started music on hold, class 'default', on Local/89173278562@dstn-callback-31c2,1
[2010-09-29 12:11:13] -- Executing [s@menu-oit-teh:14] WaitExten("Local/89173278562@dstn-callback-31c2,1", "10") in new stack
Когда в call файле явно указываешь канал, то фоновые звуковые файлы произрываются:
Channel: SIP/0011/8917327XXXX
И в логах тоже это заметно:
[2010-09-29 12:50:14] -- Executing [s@menu-oit-teh:9] BackGround("SIP/0011-0837be90", "to-call-exten") in new stack
[2010-09-29 12:50:14] -- <SIP/0011-0837be90> Playing 'to-call-exten' (language 'ru')
[2010-09-29 12:50:16] -- Executing [s@menu-oit-teh:10] BackGround("SIP/0011-0837be90", "dial-exten") in new stack
[2010-09-29 12:50:16] -- <SIP/0011-0837be90> Playing 'dial-exten' (language 'ru')
Может кто встречался с такой проблемой и успешно решал ее?
Всем спасибо за Ваше внимание!
|