Background отрабатывается как обычный Playback, т.е.
сначала проигрывает сообщение до конца и только потом двигается дальше
по extension.ael
route*CLI> core show version
Asterisk 1.8.11.1 built by mockbuild @ x86-14.phx2.fedoraproject.org on a i686 running Linux on 2012-04-24 19:21:21 UTC
#cat extension.ael
context multifon-incoming {
_7XXXXXXXXXX => jump s;
s => {
Progress;
Wait(1);
Set(CHANNEL(language)=ru) ;
Background(teenager,noanswer);
NoOp(Test);
Dial(Dahdi/g0/8XXXXXXXXXX);
Hangup();
};}
#tail full
2012-06-08 13:57:01] VERBOSE[3866] pbx.c: [2012-06-08 13:57:01] -- Executing [s@multifon-incoming:1] Progress("SIP/multifon-out-0000062d", "") in new stack
[2012-06-08 13:57:01] VERBOSE[3866] pbx.c: [2012-06-08 13:57:01] -- Executing [s@multifon-incoming:2] Wait("SIP/multifon-out-0000062d", "1") in new stack
[2012-06-08 13:57:02] VERBOSE[3866] pbx.c: [2012-06-08 13:57:02] -- Executing [s@multifon-incoming:3] Set("SIP/multifon-out-0000062d", "CHANNEL(language)=ru") in new stack
[2012-06-08 13:57:02] VERBOSE[3866] pbx.c: [2012-06-08 13:57:02] -- Executing [s@multifon-incoming:4] BackGround("SIP/multifon-out-0000062d", "teenager,noanswer") in new stack
[2012-06-08 13:57:02] VERBOSE[3866] file.c: [2012-06-08 13:57:02] -- <SIP/multifon-out-0000062d> Playing 'teenager.alaw' (language 'ru')
[2012-06-08 13:57:05] VERBOSE[3866] pbx.c: [2012-06-08 13:57:05] == Spawn extension (multifon-incoming, s, 4) exited non-zero on 'SIP/multifon-out-0000062d'
спросил
2012-06-08 13:59:39 +0400
GreyMag 170 ● 8 ● 1 ● 10
аналогичная проблема без ответа http://asteriskforum.ru/viewtopic.php?t=4736
GreyMag ( 2012-06-08 14:19:07 +0400 )редактироватьОтредактируйте текст, в мешанине буков лень разбираться.
switch ( 2012-06-08 14:51:22 +0400 )редактировать