Сообщений: 1
|
несколько звонков из callback'a
Здравствуйте!
Настраиваю Callback,
хочу, чтобы пользователь мог совершить несколько последовательных звонков.
На деле получается что пользователь может совершить только один звонок,
а при наборе номера во второй раз - звонок рвется после набора первой-же цифры.
Посмотрите пожалуйста - в чем я ошибся?
вот конфиг:
Сюда попадает звонок набранный callback-ом
[zvonok-iz-callback]
exten => s,1,Answer()
exten => s,n,wait(1)
exten => s,n(instruct),Background(/music/CB/enter_dest)
exten => s,n,WaitExten(15);
exten => _X.,1,Dial(Local/${EXTEN}||H);
exten => _X.,2,Goto(s,instruct);
exten => h,1,Goto(s,instruct);
exten => t,1,Playback(/music/CB/dest_unreachable);
exten => t,2,Goto(s,instruct);
exten => i,1,Playback(/music/CB/dest_unreachable);
exten => i,2,Goto(s,instruct);
Вот лог: **0000219 - номер на который отзвонился астериск
CLI>
-- Attempting call on Local/**0000219 for s@zvonok-iz-callback:1 (Retry 1)
-- Executing Dial("Local/**0000219@default-9367,2", "SIP/cisco3640/**0000219") in new stack
-- Called cisco3640/**0000219
-- SIP/cisco3640-08717000 is making progress passing it to Local/**0000219@default-9367,2
-- SIP/cisco3640-08717000 answered Local/**0000219@default-9367,2
-- Executing Answer("Local/**0000219@default-9367,1", "") in new stack
-- Executing Wait("Local/**0000219@default-9367,1", "1") in new stack
== Spawn extension (default, **0000219, 1) exited non-zero on 'Local/**0000219@default-9367,2'
-- Executing BackGround("SIP/cisco3640-08717000", "/music/CB/enter_dest") in new stack
-- Playing '/music/CB/enter_dest' (language 'en')
-- Executing WaitExten("SIP/cisco3640-08717000", "15") in new stack
набираю 060
== CDR updated on SIP/cisco3640-08717000
-- Executing Dial("SIP/cisco3640-08717000", "Local/060||H") in new stack
-- Called 060
-- Executing Dial("Local/060@default-9ef8,2", "SIP/cisco3640/060") in new stack
-- Called cisco3640/060
-- SIP/cisco3640-0872b000 is making progress passing it to Local/060@default-9ef8,2
-- Local/060@default-9ef8,1 is making progress passing it to SIP/cisco3640-08717000
-- SIP/cisco3640-0872b000 answered Local/060@default-9ef8,2
-- Local/060@default-9ef8,1 answered SIP/cisco3640-08717000
-- Attempting native bridge of SIP/cisco3640-08717000 and SIP/cisco3640-0872b000
== Spawn extension (default, 060, 1) exited non-zero on 'Local/060@default-9ef8,2'
== Spawn extension (zvonok-iz-callback, 060, 1) exited non-zero on 'SIP/cisco3640-08717000'
-- Executing Goto("SIP/cisco3640-08717000", "s|instruct") in new stack
-- Goto (zvonok-iz-callback,s,3)
-- Executing BackGround("SIP/cisco3640-08717000", "/music/CB/enter_dest") in new stack
-- Playing '/music/CB/enter_dest' (language 'en')
-- Executing WaitExten("SIP/cisco3640-08717000", "15") in new stack
тут я нажимаю 0 и звонок сразу рвется:
CLI> Jan 19 20:09:45 NOTICE[28975]: pbx_spool.c:284 attempt_thread: Call completed to Local/**0000219
== Spawn extension (zvonok-iz-callback, s, 4) exited non-zero on 'SIP/cisco3640-08717000'
Jan 19 20:09:45 NOTICE[28975]: pbx_spool.c:284 attempt_thread: Call completed to Local/**0000219
|