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

Отсутствие слышимости при переводе на виртуальный экстеншен

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

Модератор: april22

Re: Отсутствие слышимости при переводе на виртуальный экстен

Сообщение Kroteg » 22 мар 2018, 14:57

lipun писал(а):наверное надо добавить что виртуальный экстеншн с фоллуми на мобильный номер. "Force Trunk CID" выставил, пока все также. Если направляется на группу вызовов и прописан этот номер мобильного , то все отрабатывает как надо. Подскажите может еще варианты? В CLI ошибок не показывает

Что вообще показывает CLI при вызове или попытке вызова?
Код: выделить все
> core set verbose 3

может решетка в конце номера не стоит или ещё что...
Аватар пользователя
Kroteg
 
Сообщений: 94
Зарегистрирован: 11 янв 2018, 14:51
Откуда: Opck

Re: Отсутствие слышимости при переводе на виртуальный экстен

Сообщение lipun » 22 мар 2018, 16:45

не знаю насколько информативно:
Код: выделить все
SIP/TelecomTechnology79381460746-0000002e is ringing
    -- SIP/TelecomTechnology79381460746-0000002e answered Local/79287771000@from-internal-00000011;2
    -- Local/79287771000@from-internal-00000011;1 answered SIP/multifon79381460746-0000002d
    -- Executing [s@macro-auto-blkvm:1] ExecIf("Local/79287771000@from-internal-00000011;1", "0?Set(CDR(recordingfile)=external-102-79045037424-20180322-154422-1521722662.106.wav)") in new stack
    -- Executing [s@macro-auto-blkvm:2] Set("Local/79287771000@from-internal-00000011;1", "__MACRO_RESULT=") in new stack
    -- Executing [s@macro-auto-blkvm:3] Set("Local/79287771000@from-internal-00000011;1", "CFIGNORE=") in new stack
    -- Executing [s@macro-auto-blkvm:4] Set("Local/79287771000@from-internal-00000011;1", "MASTER_CHANNEL(CFIGNORE)=") in new stack
    -- Executing [s@macro-auto-blkvm:5] Set("Local/79287771000@from-internal-00000011;1", "FORWARD_CONTEXT=from-internal") in new stack
    -- Executing [s@macro-auto-blkvm:6] Set("Local/79287771000@from-internal-00000011;1", "MASTER_CHANNEL(FORWARD_CONTEXT)=from-internal") in new stack
    -- Executing [s@macro-auto-blkvm:7] Macro("Local/79287771000@from-internal-00000011;1", "blkvm-clr,") in new stack
    -- Executing [s@macro-blkvm-clr:1] Set("Local/79287771000@from-internal-00000011;1", "SHARED(BLKVM,SIP/multifon79381460746-0000002d)=") in new stack
    -- Executing [s@macro-blkvm-clr:2] Set("Local/79287771000@from-internal-00000011;1", "GOSUB_RETVAL=") in new stack
    -- Executing [s@macro-blkvm-clr:3] MacroExit("Local/79287771000@from-internal-00000011;1", "") in new stack
    -- Executing [s@macro-auto-blkvm:8] ExecIf("Local/79287771000@from-internal-00000011;1", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(num))=79287771000@from-internal/n)") in new stack
    -- Executing [s@macro-auto-blkvm:9] ExecIf("Local/79287771000@from-internal-00000011;1", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(name))=)") in new stack
    -- Channel SIP/TelecomTechnology79381460746-0000002e joined 'simple_bridge' basic-bridge <87c03c06-c646-4cb0-9e5d-3a035aaa67b3>
    -- Channel Local/79287771000@from-internal-00000011;2 joined 'simple_bridge' basic-bridge <87c03c06-c646-4cb0-9e5d-3a035aaa67b3>
    -- Channel Local/79287771000@from-internal-00000011;1 joined 'simple_bridge' basic-bridge <bbfe48cb-4652-4373-bc2e-e28db7ef825d>
    -- Channel SIP/multifon79381460746-0000002d joined 'simple_bridge' basic-bridge <bbfe48cb-4652-4373-bc2e-e28db7ef825d>
еще кусок кода:
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
  == Begin MixMonitor Recording SIP/multifon79381460746-0000002d
dialparties.agi: Starting New Dialparties.agi
dialparties.agi: Caller ID name is '79045037424' number is '79045037424'
dialparties.agi: CW Ignore is:
dialparties.agi: CF Ignore is:
dialparties.agi: CW IN_USE/BUSY is: 1
dialparties.agi: Methodology of ring is  'ringall'
    -- dialparties.agi: Added extension 79287771000# to extension map
    -- dialparties.agi: Extension 79287771000# cf is disabled
    -- dialparties.agi: Filtered ARG3: 79287771000
dialparties.agi: RVOL_MODE ''
dialparties.agi: RVOL is:
dialparties.agi: RVOLPARENT is:


---
От модератора: Используйте теги ! https://forum.asterisk.ru/faq.php#f3r0
Сообщение отредактировано.
lipun
 
Сообщений: 12
Зарегистрирован: 17 дек 2017, 15:51

Re: Отсутствие слышимости при переводе на виртуальный экстен

Сообщение ded » 22 мар 2018, 16:58

1) А где же строка Dial в этом логе? Это самое главное, как и отлуп на неё..

2) Тут и SIP/TelecomTechnology79381460746 и тут же SIP/multifon79381460746 - вы переписываете названия транков на ходу, что ли?
ded
 
Сообщений: 13285
Зарегистрирован: 26 авг 2010, 19:00

Re: Отсутствие слышимости при переводе на виртуальный экстен

Сообщение lipun » 22 мар 2018, 17:17

Код: выделить все
   
    -- Goto (macro-blkvm-setifempty,s,4)
    -- Executing [102@followme-sub:10] GotoIf("SIP/multifon79381460746-00000034", "0?skipov") in new stack
    -- Executing [102@followme-sub:11] Macro("SIP/multifon79381460746-00000034", "blkvm-set,reset") in new stack
    -- Executing [s@macro-blkvm-set:1] ExecIf("SIP/multifon79381460746-00000034", "1?Set(__BLKVM_CHANNEL=SIP/multifon79381460746-00000034)") in new stack
    -- Executing [102@followme-sub:12] Set("SIP/multifon79381460746-00000034", "__NODEST=") in new stack
    -- Executing [102@followme-sub:13] Set("SIP/multifon79381460746-00000034", "RRNODEST=") in new stack
    -- Executing [102@followme-sub:14] Set("SIP/multifon79381460746-00000034", "__NODEST=102") in new stack
    -- Executing [102@followme-sub:15] GosubIf("SIP/multifon79381460746-00000034", "0?sub-fmsetcid,s,1()") in new stack
    -- Executing [102@followme-sub:16] GotoIf("SIP/multifon79381460746-00000034", "1?skipprepend") in new stack
    -- Goto (followme-sub,102,18)
    -- Executing [102@followme-sub:18] Set("SIP/multifon79381460746-00000034", "RecordMethod=Group") in new stack
    -- Executing [102@followme-sub:19] Gosub("SIP/multifon79381460746-00000034", "sub-record-check,s,1(exten,102,)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("SIP/multifon79381460746-00000034", "11?initialized") in new stack
    -- Goto (sub-record-check,s,10)
    -- Executing [s@sub-record-check:10] NoOp("SIP/multifon79381460746-00000034", "Recordings initialized") in new stack
    -- Executing [s@sub-record-check:11] ExecIf("SIP/multifon79381460746-00000034", "1?Set(ARG3=dontcare)") in new stack
    -- Executing [s@sub-record-check:12] Set("SIP/multifon79381460746-00000034", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("SIP/multifon79381460746-00000034", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [s@sub-record-check:14] GotoIf("SIP/multifon79381460746-00000034", "5?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [s@sub-record-check:17] GotoIf("SIP/multifon79381460746-00000034", "1?sub-record-check,exten,1") in new stack
    -- Goto (sub-record-check,exten,1)
    -- Executing [exten@sub-record-check:1] NoOp("SIP/multifon79381460746-00000034", "Exten Recording Check between 79045037424 and 102") in new stack
    -- Executing [exten@sub-record-check:2] Set("SIP/multifon79381460746-00000034", "CALLTYPE=external") in new stack
    -- Executing [exten@sub-record-check:3] ExecIf("SIP/multifon79381460746-00000034", "0?Set(CALLTYPE=)") in new stack
    -- Executing [exten@sub-record-check:4] Set("SIP/multifon79381460746-00000034", "CALLEE=force") in new stack
    -- Executing [exten@sub-record-check:5] ExecIf("SIP/multifon79381460746-00000034", "0?Set(CALLEE=dontcare)") in new stack
    -- Executing [exten@sub-record-check:6] GotoIf("SIP/multifon79381460746-00000034", "1?callee") in new stack
    -- Goto (sub-record-check,exten,11)
    -- Executing [exten@sub-record-check:11] Gosub("SIP/multifon79381460746-00000034", "recordcheck,1(force,external,102)") in new stack
    -- Executing [recordcheck@sub-record-check:1] NoOp("SIP/multifon79381460746-00000034", "Starting recording check against force") in new stack
    -- Executing [recordcheck@sub-record-check:2] Goto("SIP/multifon79381460746-00000034", "force") in new stack
    -- Goto (sub-record-check,recordcheck,5)
    -- Executing [recordcheck@sub-record-check:5] Set("SIP/multifon79381460746-00000034", "__REC_POLICY_MODE=FORCE") in new stack
    -- Executing [recordcheck@sub-record-check:6] GotoIf("SIP/multifon79381460746-00000034", "1?startrec") in new stack
    -- Goto (sub-record-check,recordcheck,16)
    -- Executing [recordcheck@sub-record-check:16] NoOp("SIP/multifon79381460746-00000034", "Starting recording: external, 102") in new stack
    -- Executing [recordcheck@sub-record-check:17] Set("SIP/multifon79381460746-00000034", "AUDIOHOOK_INHERIT(MixMonitor)=yes") in new stack
    -- Executing [recordcheck@sub-record-check:18] Set("SIP/multifon79381460746-00000034", "__CALLFILENAME=external-102-79045037424-20180322-160901-1521724141.120") in new stack
    -- Executing [recordcheck@sub-record-check:19] MixMonitor("SIP/multifon79381460746-00000034", "2018/03/22/external-102-79045037424-20180322-160901-1521724141.120.wav,abi(LOCAL_MIXMON_ID),bash /var/lib/asterisk/bin/rectoemail.sh ^{YEAR} ^{MONTH} ^{DAY} ^{TIMESTR} ^{FROMEXTEN} ^{CALLFILENAME}.^{MIXMON_FORMAT} ^{ARG3}") in new stack
    -- Executing [recordcheck@sub-record-check:20] Set("SIP/multifon79381460746-00000034", "__MIXMON_ID=0x7f287860f740") in new stack
    -- Executing [recordcheck@sub-record-check:21] Set("SIP/multifon79381460746-00000034", "__RECORD_ID=SIP/multifon79381460746-00000034") in new stack
    -- Executing [recordcheck@sub-record-check:22] Set("SIP/multifon79381460746-00000034", "__REC_STATUS=RECORDING") in new stack
    -- Executing [recordcheck@sub-record-check:23] Set("SIP/multifon79381460746-00000034", "CDR(recordingfile)=external-102-79045037424-20180322-160901-1521724141.120.wav") in new stack
    -- Executing [recordcheck@sub-record-check:24] Return("SIP/multifon79381460746-00000034", "") in new stack
    -- Executing [exten@sub-record-check:12] Return("SIP/multifon79381460746-00000034", "") in new stack
    -- Executing [102@followme-sub:20] GotoIf("SIP/multifon79381460746-00000034", "1?skipdring") in new stack
    -- Goto (followme-sub,102,23)
    -- Executing [102@followme-sub:23] Set("SIP/multifon79381460746-00000034", "STRATEGY=ringall") in new stack
    -- Executing [102@followme-sub:24] Set("SIP/multifon79381460746-00000034", "__RVOL=") in new stack
    -- Executing [102@followme-sub:25] GotoIf("SIP/multifon79381460746-00000034", "0?skipsimple") in new stack
    -- Executing [102@followme-sub:26] GotoIf("SIP/multifon79381460746-00000034", "1 ?skipsimple") in new stack
    -- Goto (followme-sub,102,28)
    -- Executing [102@followme-sub:28] Set("SIP/multifon79381460746-00000034", "RingGroupMethod=ringall") in new stack
    -- Executing [102@followme-sub:29] Set("SIP/multifon79381460746-00000034", "_FMGRP=102") in new stack
    -- Executing [102@followme-sub:30] GotoIf("SIP/multifon79381460746-00000034", "1?DIALGRP") in new stack
    -- Goto (followme-sub,102,34)
    -- Executing [102@followme-sub:34] ExecIf("SIP/multifon79381460746-00000034", "1?Set(DOPTS=HhTtrI):Set(DOPTS=m(Ring)HhTtI)") in new stack
    -- Executing [102@followme-sub:35] Set("SIP/multifon79381460746-00000034", "__ALT_CONFIRM_MSG=") in new stack
    -- Executing [102@followme-sub:36] GotoIf("SIP/multifon79381460746-00000034", "0?doconfirm") in new stack
    -- Executing [102@followme-sub:37] GotoIf("SIP/multifon79381460746-00000034", "0?ringallv21") in new stack
    -- Executing [102@followme-sub:38] Macro("SIP/multifon79381460746-00000034", "dial,20,HhTtrI,79287771000#") in new stack
    -- Executing [s@macro-dial:1] NoOp("SIP/multifon79381460746-00000034", "Blind Transfer: , Attended Transfer: , User: , Alert Info: ") in new stack
    -- Executing [102@followme-sub:39] Goto("SIP/multifon79381460746-00000034", "nextstep") in new stack
    -- Goto (followme-sub,102,46)
    -- Executing [102@followme-sub:46] Set("SIP/multifon79381460746-00000034", "RingGroupMethod=") in new stack
    -- Executing [102@followme-sub:47] GotoIf("SIP/multifon79381460746-00000034", "0?nodest") in new stack
    -- Executing [102@followme-sub:48] Set("SIP/multifon79381460746-00000034", "__NODEST=") in new stack
    -- Executing [102@followme-sub:49] Set("SIP/multifon79381460746-00000034", "__PICKUPMARK=") in new stack
    -- Executing [102@followme-sub:50] Macro("SIP/multifon79381460746-00000034", "blkvm-clr,") in new stack
    -- Executing [s@macro-blkvm-clr:1] Set("SIP/multifon79381460746-00000034", "SHARED(BLKVM,SIP/multifon79381460746-00000034)=") in new stack
    -- Executing [102@followme-sub:51] Set("SIP/multifon79381460746-00000034", "DIALSTATUS=NOANSWER") in new stack
    -- Executing [102@followme-sub:52] GotoIf("SIP/multifon79381460746-00000034", "0?dohangup") in new stack
    -- Executing [102@followme-sub:53] Goto("SIP/multifon79381460746-00000034", "ext-local,102,dest") in new stack
    -- Goto (ext-local,102,3)
    -- Executing [102@ext-local:3] Set("SIP/multifon79381460746-00000034", "__PICKUPMARK=") in new stack
    -- Executing [102@ext-local:4] Goto("SIP/multifon79381460746-00000034", ",return,1") in new stack
    -- Goto (ext-local,return,1)
  == Begin MixMonitor Recording SIP/multifon79381460746-00000034
  == MixMonitor close filestream (mixed)
  == Executing [bash /var/lib/asterisk/bin/rectoemail.sh 2018 03 22 20180322-160901 79045037424 external-102-79045037424-20180322-160901-1521724141.120.wav 102]
  == End MixMonitor Recording SIP/multifon79381460746-00000034
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [79381460746@from-trunk-sip-multifon79381460746:1] Set("SIP/multifon79381460746-00000035", "GROUP()=OUT_1") in new stack
    -- Executing [79381460746@from-trunk-sip-multifon79381460746:2] Goto("SIP/multifon79381460746-00000035", "from-trunk,79381460746,1") in new stack
    -- Goto (from-trunk,79381460746,1)
    -- Executing [79381460746@from-trunk:1] Set("SIP/multifon79381460746-00000035", "__DIRECTION=INBOUND") in new stack
    -- Executing [79381460746@from-trunk:2] Set("SIP/multifon79381460746-00000035", "__FROM_DID=79381460746") in new stack
    -- Executing [79381460746@from-trunk:3] Goto("SIP/multifon79381460746-00000035", "s,1") in new stack
    -- Goto (from-trunk,s,1)
    -- Executing [s@from-trunk:1] ExecIf("SIP/multifon79381460746-00000035", "0?Set(__FROM_DID=s)") in new stack
    -- Executing [s@from-trunk:2] Gosub("SIP/multifon79381460746-00000035", "sub-record-check,s,1(in,s,dontcare)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("SIP/multifon79381460746-00000035", "0?initialized") in new stack
    -- Executing [s@sub-record-check:2] Set("SIP/multifon79381460746-00000035", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:3] Set("SIP/multifon79381460746-00000035", "NOW=1521724142") in new stack
    -- Executing [s@sub-record-check:4] Set("SIP/multifon79381460746-00000035", "__DAY=22") in new stack
    -- Executing [s@sub-record-check:5] Set("SIP/multifon79381460746-00000035", "__MONTH=03") in new stack
    -- Executing [s@sub-record-check:6] Set("SIP/multifon79381460746-00000035", "__YEAR=2018") in new stack
    -- Executing [s@sub-record-check:7] Set("SIP/multifon79381460746-00000035", "__TIMESTR=20180322-160902") in new stack
    -- Executing [s@sub-record-check:8] Set("SIP/multifon79381460746-00000035", "__FROMEXTEN=unknown") in new stack
    -- Executing [s@sub-record-check:9] Set("SIP/multifon79381460746-00000035", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:10] NoOp("SIP/multifon79381460746-00000035", "Recordings initialized") in new stack
    -- Executing [s@sub-record-check:11] ExecIf("SIP/multifon79381460746-00000035", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [s@sub-record-check:12] Set("SIP/multifon79381460746-00000035", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("SIP/multifon79381460746-00000035", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [s@sub-record-check:14] GotoIf("SIP/multifon79381460746-00000035", "2?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [s@sub-record-check:17] GotoIf("SIP/multifon79381460746-00000035", "1?sub-record-check,in,1") in new stack
    -- Goto (sub-record-check,in,1)
    -- Executing [in@sub-record-check:1] NoOp("SIP/multifon79381460746-00000035", "Inbound Recording Check to s") in new stack
    -- Executing [in@sub-record-check:2] Set("SIP/multifon79381460746-00000035", "FROMEXTEN=unknown") in new stack
    -- Executing [in@sub-record-check:3] ExecIf("SIP/multifon79381460746-00000035", "11?Set(FROMEXTEN=79045037424)") in new stack
    -- Executing [in@sub-record-check:4] Gosub("SIP/multifon79381460746-00000035", "recordcheck,1(dontcare,in,s)") in new stack
    -- Executing [recordcheck@sub-record-check:1] NoOp("SIP/multifon79381460746-00000035", "Starting recording check against dontcare") in new stack
    -- Executing [recordcheck@sub-record-check:2] Goto("SIP/multifon79381460746-00000035", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [recordcheck@sub-record-check:3] Return("SIP/multifon79381460746-00000035", "") in new stack
    -- Executing [in@sub-record-check:5] Return("SIP/multifon79381460746-00000035", "") in new stack
    -- Executing [s@from-trunk:3] Gosub("SIP/multifon79381460746-00000035", "app-blacklist-check,s,1()") in new stack
    -- Executing [s@app-blacklist-check:1] GotoIf("SIP/multifon79381460746-00000035", "0?blacklisted") in new stack
    -- Executing [s@app-blacklist-check:2] Set("SIP/multifon79381460746-00000035", "CALLED_BLACKLIST=1") in new stack
    -- Executing [s@app-blacklist-check:3] Return("SIP/multifon79381460746-00000035", "") in new stack
    -- Executing [s@from-trunk:4] Set("SIP/multifon79381460746-00000035", "CDR(did)=79381460746") in new stack
    -- Executing [s@from-trunk:5] ExecIf("SIP/multifon79381460746-00000035", "1 ?Set(CALLERID(name)=79045037424)") in new stack
    -- Executing [s@from-trunk:6] Set("SIP/multifon79381460746-00000035", "__MOHCLASS=") in new stack
    -- Executing [s@from-trunk:7] Set("SIP/multifon79381460746-00000035", "__REVERSAL_REJECT=FALSE") in new stack
    -- Executing [s@from-trunk:8] GotoIf("SIP/multifon79381460746-00000035", "1?post-reverse-charge") in new stack
    -- Goto (from-trunk,s,10)
    -- Executing [s@from-trunk:10] NoOp("SIP/multifon79381460746-00000035", "") in new stack
    -- Executing [s@from-trunk:11] Set("SIP/multifon79381460746-00000035", "__CALLINGNAMEPRES_SV=allowed_not_screened") in new stack
    -- Executing [s@from-trunk:12] Set("SIP/multifon79381460746-00000035", "__CALLINGNUMPRES_SV=allowed_not_screened") in new stack
    -- Executing [s@from-trunk:13] Set("SIP/multifon79381460746-00000035", "CALLERID(name-pres)=allowed_not_screened") in new stack
    -- Executing [s@from-trunk:14] Set("SIP/multifon79381460746-00000035", "CALLERID(num-pres)=allowed_not_screened") in new stack
    -- Executing [s@from-trunk:15] NoOp("SIP/multifon79381460746-00000035", "CallerID Entry Point") in new stack
    -- Executing [s@from-trunk:16] Goto("SIP/multifon79381460746-00000035", "from-did-direct,102,1") in new stack
    -- Goto (from-did-direct,102,1)
    -- Executing [102@from-did-direct:1] GotoIf("SIP/multifon79381460746-00000035", "0?ext-local,102,1:followme-check,102,1") in new stack
    -- Goto (followme-check,102,1)
    -- Executing [102@followme-check:1] Gosub("SIP/multifon79381460746-00000035", "followme-sub,102,1()") in new stack
    -- Executing [102@followme-sub:1] Macro("SIP/multifon79381460746-00000035", "user-callerid,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/multifon79381460746-00000035", "TOUCH_MONITOR=1521724142.121") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/multifon79381460746-00000035", "AMPUSER=79045037424") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/multifon79381460746-00000035", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/multifon79381460746-00000035", "1?Set(REALCALLERIDNUM=79045037424)") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/multifon79381460746-00000035", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/multifon79381460746-00000035", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/multifon79381460746-00000035", "AMPUSERCIDNAME=") in new stack
    -- Executing [s@macro-user-callerid:8] ExecIf("SIP/multifon79381460746-00000035", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
    -- Executing [s@macro-user-callerid:9] GotoIf("SIP/multifon79381460746-00000035", "1?report") in new stack
    -- Goto (macro-user-callerid,s,16)
    -- Executing [s@macro-user-callerid:16] NoOp("SIP/multifon79381460746-00000035", "Macro Depth is 1") in new stack
    -- Executing [s@macro-user-callerid:17] GotoIf("SIP/multifon79381460746-00000035", "1?report2:macroerror") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] GotoIf("SIP/multifon79381460746-00000035", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:20] Set("SIP/multifon79381460746-00000035", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:21] GotoIf("SIP/multifon79381460746-00000035", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,37)
    -- Executing [s@macro-user-callerid:37] Set("SIP/multifon79381460746-00000035", "CALLERID(number)=79045037424") in new stack
    -- Executing [s@macro-user-callerid:38] Set("SIP/multifon79381460746-00000035", "CALLERID(name)=79045037424") in new stack
    -- Executing [s@macro-user-callerid:39] GotoIf("SIP/multifon79381460746-00000035", "0?cnum") in new stack
    -- Executing [s@macro-user-callerid:40] Set("SIP/multifon79381460746-00000035", "CDR(cnam)=79045037424") in new stack
    -- Executing [s@macro-user-callerid:41] Set("SIP/multifon79381460746-00000035", "CDR(cnum)=79045037424") in new stack
    -- Executing [s@macro-user-callerid:42] Set("SIP/multifon79381460746-00000035", "CHANNEL(language)=ru") in new stack
    -- Executing [102@followme-sub:2] Set("SIP/multifon79381460746-00000035", "DIAL_OPTIONS=HhTtrI") in new stack
    -- Executing [102@followme-sub:3] Set("SIP/multifon79381460746-00000035", "CONNECTEDLINE(num,i)=102") in new stack
    -- Executing [102@followme-sub:4] Gosub("SIP/multifon79381460746-00000035", "sub-presencestate-display,s,1(102)") in new stack
    -- Executing [s@sub-presencestate-display:1] Goto("SIP/multifon79381460746-00000035", "state-not_set,1") in new stack
    -- Goto (sub-presencestate-display,state-not_set,1)
    -- Executing [state-not_set@sub-presencestate-display:1] Set("SIP/multifon79381460746-00000035", "PRESENCESTATE_DISPLAY=") in new stack
    -- Executing [state-not_set@sub-presencestate-display:2] Return("SIP/multifon79381460746-00000035", "") in new stack
    -- Executing [102@followme-sub:5] Set("SIP/multifon79381460746-00000035", "CONNECTEDLINE(name)=VirtualExtensions(79287771000)") in new stack
    -- Executing [102@followme-sub:6] Set("SIP/multifon79381460746-00000035", "FM_DIALSTATUS=NOT_INUSE") in new stack
    -- Executing [102@followme-sub:7] Set("SIP/multifon79381460746-00000035", "__EXTTOCALL=102") in new stack
    -- Executing [102@followme-sub:8] Set("SIP/multifon79381460746-00000035", "__PICKUPMARK=102") in new stack
    -- Executing [102@followme-sub:9] Macro("SIP/multifon79381460746-00000035", "blkvm-setifempty,") in new stack
    -- Executing [s@macro-blkvm-setifempty:1] GotoIf("SIP/multifon79381460746-00000035", "1?init") in new stack
    -- Goto (macro-blkvm-setifempty,s,4)
    -- Executing [s@macro-blkvm-setifempty:4] Set("SIP/multifon79381460746-00000035", "__BLKVM_CHANNEL=SIP/multifon79381460746-00000035") in new stack
    -- Executing [s@macro-blkvm-setifempty:5] Set("SIP/multifon79381460746-00000035", "SHARED(BLKVM,SIP/multifon79381460746-00000035)=TRUE") in new stack
    -- Executing [s@macro-blkvm-setifempty:6] Set("SIP/multifon79381460746-00000035", "GOSUB_RETVAL=TRUE") in new stack
    -- Executing [s@macro-blkvm-setifempty:7] MacroExit("SIP/multifon79381460746-00000035", "") in new stack
    -- Executing [102@followme-sub:10] GotoIf("SIP/multifon79381460746-00000035", "1?skipov") in new stack
    -- Goto (followme-sub,102,13)
    -- Executing [102@followme-sub:13] Set("SIP/multifon79381460746-00000035", "RRNODEST=") in new stack
    -- Executing [102@followme-sub:14] Set("SIP/multifon79381460746-00000035", "__NODEST=102") in new stack
    -- Executing [102@followme-sub:15] GosubIf("SIP/multifon79381460746-00000035", "0?sub-fmsetcid,s,1()") in new stack
    -- Executing [102@followme-sub:16] GotoIf("SIP/multifon79381460746-00000035", "1?skipprepend") in new stack
    -- Goto (followme-sub,102,18)
    -- Executing [102@followme-sub:18] Set("SIP/multifon79381460746-00000035", "RecordMethod=Group") in new stack
    -- Executing [102@followme-sub:19] Gosub("SIP/multifon79381460746-00000035", "sub-record-check,s,1(exten,102,)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("SIP/multifon79381460746-00000035", "11?initialized") in new stack
    -- Goto (sub-record-check,s,10)
    -- Executing [s@sub-record-check:10] NoOp("SIP/multifon79381460746-00000035", "Recordings initialized") in new stack
    -- Executing [s@sub-record-check:11] ExecIf("SIP/multifon79381460746-00000035", "1?Set(ARG3=dontcare)") in new stack
    -- Executing [s@sub-record-check:12] Set("SIP/multifon79381460746-00000035", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("SIP/multifon79381460746-00000035", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [s@sub-record-check:14] GotoIf("SIP/multifon79381460746-00000035", "5?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [s@sub-record-check:17] GotoIf("SIP/multifon79381460746-00000035", "1?sub-record-check,exten,1") in new stack
    -- Goto (sub-record-check,exten,1)
    -- Executing [exten@sub-record-check:1] NoOp("SIP/multifon79381460746-00000035", "Exten Recording Check between 79045037424 and 102") in new stack
    -- Executing [exten@sub-record-check:2] Set("SIP/multifon79381460746-00000035", "CALLTYPE=external") in new stack
    -- Executing [exten@sub-record-check:3] ExecIf("SIP/multifon79381460746-00000035", "0?Set(CALLTYPE=)") in new stack
    -- Executing [exten@sub-record-check:4] Set("SIP/multifon79381460746-00000035", "CALLEE=force") in new stack
    -- Executing [exten@sub-record-check:5] ExecIf("SIP/multifon79381460746-00000035", "0?Set(CALLEE=dontcare)") in new stack
    -- Executing [exten@sub-record-check:6] GotoIf("SIP/multifon79381460746-00000035", "1?callee") in new stack
    -- Goto (sub-record-check,exten,11)
    -- Executing [exten@sub-record-check:11] Gosub("SIP/multifon79381460746-00000035", "recordcheck,1(force,external,102)") in new stack
    -- Executing [recordcheck@sub-record-check:1] NoOp("SIP/multifon79381460746-00000035", "Starting recording check against force") in new stack
    -- Executing [recordcheck@sub-record-check:2] Goto("SIP/multifon79381460746-00000035", "force") in new stack
    -- Goto (sub-record-check,recordcheck,5)
    -- Executing [recordcheck@sub-record-check:5] Set("SIP/multifon79381460746-00000035", "__REC_POLICY_MODE=FORCE") in new stack
    -- Executing [recordcheck@sub-record-check:6] GotoIf("SIP/multifon79381460746-00000035", "1?startrec") in new stack
    -- Goto (sub-record-check,recordcheck,16)
    -- Executing [recordcheck@sub-record-check:16] NoOp("SIP/multifon79381460746-00000035", "Starting recording: external, 102") in new stack
    -- Executing [recordcheck@sub-record-check:17] Set("SIP/multifon79381460746-00000035", "AUDIOHOOK_INHERIT(MixMonitor)=yes") in new stack
    -- Executing [recordcheck@sub-record-check:18] Set("SIP/multifon79381460746-00000035", "__CALLFILENAME=external-102-79045037424-20180322-160902-1521724142.121") in new stack
    -- Executing [recordcheck@sub-record-check:19] MixMonitor("SIP/multifon79381460746-00000035", "2018/03/22/external-102-79045037424-20180322-160902-1521724142.121.wav,abi(LOCAL_MIXMON_ID),bash /var/lib/asterisk/bin/rectoemail.sh ^{YEAR} ^{MONTH} ^{DAY} ^{TIMESTR} ^{FROMEXTEN} ^{CALLFILENAME}.^{MIXMON_FORMAT} ^{ARG3}") in new stack
    -- Executing [recordcheck@sub-record-check:20] Set("SIP/multifon79381460746-00000035", "__MIXMON_ID=0x7f2850b255d0") in new stack
    -- Executing [recordcheck@sub-record-check:21] Set("SIP/multifon79381460746-00000035", "__RECORD_ID=SIP/multifon79381460746-00000035") in new stack
    -- Executing [recordcheck@sub-record-check:22] Set("SIP/multifon79381460746-00000035", "__REC_STATUS=RECORDING") in new stack
    -- Executing [recordcheck@sub-record-check:23] Set("SIP/multifon79381460746-00000035", "CDR(recordingfile)=external-102-79045037424-20180322-160902-1521724142.121.wav") in new stack
    -- Executing [recordcheck@sub-record-check:24] Return("SIP/multifon79381460746-00000035", "") in new stack
    -- Executing [exten@sub-record-check:12] Return("SIP/multifon79381460746-00000035", "") in new stack
    -- Executing [102@followme-sub:20] GotoIf("SIP/multifon79381460746-00000035", "1?skipdring") in new stack
    -- Goto (followme-sub,102,23)
    -- Executing [102@followme-sub:23] Set("SIP/multifon79381460746-00000035", "STRATEGY=ringall") in new stack
    -- Executing [102@followme-sub:24] Set("SIP/multifon79381460746-00000035", "__RVOL=") in new stack
    -- Executing [102@followme-sub:25] GotoIf("SIP/multifon79381460746-00000035", "0?skipsimple") in new stack
    -- Executing [102@followme-sub:26] GotoIf("SIP/multifon79381460746-00000035", "1 ?skipsimple") in new stack
    -- Goto (followme-sub,102,28)
    -- Executing [102@followme-sub:28] Set("SIP/multifon79381460746-00000035", "RingGroupMethod=ringall") in new stack
    -- Executing [102@followme-sub:29] Set("SIP/multifon79381460746-00000035", "_FMGRP=102") in new stack
    -- Executing [102@followme-sub:30] GotoIf("SIP/multifon79381460746-00000035", "1?DIALGRP") in new stack
    -- Goto (followme-sub,102,34)
    -- Executing [102@followme-sub:34] ExecIf("SIP/multifon79381460746-00000035", "1?Set(DOPTS=HhTtrI):Set(DOPTS=m(Ring)HhTtI)") in new stack
    -- Executing [102@followme-sub:35] Set("SIP/multifon79381460746-00000035", "__ALT_CONFIRM_MSG=") in new stack
    -- Executing [102@followme-sub:36] GotoIf("SIP/multifon79381460746-00000035", "0?doconfirm") in new stack
    -- Executing [102@followme-sub:37] GotoIf("SIP/multifon79381460746-00000035", "0?ringallv21") in new stack
    -- Executing [102@followme-sub:38] Macro("SIP/multifon79381460746-00000035", "dial,20,HhTtrI,79287771000#") in new stack
    -- Executing [s@macro-dial:1] NoOp("SIP/multifon79381460746-00000035", "Blind Transfer: , Attended Transfer: , User: , Alert Info: ") in new stack
    -- Executing [s@macro-dial:2] ExecIf("SIP/multifon79381460746-00000035", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [s@macro-dial:3] ExecIf("SIP/multifon79381460746-00000035", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [s@macro-dial:4] ExecIf("SIP/multifon79381460746-00000035", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [s@macro-dial:5] ExecIf("SIP/multifon79381460746-00000035", "0?Set(CHANNEL(musicclass)=)") in new stack
    -- Executing [s@macro-dial:6] AGI("SIP/multifon79381460746-00000035", "dialparties.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
  == Begin MixMonitor Recording SIP/multifon79381460746-00000035
dialparties.agi: Starting New Dialparties.agi
dialparties.agi: Caller ID name is '79045037424' number is '79045037424'
dialparties.agi: CW Ignore is:
dialparties.agi: CF Ignore is:
dialparties.agi: CW IN_USE/BUSY is: 1
dialparties.agi: Methodology of ring is  'ringall'
    -- dialparties.agi: Added extension 79287771000# to extension map
    -- dialparties.agi: Extension 79287771000# cf is disabled
    -- dialparties.agi: Filtered ARG3: 79287771000
dialparties.agi: RVOL_MODE ''
dialparties.agi: RVOL is:
dialparties.agi: RVOLPARENT is:
    -- <SIP/multifon79381460746-00000035>AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:9] NoOp("SIP/multifon79381460746-00000035", "Returned from dialparties with groups to dial") in new stack
    -- Executing [s@macro-dial:10] NoOp("SIP/multifon79381460746-00000035", "ringall array  ") in new stack
    -- Executing [s@macro-dial:11] Set("SIP/multifon79381460746-00000035", "__FMGL_DIAL=") in new stack
    -- Executing [s@macro-dial:12] Set("SIP/multifon79381460746-00000035", "LOOPCNT=1") in new stack
    -- Executing [s@macro-dial:13] Set("SIP/multifon79381460746-00000035", "ITER=1") in new stack
    -- Executing [s@macro-dial:14] Set("SIP/multifon79381460746-00000035", "EXTTOCALL=79287771000") in new stack
    -- Executing [s@macro-dial:15] NoOp("SIP/multifon79381460746-00000035", "Working with 79287771000") in new stack
    -- Executing [s@macro-dial:16] ExecIf("SIP/multifon79381460746-00000035", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [s@macro-dial:17] ExecIf("SIP/multifon79381460746-00000035", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
    -- Executing [s@macro-dial:18] Set("SIP/multifon79381460746-00000035", "ITER=2") in new stack
    -- Executing [s@macro-dial:19] GotoIf("SIP/multifon79381460746-00000035", "0?ndloopbegin") in new stack
    -- Executing [s@macro-dial:20] Macro("SIP/multifon79381460746-00000035", "dial-ringall-predial-hook,") in new stack
    -- Executing [s@macro-dial-ringall-predial-hook:1] MacroExit("SIP/multifon79381460746-00000035", "") in new stack
    -- Executing [s@macro-dial:21] Dial("SIP/multifon79381460746-00000035", "Local/79287771000@from-internal/n,20,HhtrIM(auto-blkvm)b(func-apply-sipheaders^s^1),") in new stack
    -- Local/79287771000@from-internal-00000014;1 Internal Gosub(func-apply-sipheaders,s,1) start
    -- Executing [s@func-apply-sipheaders:1] NoOp("Local/79287771000@from-internal-00000014;1", "Applying SIP Headers to channel") in new stack
    -- Executing [s@func-apply-sipheaders:2] Set("Local/79287771000@from-internal-00000014;1", "SIPHEADERKEYS=") in new stack
    -- Executing [s@func-apply-sipheaders:3] While("Local/79287771000@from-internal-00000014;1", "0") in new stack
    -- Jumping to priority 7
    -- Executing [s@func-apply-sipheaders:8] Return("Local/79287771000@from-internal-00000014;1", "") in new stack
  == Spawn extension (from-internal, 102, 1) exited non-zero on 'Local/79287771000@from-internal-00000014;1'
    -- Local/79287771000@from-internal-00000014;1 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
    -- Called Local/79287771000@from-internal/n
    -- Executing [79287771000@from-internal:1] Macro("Local/79287771000@from-internal-00000014;2", "user-callerid,LIMIT,EXTERNAL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("Local/79287771000@from-internal-00000014;2", "TOUCH_MONITOR=1521724142.123") in new stack
    -- Executing [s@macro-user-callerid:2] Set("Local/79287771000@from-internal-00000014;2", "AMPUSER=79045037424") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("Local/79287771000@from-internal-00000014;2", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("Local/79287771000@from-internal-00000014;2", "1?Set(REALCALLERIDNUM=79045037424)") in new stack
    -- Executing [s@macro-user-callerid:5] Set("Local/79287771000@from-internal-00000014;2", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("Local/79287771000@from-internal-00000014;2", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:7] Set("Local/79287771000@from-internal-00000014;2", "AMPUSERCIDNAME=") in new stack
    -- Executing [s@macro-user-callerid:8] ExecIf("Local/79287771000@from-internal-00000014;2", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
    -- Executing [s@macro-user-callerid:9] GotoIf("Local/79287771000@from-internal-00000014;2", "1?report") in new stack
    -- Goto (macro-user-callerid,s,16)
    -- Executing [s@macro-user-callerid:16] NoOp("Local/79287771000@from-internal-00000014;2", "Macro Depth is 1") in new stack
    -- Executing [s@macro-user-callerid:17] GotoIf("Local/79287771000@from-internal-00000014;2", "1?report2:macroerror") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] GotoIf("Local/79287771000@from-internal-00000014;2", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,37)
    -- Executing [s@macro-user-callerid:37] Set("Local/79287771000@from-internal-00000014;2", "CALLERID(number)=79045037424") in new stack
    -- Executing [s@macro-user-callerid:38] Set("Local/79287771000@from-internal-00000014;2", "CALLERID(name)=79045037424") in new stack
    -- Executing [s@macro-user-callerid:39] GotoIf("Local/79287771000@from-internal-00000014;2", "0?cnum") in new stack
    -- Executing [s@macro-user-callerid:40] Set("Local/79287771000@from-internal-00000014;2", "CDR(cnam)=79045037424") in new stack
    -- Executing [s@macro-user-callerid:41] Set("Local/79287771000@from-internal-00000014;2", "CDR(cnum)=79045037424") in new stack
    -- Executing [s@macro-user-callerid:42] Set("Local/79287771000@from-internal-00000014;2", "CHANNEL(language)=ru") in new stack
    -- Executing [79287771000@from-internal:2] Gosub("Local/79287771000@from-internal-00000014;2", "sub-record-check,s,1(out,79287771000,yes)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("Local/79287771000@from-internal-00000014;2", "0?initialized") in new stack
    -- Executing [s@sub-record-check:2] Set("Local/79287771000@from-internal-00000014;2", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:3] Set("Local/79287771000@from-internal-00000014;2", "NOW=1521724142") in new stack
    -- Executing [s@sub-record-check:4] Set("Local/79287771000@from-internal-00000014;2", "__DAY=22") in new stack
    -- Executing [s@sub-record-check:5] Set("Local/79287771000@from-internal-00000014;2", "__MONTH=03") in new stack
    -- Executing [s@sub-record-check:6] Set("Local/79287771000@from-internal-00000014;2", "__YEAR=2018") in new stack
    -- Executing [s@sub-record-check:7] Set("Local/79287771000@from-internal-00000014;2", "__TIMESTR=20180322-160902") in new stack
    -- Executing [s@sub-record-check:8] Set("Local/79287771000@from-internal-00000014;2", "__FROMEXTEN=79045037424") in new stack
    -- Executing [s@sub-record-check:9] Set("Local/79287771000@from-internal-00000014;2", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:10] NoOp("Local/79287771000@from-internal-00000014;2", "Recordings initialized") in new stack
    -- Executing [s@sub-record-check:11] ExecIf("Local/79287771000@from-internal-00000014;2", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [s@sub-record-check:12] Set("Local/79287771000@from-internal-00000014;2", "REC_POLICY_MODE_SAVE=FORCE") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("Local/79287771000@from-internal-00000014;2", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [s@sub-record-check:14] GotoIf("Local/79287771000@from-internal-00000014;2", "3?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [s@sub-record-check:17] GotoIf("Local/79287771000@from-internal-00000014;2", "1?sub-record-check,out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] NoOp("Local/79287771000@from-internal-00000014;2", "Outbound Recording Check from 79045037424 to 79287771000") in new stack
    -- Executing [out@sub-record-check:2] Set("Local/79287771000@from-internal-00000014;2", "RECMODE=") in new stack
    -- Executing [out@sub-record-check:3] ExecIf("Local/79287771000@from-internal-00000014;2", "1?Goto(routewins)") in new stack
    -- Goto (sub-record-check,out,7)
    -- Executing [out@sub-record-check:7] Gosub("Local/79287771000@from-internal-00000014;2", "recordcheck,1(yes,out,79287771000)") in new stack
    -- Executing [recordcheck@sub-record-check:1] NoOp("Local/79287771000@from-internal-00000014;2", "Starting recording check against yes") in new stack
    -- Executing [recordcheck@sub-record-check:2] Goto("Local/79287771000@from-internal-00000014;2", "yes") in new stack
    -- Goto (sub-record-check,recordcheck,9)
    -- Executing [recordcheck@sub-record-check:9] ExecIf("Local/79287771000@from-internal-00000014;2", "0?Return()") in new stack
    -- Executing [recordcheck@sub-record-check:10] Set("Local/79287771000@from-internal-00000014;2", "__REC_POLICY_MODE=YES") in new stack
    -- Executing [recordcheck@sub-record-check:11] Goto("Local/79287771000@from-internal-00000014;2", "startrec") in new stack
    -- Goto (sub-record-check,recordcheck,16)
    -- Executing [recordcheck@sub-record-check:16] NoOp("Local/79287771000@from-internal-00000014;2", "Starting recording: out, 79287771000") in new stack
    -- Executing [recordcheck@sub-record-check:17] Set("Local/79287771000@from-internal-00000014;2", "AUDIOHOOK_INHERIT(MixMonitor)=yes") in new stack
    -- Executing [recordcheck@sub-record-check:18] Set("Local/79287771000@from-internal-00000014;2", "__CALLFILENAME=out-79287771000-79045037424-20180322-160902-1521724142.123") in new stack
    -- Executing [recordcheck@sub-record-check:19] MixMonitor("Local/79287771000@from-internal-00000014;2", "2018/03/22/out-79287771000-79045037424-20180322-160902-1521724142.123.wav,abi(LOCAL_MIXMON_ID),bash /var/lib/asterisk/bin/rectoemail.sh ^{YEAR} ^{MONTH} ^{DAY} ^{TIMESTR} ^{FROMEXTEN} ^{CALLFILENAME}.^{MIXMON_FORMAT} ^{ARG3}") in new stack
    -- Executing [recordcheck@sub-record-check:20] Set("Local/79287771000@from-internal-00000014;2", "__MIXMON_ID=0x7f285899af60") in new stack
    -- Executing [recordcheck@sub-record-check:21] Set("Local/79287771000@from-internal-00000014;2", "__RECORD_ID=Local/79287771000@from-internal-00000014;2") in new stack
    -- Executing [recordcheck@sub-record-check:22] Set("Local/79287771000@from-internal-00000014;2", "__REC_STATUS=RECORDING") in new stack
    -- Executing [recordcheck@sub-record-check:23] Set("Local/79287771000@from-internal-00000014;2", "CDR(recordingfile)=out-79287771000-79045037424-20180322-160902-1521724142.123.wav") in new stack
    -- Executing [recordcheck@sub-record-check:24] Return("Local/79287771000@from-internal-00000014;2", "") in new stack
    -- Executing [out@sub-record-check:8] Return("Local/79287771000@from-internal-00000014;2", "") in new stack
    -- Executing [79287771000@from-internal:3] ExecIf("Local/79287771000@from-internal-00000014;2", "0 ?Set(CDR(accountcode)=)") in new stack
    -- Executing [79287771000@from-internal:4] Set("Local/79287771000@from-internal-00000014;2", "MOHCLASS=default") in new stack
    -- Executing [79287771000@from-internal:5] ExecIf("Local/79287771000@from-internal-00000014;2", "0?Set(TRUNKCIDOVERRIDE=<79381460746>)") in new stack
    -- Executing [79287771000@from-internal:6] Set("Local/79287771000@from-internal-00000014;2", "_NODEST=") in new stack
    -- Executing [79287771000@from-internal:7] Macro("Local/79287771000@from-internal-00000014;2", "dialout-trunk,6,0079287771000,,off") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("Local/79287771000@from-internal-00000014;2", "DIAL_TRUNK=6") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("Local/79287771000@from-internal-00000014;2", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:3] ExecIf("Local/79287771000@from-internal-00000014;2", "0?Set(CALLERID(num)=)") in new stack
    -- Executing [s@macro-dialout-trunk:4] GotoIf("Local/79287771000@from-internal-00000014;2", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("Local/79287771000@from-internal-00000014;2", "DIAL_NUMBER=0079287771000") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("Local/79287771000@from-internal-00000014;2", "DIAL_TRUNK_OPTIONS=HhTtr") in new stack
    -- Executing [s@macro-dialout-trunk:7] Set("Local/79287771000@from-internal-00000014;2", "OUTBOUND_GROUP=OUT_6") in new stack
    -- Executing [s@macro-dialout-trunk:8] Set("Local/79287771000@from-internal-00000014;2", "DIAL_TRUNK_OPTIONS=T") in new stack
  == Begin MixMonitor Recording Local/79287771000@from-internal-00000014;2
    -- Executing [s@macro-dialout-trunk:9] GotoIf("Local/79287771000@from-internal-00000014;2", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,11)
    -- Executing [s@macro-dialout-trunk:11] GotoIf("Local/79287771000@from-internal-00000014;2", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:12] Macro("Local/79287771000@from-internal-00000014;2", "outbound-callerid,6") in new stack
    -- Executing [s@macro-outbound-callerid:1] NoOp("Local/79287771000@from-internal-00000014;2", "79045037424") in new stack
    -- Executing [s@macro-outbound-callerid:2] NoOp("Local/79287771000@from-internal-00000014;2", "TRUE") in new stack
    -- Executing [s@macro-outbound-callerid:3] NoOp("Local/79287771000@from-internal-00000014;2", "all") in new stack
    -- Executing [s@macro-outbound-callerid:4] ExecIf("Local/79287771000@from-internal-00000014;2", "1?Set(CALLERPRES(name-pres)=allowed_not_screened)") in new stack
    -- Executing [s@macro-outbound-callerid:5] ExecIf("Local/79287771000@from-internal-00000014;2", "1?Set(CALLERPRES(num-pres)=allowed_not_screened)") in new stack
    -- Executing [s@macro-outbound-callerid:6] ExecIf("Local/79287771000@from-internal-00000014;2", "0?Set(REALCALLERIDNUM=79045037424)") in new stack
    -- Executing [s@macro-outbound-callerid:7] GotoIf("Local/79287771000@from-internal-00000014;2", "0?normcid") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("Local/79287771000@from-internal-00000014;2", "USEROUTCID=79045037424") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("Local/79287771000@from-internal-00000014;2", "0?normcid") in new stack
    -- Executing [s@macro-outbound-callerid:10] GotoIf("Local/79287771000@from-internal-00000014;2", "1?bypass") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] Set("Local/79287771000@from-internal-00000014;2", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:13] Set("Local/79287771000@from-internal-00000014;2", "TRUNKOUTCID=79381460746") in new stack
    -- Executing [s@macro-outbound-callerid:14] GotoIf("Local/79287771000@from-internal-00000014;2", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,19)
    -- Executing [s@macro-outbound-callerid:19] ExecIf("Local/79287771000@from-internal-00000014;2", "1?Set(CALLERID(all)=79381460746)") in new stack
    -- Executing [s@macro-outbound-callerid:20] ExecIf("Local/79287771000@from-internal-00000014;2", "1?Set(CALLERID(all)=79045037424)") in new stack
    -- Executing [s@macro-outbound-callerid:21] ExecIf("Local/79287771000@from-internal-00000014;2", "1?Set(CALLERID(all)=79381460746)") in new stack
    -- Executing [s@macro-outbound-callerid:22] ExecIf("Local/79287771000@from-internal-00000014;2", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:23] ExecIf("Local/79287771000@from-internal-00000014;2", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:24] Set("Local/79287771000@from-internal-00000014;2", "CDR(outbound_cnum)=79381460746") in new stack
    -- Executing [s@macro-outbound-callerid:25] Set("Local/79287771000@from-internal-00000014;2", "CDR(outbound_cnam)=") in new stack
    -- Executing [s@macro-dialout-trunk:13] GosubIf("Local/79287771000@from-internal-00000014;2", "0?sub-flp-6,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("Local/79287771000@from-internal-00000014;2", "OUTNUM=0079287771000") in new stack
    -- Executing [s@macro-dialout-trunk:15] Set("Local/79287771000@from-internal-00000014;2", "custom=SIP/TelecomTechnology79381460746") in new stack
    -- Executing [s@macro-dialout-trunk:16] ExecIf("Local/79287771000@from-internal-00000014;2", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)") in new stack
    -- Executing [s@macro-dialout-trunk:17] ExecIf("Local/79287771000@from-internal-00000014;2", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:18] Macro("Local/79287771000@from-internal-00000014;2", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("Local/79287771000@from-internal-00000014;2", "") in new stack
    -- Executing [s@macro-dialout-trunk:19] GotoIf("Local/79287771000@from-internal-00000014;2", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:20] ExecIf("Local/79287771000@from-internal-00000014;2", "0?Set(CONNECTEDLINE(num,i)=0079287771000)") in new stack
    -- Executing [s@macro-dialout-trunk:21] ExecIf("Local/79287771000@from-internal-00000014;2", "0?Set(CONNECTEDLINE(name,i)=CID:79381460746)") in new stack
    -- Executing [s@macro-dialout-trunk:22] ExecIf("Local/79287771000@from-internal-00000014;2", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)79381460746)") in new stack
    -- Executing [s@macro-dialout-trunk:23] GotoIf("Local/79287771000@from-internal-00000014;2", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:24] Dial("Local/79287771000@from-internal-00000014;2", "SIP/TelecomTechnology79381460746/0079287771000,300,Tb(func-apply-sipheaders^s^1)") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- SIP/TelecomTechnology79381460746-00000036 Internal Gosub(func-apply-sipheaders,s,1) start
    -- Executing [s@func-apply-sipheaders:1] NoOp("SIP/TelecomTechnology79381460746-00000036", "Applying SIP Headers to channel") in new stack
    -- Executing [s@func-apply-sipheaders:2] Set("SIP/TelecomTechnology79381460746-00000036", "SIPHEADERKEYS=") in new stack
    -- Executing [s@func-apply-sipheaders:3] While("SIP/TelecomTechnology79381460746-00000036", "0") in new stack
    -- Jumping to priority 7
    -- Executing [s@func-apply-sipheaders:8] Return("SIP/TelecomTechnology79381460746-00000036", "") in new stack
  == Spawn extension (from-trunk-sip-TelecomTechnology79381460746, 79287771000, 1) exited non-zero on 'SIP/TelecomTechnology79381460746-00000036'
    -- SIP/TelecomTechnology79381460746-00000036 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
    -- Called SIP/TelecomTechnology79381460746/0079287771000
    -- SIP/TelecomTechnology79381460746-00000036 is ringing
    -- Local/79287771000@from-internal-00000014;1 is ringing
    -- SIP/TelecomTechnology79381460746-00000036 is making progress passing it to Local/79287771000@from-internal-00000014;2
    -- Local/79287771000@from-internal-00000014;1 is making progress passing it to SIP/multifon79381460746-00000035
    -- SIP/TelecomTechnology79381460746-00000036 is ringing
    -- SIP/TelecomTechnology79381460746-00000036 answered Local/79287771000@from-internal-00000014;2
    -- Local/79287771000@from-internal-00000014;1 answered SIP/multifon79381460746-00000035
    -- Executing [s@macro-auto-blkvm:1] ExecIf("Local/79287771000@from-internal-00000014;1", "0?Set(CDR(recordingfile)=external-102-79045037424-20180322-160902-1521724142.121.wav)") in new stack
    -- Executing [s@macro-auto-blkvm:2] Set("Local/79287771000@from-internal-00000014;1", "__MACRO_RESULT=") in new stack
    -- Executing [s@macro-auto-blkvm:3] Set("Local/79287771000@from-internal-00000014;1", "CFIGNORE=") in new stack
    -- Executing [s@macro-auto-blkvm:4] Set("Local/79287771000@from-internal-00000014;1", "MASTER_CHANNEL(CFIGNORE)=") in new stack
    -- Executing [s@macro-auto-blkvm:5] Set("Local/79287771000@from-internal-00000014;1", "FORWARD_CONTEXT=from-internal") in new stack
    -- Executing [s@macro-auto-blkvm:6] Set("Local/79287771000@from-internal-00000014;1", "MASTER_CHANNEL(FORWARD_CONTEXT)=from-internal") in new stack
    -- Executing [s@macro-auto-blkvm:7] Macro("Local/79287771000@from-internal-00000014;1", "blkvm-clr,") in new stack
    -- Executing [s@macro-blkvm-clr:1] Set("Local/79287771000@from-internal-00000014;1", "SHARED(BLKVM,SIP/multifon79381460746-00000035)=") in new stack
    -- Executing [s@macro-blkvm-clr:2] Set("Local/79287771000@from-internal-00000014;1", "GOSUB_RETVAL=") in new stack
    -- Executing [s@macro-blkvm-clr:3] MacroExit("Local/79287771000@from-internal-00000014;1", "") in new stack
    -- Executing [s@macro-auto-blkvm:8] ExecIf("Local/79287771000@from-internal-00000014;1", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(num))=79287771000@from-internal/n)") in new stack
    -- Executing [s@macro-auto-blkvm:9] ExecIf("Local/79287771000@from-internal-00000014;1", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(name))=)") in new stack
    -- Channel SIP/TelecomTechnology79381460746-00000036 joined 'simple_bridge' basic-bridge <1eadf14d-591b-4ad4-8a53-b2d19715ddc5>
    -- Channel Local/79287771000@from-internal-00000014;2 joined 'simple_bridge' basic-bridge <1eadf14d-591b-4ad4-8a53-b2d19715ddc5>
    -- Channel Local/79287771000@from-internal-00000014;1 joined 'simple_bridge' basic-bridge <cb9d4fd9-d18c-4dc4-90a0-42159885bde2>
    -- Channel SIP/multifon79381460746-00000035 joined 'simple_bridge' basic-bridge <cb9d4fd9-d18c-4dc4-90a0-42159885bde2>
    -- Channel SIP/multifon79381460746-00000035 left 'simple_bridge' basic-bridge <cb9d4fd9-d18c-4dc4-90a0-42159885bde2>
  == Spawn extension (macro-dial, s, 21) exited non-zero on 'SIP/multifon79381460746-00000035' in macro 'dial'
  == Spawn extension (followme-sub, 102, 38) exited non-zero on 'SIP/multifon79381460746-00000035'
    -- Channel Local/79287771000@from-internal-00000014;1 left 'simple_bridge' basic-bridge <cb9d4fd9-d18c-4dc4-90a0-42159885bde2>
  == MixMonitor close filestream (mixed)
  == Executing [bash /var/lib/asterisk/bin/rectoemail.sh 2018 03 22 20180322-160902 79045037424 external-102-79045037424-20180322-160902-1521724142.121.wav 102]
    -- Channel Local/79287771000@from-internal-00000014;2 left 'simple_bridge' basic-bridge <1eadf14d-591b-4ad4-8a53-b2d19715ddc5>
  == Spawn extension (macro-dialout-trunk, s, 24) exited non-zero on 'Local/79287771000@from-internal-00000014;2' in macro 'dialout-trunk'
  == Spawn extension (from-internal, 79287771000, 7) exited non-zero on 'Local/79287771000@from-internal-00000014;2'
    -- Executing [h@from-internal:1] Macro("Local/79287771000@from-internal-00000014;2", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("Local/79287771000@from-internal-00000014;2", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,3)
    -- Channel SIP/TelecomTechnology79381460746-00000036 left 'simple_bridge' basic-bridge <1eadf14d-591b-4ad4-8a53-b2d19715ddc5>
    -- Executing [s@macro-hangupcall:3] ExecIf("Local/79287771000@from-internal-00000014;2", "0?Set(CDR(recordingfile)=)") in new stack
    -- Executing [s@macro-hangupcall:4] NoOp("Local/79287771000@from-internal-00000014;2", "SIP/TelecomTechnology79381460746-00000036 monior file= /var/spool/asterisk/monitor/2018/03/22/out-79287771000-79045037424-20180322-160902-1521724142.123.wav") in new stack
    -- Executing [s@macro-hangupcall:5] AGI("Local/79287771000@from-internal-00000014;2", "attendedtransfer-rec-restart.php,SIP/TelecomTechnology79381460746-00000036,/var/spool/asterisk/monitor/2018/03/22/out-79287771000-79045037424-20180322-160902-1521724142.123.wav") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/attendedtransfer-rec-restart.php
  == End MixMonitor Recording SIP/multifon79381460746-00000035
    -- <Local/79287771000@from-internal-00000014;2>AGI Script attendedtransfer-rec-restart.php completed, returning 0
    -- Executing [s@macro-hangupcall:6] Hangup("Local/79287771000@from-internal-00000014;2", "") in new stack
  == Spawn extension (macro-hangupcall, s, 6) exited non-zero on 'Local/79287771000@from-internal-00000014;2' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on 'Local/79287771000@from-internal-00000014;2'
  == MixMonitor close filestream (mixed)
  == Executing [bash /var/lib/asterisk/bin/rectoemail.sh 2018 03 22 20180322-160902 79045037424 out-79287771000-79045037424-20180322-160902-1521724142.123.wav 79287771000]
  == End MixMonitor Recording Local/79287771000@from-internal-00000014;2
andreevskiy*CLI>
Извиняюсь за целую портянку, на SIP/multifon79381460746 принимаю вызов и потом через SIP/TelecomTechnology79381460746 отправляю, это неправильная логика?

-- Executing [102@followme-sub:38] Macro("SIP/multifon79381460746-00000034", "dial,20,HhTtrI,79287771000#") in new stack

(начало кода вырезал, не влазило)
lipun
 
Сообщений: 12
Зарегистрирован: 17 дек 2017, 15:51

Re: Отсутствие слышимости при переводе на виртуальный экстен

Сообщение lipun » 22 мар 2018, 17:37

Ура, братцы, трабл был в том что у меня на роутере были порты проброшены TCP, а надо UDP. Как все банально, извнияюсь за отнятое время. Спасибо.
lipun
 
Сообщений: 12
Зарегистрирован: 17 дек 2017, 15:51

Re: Отсутствие слышимости при переводе на виртуальный экстен

Сообщение ded » 22 мар 2018, 17:39

Правильная логика, но с оговорками. По умолчанию считаются небезопасными прямые звонки, приходящие из транка, отправляющиеся в другой транк.

В строке
-- Executing [102@followme-sub:38] Macro("SIP/multifon79381460746-00000034", "dial,20,HhTtrI,79287771000#")
решётка как-то лишняя. Проверьте - позвонив с внутреннего номера на этот 102 или какой там, и ищите строку Dial - не должно быть в ней вроде в номере решётки в конце. Она нужна в вэб интерфейсе follow me, терминировать внешние номера, в процессе обработки вроде отрезается.

Прохождение вызова рубится у вас как раз в результате выполнения macro-dial на 21 шаге, в результате выполнения суб-макроса followme-sub для 102 на 38 шаге.
Код: выделить все
  -- Channel SIP/multifon79381460746-00000035 joined 'simple_bridge' basic-bridge <cb9d4fd9-d18c-4dc4-90a0-42159885bde2>
    -- Channel SIP/multifon79381460746-00000035 left 'simple_bridge' basic-bridge <cb9d4fd9-d18c-4dc4-90a0-42159885bde2>
  == Spawn extension (macro-dial, s, 21) exited non-zero on 'SIP/multifon79381460746-00000035' in macro 'dial'
  == Spawn extension (followme-sub, 102, 38) exited non-zero on 'SIP/multifon79381460746-00000035'
ded
 
Сообщений: 13285
Зарегистрирован: 26 авг 2010, 19:00

Re: Отсутствие слышимости при переводе на виртуальный экстен

Сообщение lipun » 24 мар 2018, 19:42

Код: выделить все
Executing [s@macro-dialout-trunk:24] Dial("Local/79287771000@from-internal-00000004;2", "SIP/multifon79381460746/79287771000,300,Tb(func-apply-sipheaders^s^1)") in new stack

это непосредственно Dial, и
Код: выделить все
Goto (followme-sub,102,34)
    -- Executing [102@followme-sub:34] ExecIf("SIP/multifon79381460746-00000006", "1?Set(DOPTS=HhTtrI):Set(DOPTS=m(Ring)HhTtI)") in new stack
    -- Executing [102@followme-sub:35] Set("SIP/multifon79381460746-00000006", "__ALT_CONFIRM_MSG=") in new stack
    -- Executing [102@followme-sub:36] GotoIf("SIP/multifon79381460746-00000006", "0?doconfirm") in new stack
    -- Executing [102@followme-sub:37] GotoIf("SIP/multifon79381460746-00000006", "0?ringallv21") in new stack
    -- Executing [102@followme-sub:38] Macro("SIP/multifon79381460746-00000006", "dial,20,HhTtrI,79287771000#") in new stack

т.е. как я понимаю сама команда диал убирает #. Вы правы. Спасибо за напоминание про безопасность, разбираемся)
lipun
 
Сообщений: 12
Зарегистрирован: 17 дек 2017, 15:51

Пред.

Вернуться в Вопросы новичков

Кто сейчас на форуме

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 9

© 2008 — 2018 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH