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

asterisk запись разговора по требованию

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

Модераторы: april22, Zavr2008

testsia
Сообщения: 7
Зарегистрирован: 19 сен 2013, 14:58

asterisk запись разговора по требованию

Сообщение testsia »

Добрый вечер.

Реализую схему:
Запись разговора по требованию и отправка на файла по мылу.
Удалось сделать:
Разговор записывается, сохраняется в формате auto-1383836900-1199-1491.wav, скрипт отрабатывает и отправляет на почту файл.
Работает во всех случаях кроме если у пользователя прописан Outbound CID. Тогда файл при исходящем звонке имеет вид 1383836504-044311xxxx-050353xxxx.wav.
Соответственно файл не приходит на почту так как скрипт выбирает из имени файла внутренний номер телефона, и отправляет соответствующему абоненту.
Сделать в скрипте привязку к городским не вариант.
В макросе [macro-record-enable] можно задать имя но этот макрос не связан с "записью по требованию".
Как заставить создать файл с внутр. номером???
Как побороть???
ded
Сообщения: 15628
Зарегистрирован: 26 авг 2010, 19:00

Re: asterisk запись разговора по требованию

Сообщение ded »

Переписать макрос который отвечает за "запись по требованию" и положить его в
extensions_override_freepbx.conf
testsia
Сообщения: 7
Зарегистрирован: 19 сен 2013, 14:58

Re: asterisk запись разговора по требованию

Сообщение testsia »

Подскажите пожалуйста где его искать???
Перерыл все и не нашел.....
ded
Сообщения: 15628
Зарегистрирован: 26 авг 2010, 19:00

Re: asterisk запись разговора по требованию

Сообщение ded »

Посмотрите что происходит в командной строке Астериска?
Там видно какой макрос отрабатывает.
Vlad1983
Сообщения: 4251
Зарегистрирован: 09 авг 2011, 11:51

Re: asterisk запись разговора по требованию

Сообщение Vlad1983 »

https://wiki.asterisk.org/wiki/display/ ... +variables
${TOUCH_MONITOR} - The filename base to use with Touch Monitor (auto record)
${TOUCH_MONITOR_PREF} - The prefix for automonitor recording filenames.
${TOUCH_MONITOR_FORMAT} - The audio format to use with Touch Monitor (auto record)
${TOUCH_MONITOR_OUTPUT} - Recorded file from Touch Monitor (auto record)
${TOUCH_MONITOR_MESSAGE_START} - Recorded file to play for both channels at start of monitoring session
${TOUCH_MONITOR_MESSAGE_STOP} - Recorded file to play for both channels at end of monitoring session
${TOUCH_MIXMONITOR} - The filename base to use with Touch MixMonitor (auto record)
${TOUCH_MIXMONITOR_FORMAT} - The audio format to use with Touch MixMonitor (auto record)
${TOUCH_MIXMONITOR_OUTPUT} - Recorded file from Touch MixMonitor (auto record)
ЛС: @rostel
testsia
Сообщения: 7
Зарегистрирован: 19 сен 2013, 14:58

Re: asterisk запись разговора по требованию

Сообщение testsia »

Вот выхлоп.
Ничего похожего нет.
Макрос не нахожу хоть стреляй. macro-record это стандартный я так понял тот который записывает без требования.

Код: Выделить всё

== Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [1444@from-internal:1] NoOp("SIP/1441-000029a2", "Start") in new stack
    -- Executing [1444@from-internal:2] Set("SIP/1441-000029a2", "GROUP()=1441") in new stack
    -- Executing [1444@from-internal:3] GotoIf("SIP/1441-000029a2", "0?cid") in new stack
    -- Executing [1444@from-internal:4] Set("SIP/1441-000029a2", "DB(DIAL/1441)=1444") in new stack
    -- Executing [1444@from-internal:5] Goto("SIP/1441-000029a2", "from-internal-xfer,1444,1") in new stack
    -- Goto (from-internal-xfer,1444,1)
    -- Executing [1444@from-internal-xfer:1] ExecIf("SIP/1441-000029a2", "0?Set(__RINGTIMER=0)") in new stack
    -- Executing [1444@from-internal-xfer:2] Macro("SIP/1441-000029a2", "exten-vm,1444,1444,0,0,0") in new stack
    -- Executing [s@macro-exten-vm:1] Macro("SIP/1441-000029a2", "user-callerid,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/1441-000029a2", "AMPUSER=1441") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/1441-000029a2", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/1441-000029a2", "1?Set(REALCALLERIDNUM=1441)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/1441-000029a2", "AMPUSER=1441") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/1441-000029a2", "AMPUSERCIDNAME=1441") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/1441-000029a2", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/1441-000029a2", "AMPUSERCID=1441") in new stack
    -- Executing [s@macro-user-callerid:8] Set("SIP/1441-000029a2", "CALLERID(all)="1441" <1441>") in new stack
    -- Executing [s@macro-user-callerid:9] GotoIf("SIP/1441-000029a2", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:10] ExecIf("SIP/1441-000029a2", "0?Set(GROUP(concurrency_limit)=1441)") in new stack
    -- Executing [s@macro-user-callerid:11] ExecIf("SIP/1441-000029a2", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:12] GosubIf("SIP/1441-000029a2", "7?sub-ccss,s,1(macro-exten-vm,1444)") in new stack
    -- Executing [s@sub-ccss:1] ExecIf("SIP/1441-000029a2", "0?Return()") in new stack
    -- Executing [s@sub-ccss:2] Set("SIP/1441-000029a2", "CCSS_SETUP=TRUE") in new stack
    -- Executing [s@sub-ccss:3] GosubIf("SIP/1441-000029a2", "0?monitor_config,1(macro-exten-vm,1444):monitor_default,1(macro-exten-vm,1444)") in new stack
    -- Executing [monitor_default@sub-ccss:1] GotoIf("SIP/1441-000029a2", "1?is_exten") in new stack
    -- Goto (sub-ccss,monitor_default,4)
    -- Executing [monitor_default@sub-ccss:4] Set("SIP/1441-000029a2", "CALLCOMPLETION(cc_monitor_policy)=generic") in new stack
    -- Executing [monitor_default@sub-ccss:5] Set("SIP/1441-000029a2", "CALLCOMPLETION(cc_max_monitors)=5") in new stack
    -- Executing [monitor_default@sub-ccss:6] Return("SIP/1441-000029a2", "TRUE") in new stack
    -- Executing [s@sub-ccss:4] GosubIf("SIP/1441-000029a2", "7?agent_config,1:agent_default,1") in new stack
    -- Executing [agent_config@sub-ccss:1] Set("SIP/1441-000029a2", "CALLCOMPLETION(cc_agent_policy)=generic") in new stack
    -- Executing [agent_config@sub-ccss:2] Set("SIP/1441-000029a2", "CALLCOMPLETION(cc_offer_timer)=30") in new stack
    -- Executing [agent_config@sub-ccss:3] Set("SIP/1441-000029a2", "CALLCOMPLETION(ccbs_available_timer)=") in new stack
    -- Executing [agent_config@sub-ccss:4] Set("SIP/1441-000029a2", "CALLCOMPLETION(ccnr_available_timer)=") in new stack
    -- Executing [agent_config@sub-ccss:5] Set("SIP/1441-000029a2", "CALLCOMPLETION(cc_callback_macro)=ccss-default") in new stack
    -- Executing [agent_config@sub-ccss:6] ExecIf("SIP/1441-000029a2", "1?Set(CALLCOMPLETION(cc_recall_timer)=)") in new stack
    -- Executing [agent_config@sub-ccss:7] ExecIf("SIP/1441-000029a2", "1?Set(CALLCOMPLETION(cc_max_agents)=)") in new stack
    -- Executing [agent_config@sub-ccss:8] ExecIf("SIP/1441-000029a2", "0?Set(CALLCOMPLETION(cc_agent_dialstring)=Local/1441_1444@from-ccss-)") in new stack
    -- Executing [agent_config@sub-ccss:9] Set("SIP/1441-000029a2", "CALLCOMPLETION(cc_callback_macro)=ccss-default") in new stack
    -- Executing [agent_config@sub-ccss:10] Return("SIP/1441-000029a2", "") in new stack
    -- Executing [s@sub-ccss:5] Set("SIP/1441-000029a2", "DB(AMPUSER/1441/ccss/last_number)=1444") in new stack
    -- Executing [s@sub-ccss:6] Return("SIP/1441-000029a2", "") in new stack
    -- Executing [s@macro-user-callerid:13] GotoIf("SIP/1441-000029a2", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:14] Set("SIP/1441-000029a2", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:15] GotoIf("SIP/1441-000029a2", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,26)
    -- Executing [s@macro-user-callerid:26] Set("SIP/1441-000029a2", "CALLERID(number)=1441") in new stack
    -- Executing [s@macro-user-callerid:27] Set("SIP/1441-000029a2", "CALLERID(name)=1441") in new stack
    -- Executing [s@macro-user-callerid:28] Set("SIP/1441-000029a2", "CHANNEL(language)=ru") in new stack
    -- Executing [s@macro-exten-vm:2] Set("SIP/1441-000029a2", "RingGroupMethod=none") in new stack
    -- Executing [s@macro-exten-vm:3] Set("SIP/1441-000029a2", "__EXTTOCALL=1444") in new stack
    -- Executing [s@macro-exten-vm:4] Set("SIP/1441-000029a2", "__PICKUPMARK=1444") in new stack
    -- Executing [s@macro-exten-vm:5] Set("SIP/1441-000029a2", "RT=30") in new stack
    -- Executing [s@macro-exten-vm:6] Macro("SIP/1441-000029a2", "record-enable,1444,IN") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/1441-000029a2", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] ExecIf("SIP/1441-000029a2", "0?MacroExit()") in new stack
    -- Executing [s@macro-record-enable:5] GotoIf("SIP/1441-000029a2", "0?Group:OUT") in new stack
    -- Goto (macro-record-enable,s,14)
    -- Executing [s@macro-record-enable:14] GotoIf("SIP/1441-000029a2", "1?IN") in new stack
    -- Goto (macro-record-enable,s,18)
    -- Executing [s@macro-record-enable:18] ExecIf("SIP/1441-000029a2", "0?MacroExit()") in new stack
    -- Executing [s@macro-record-enable:19] Set("SIP/1441-000029a2", "CALLFILENAME=20131108-202924-1383935364.16109") in new stack
[Nov  8 20:29:24] WARNING[29647]: func_strings.c:1291 function_eval: EVAL requires an argument: EVAL(<string>)
    -- Executing [s@macro-record-enable:20] MixMonitor("SIP/1441-000029a2", "20131108-202924-1383935364.16109.wav,,") in new stack
    -- Executing [s@macro-record-enable:21] MacroExit("SIP/1441-000029a2", "") in new stack
    -- Executing [s@macro-exten-vm:7] GotoIf("SIP/1441-000029a2", "1?macrodial") in new stack
    -- Goto (macro-exten-vm,s,13)
    -- Executing [s@macro-exten-vm:13] GosubIf("SIP/1441-000029a2", "0?clrheader,1") in new stack
    -- Executing [s@macro-exten-vm:14] Macro("SIP/1441-000029a2", "dial-one,30,TtrxwW,1444") in new stack
    -- Executing [s@macro-dial-one:1] Set("SIP/1441-000029a2", "DEXTEN=1444") in new stack
    -- Executing [s@macro-dial-one:2] Set("SIP/1441-000029a2", "DIALSTATUS_CW=") in new stack
    -- Executing [s@macro-dial-one:3] GosubIf("SIP/1441-000029a2", "0?screen,1") in new stack
    -- Executing [s@macro-dial-one:4] GosubIf("SIP/1441-000029a2", "1?cf,1") in new stack
    -- Executing [cf@macro-dial-one:1] Set("SIP/1441-000029a2", "CFAMPUSER=1441") in new stack
    -- Executing [cf@macro-dial-one:2] ExecIf("SIP/1441-000029a2", "1?Return()") in new stack
    -- Executing [s@macro-dial-one:5] GotoIf("SIP/1441-000029a2", "1?skip1") in new stack
    -- Goto (macro-dial-one,s,8)
    -- Executing [s@macro-dial-one:8] GotoIf("SIP/1441-000029a2", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:9] GotoIf("SIP/1441-000029a2", "0?continue") in new stack
    -- Executing [s@macro-dial-one:10] Set("SIP/1441-000029a2", "EXTHASCW=") in new stack
    -- Executing [s@macro-dial-one:11] GotoIf("SIP/1441-000029a2", "1?next1:cwinusebusy") in new stack
    -- Goto (macro-dial-one,s,12)
    -- Executing [s@macro-dial-one:12] GotoIf("SIP/1441-000029a2", "0?docfu:skip3") in new stack
    -- Goto (macro-dial-one,s,16)
    -- Executing [s@macro-dial-one:16] GotoIf("SIP/1441-000029a2", "1?next2:continue") in new stack
    -- Goto (macro-dial-one,s,17)
    -- Executing [s@macro-dial-one:17] GotoIf("SIP/1441-000029a2", "1?continue") in new stack
    -- Goto (macro-dial-one,s,25)
    -- Executing [s@macro-dial-one:25] GotoIf("SIP/1441-000029a2", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:26] GosubIf("SIP/1441-000029a2", "1?dstring,1:dlocal,1") in new stack
    -- Executing [dstring@macro-dial-one:1] Set("SIP/1441-000029a2", "DSTRING=") in new stack
    -- Executing [dstring@macro-dial-one:2] Set("SIP/1441-000029a2", "DEVICES=1444") in new stack
    -- Executing [dstring@macro-dial-one:3] ExecIf("SIP/1441-000029a2", "0?Return()") in new stack
    -- Executing [dstring@macro-dial-one:4] ExecIf("SIP/1441-000029a2", "0?Set(DEVICES=444)") in new stack
    -- Executing [dstring@macro-dial-one:5] Set("SIP/1441-000029a2", "LOOPCNT=1") in new stack
    -- Executing [dstring@macro-dial-one:6] Set("SIP/1441-000029a2", "ITER=1") in new stack
    -- Executing [dstring@macro-dial-one:7] Set("SIP/1441-000029a2", "THISDIAL=SIP/1444") in new stack
    -- Executing [dstring@macro-dial-one:8] GosubIf("SIP/1441-000029a2", "1?zap2dahdi,1") in new stack
    -- Executing [zap2dahdi@macro-dial-one:1] ExecIf("SIP/1441-000029a2", "0?Return()") in new stack
    -- Executing [zap2dahdi@macro-dial-one:2] Set("SIP/1441-000029a2", "NEWDIAL=") in new stack
    -- Executing [zap2dahdi@macro-dial-one:3] Set("SIP/1441-000029a2", "LOOPCNT2=1") in new stack
    -- Executing [zap2dahdi@macro-dial-one:4] Set("SIP/1441-000029a2", "ITER2=1") in new stack
    -- Executing [zap2dahdi@macro-dial-one:5] Set("SIP/1441-000029a2", "THISPART2=SIP/1444") in new stack
    -- Executing [zap2dahdi@macro-dial-one:6] ExecIf("SIP/1441-000029a2", "0?Set(THISPART2=DAHDI/1444)") in new stack
    -- Executing [zap2dahdi@macro-dial-one:7] Set("SIP/1441-000029a2", "NEWDIAL=SIP/1444&") in new stack
    -- Executing [zap2dahdi@macro-dial-one:8] Set("SIP/1441-000029a2", "ITER2=2") in new stack
    -- Executing [zap2dahdi@macro-dial-one:9] GotoIf("SIP/1441-000029a2", "0?begin2") in new stack
    -- Executing [zap2dahdi@macro-dial-one:10] Set("SIP/1441-000029a2", "THISDIAL=SIP/1444") in new stack
    -- Executing [zap2dahdi@macro-dial-one:11] Return("SIP/1441-000029a2", "") in new stack
    -- Executing [dstring@macro-dial-one:9] Set("SIP/1441-000029a2", "DSTRING=SIP/1444&") in new stack
    -- Executing [dstring@macro-dial-one:10] Set("SIP/1441-000029a2", "ITER=2") in new stack
    -- Executing [dstring@macro-dial-one:11] GotoIf("SIP/1441-000029a2", "0?begin") in new stack
    -- Executing [dstring@macro-dial-one:12] Set("SIP/1441-000029a2", "DSTRING=SIP/1444") in new stack
    -- Executing [dstring@macro-dial-one:13] Return("SIP/1441-000029a2", "") in new stack
    -- Executing [s@macro-dial-one:27] GotoIf("SIP/1441-000029a2", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:28] GotoIf("SIP/1441-000029a2", "0?skiptrace") in new stack
    -- Executing [s@macro-dial-one:29] GosubIf("SIP/1441-000029a2", "1?ctset,1:ctclear,1") in new stack
    -- Executing [ctset@macro-dial-one:1] Set("SIP/1441-000029a2", "DB(CALLTRACE/1444)=1441") in new stack
    -- Executing [ctset@macro-dial-one:2] Return("SIP/1441-000029a2", "") in new stack
    -- Executing [s@macro-dial-one:30] Set("SIP/1441-000029a2", "D_OPTIONS=TtrxwW") in new stack
    -- Executing [s@macro-dial-one:31] ExecIf("SIP/1441-000029a2", "0?SIPAddHeader(Alert-Info: )") in new stack
    -- Executing [s@macro-dial-one:32] ExecIf("SIP/1441-000029a2", "0?SIPAddHeader()") in new stack
    -- Executing [s@macro-dial-one:33] ExecIf("SIP/1441-000029a2", "0?Set(CHANNEL(musicclass)=)") in new stack
    -- Executing [s@macro-dial-one:34] GosubIf("SIP/1441-000029a2", "0?qwait,1") in new stack
    -- Executing [s@macro-dial-one:35] Set("SIP/1441-000029a2", "__CWIGNORE=") in new stack
    -- Executing [s@macro-dial-one:36] Set("SIP/1441-000029a2", "__KEEPCID=TRUE") in new stack
    -- Executing [s@macro-dial-one:37] GotoIf("SIP/1441-000029a2", "0?usegoto,1") in new stack
    -- Executing [s@macro-dial-one:38] GotoIf("SIP/1441-000029a2", "0?godial") in new stack
    -- Executing [s@macro-dial-one:39] Set("SIP/1441-000029a2", "CONNECTEDLINE(name,i)=Shevchenko I A") in new stack
    -- Executing [s@macro-dial-one:40] Set("SIP/1441-000029a2", "CONNECTEDLINE(num)=1444") in new stack
    -- Executing [s@macro-dial-one:41] Set("SIP/1441-000029a2", "D_OPTIONS=TtrxwWI") in new stack
    -- Executing [s@macro-dial-one:42] Dial("SIP/1441-000029a2", "SIP/1444,30,TtrxwWI") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
Audio is at 15476
Adding codec 0x4 (ulaw) to SDP
Adding codec 0x8 (alaw) to SDP
Adding codec 0x2 (gsm) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (no NAT) to 192.168.100.118:5062:
INVITE sip:1444@192.168.100.118:5062 SIP/2.0
Via: SIP/2.0/UDP 192.168.100.14:5060;branch=z9hG4bK258c34e3
Max-Forwards: 70
From: "1441" <sip:1441@192.168.100.14>;tag=as50f48edf
To: <sip:1444@192.168.100.118:5062>
Contact: <sip:1441@192.168.100.14:5060>
Call-ID: 290c7f3d2c67471c32b86fad7a58e101@192.168.100.14:5060
CSeq: 102 INVITE
User-Agent: FPBX-2.9.0(1.8.15)
Date: Fri, 08 Nov 2013 18:29:24 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
P-Asserted-Identity: "1441" <sip:1441@192.168.100.14>
Content-Type: application/sdp
Content-Length: 292

v=0
o=root 1105549446 1105549446 IN IP4 192.168.100.14
s=Asterisk PBX 1.8.15-cert2
c=IN IP4 192.168.100.14
t=0 0
m=audio 15476 RTP/AVP 0 8 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv

---
    -- Called SIP/1444
    -- Connected line update to SIP/1441-000029a2 prevented.
  == Extension Changed 1444[subscribe-context] new state Ringing for Notify User 1419
  == Extension Changed 1444[subscribe-context] new state Ringing for Notify User 1482
  == Extension Changed 1444[subscribe-context] new state Ringing for Notify User 1485
  == Extension Changed 1444[subscribe-context] new state Ringing for Notify User 1413
  == Extension Changed 1444[subscribe-context] new state Ringing for Notify User 1412
  == Extension Changed 1444[subscribe-context] new state Ringing for Notify User 1418
  == Extension Changed 1444[subscribe-context] new state Ringing for Notify User 1432
  == Extension Changed 1444[subscribe-context] new state Ringing for Notify User 1448
  == Begin MixMonitor Recording SIP/1441-000029a2

<--- SIP read from UDP:192.168.100.118:5062 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.100.14:5060;branch=z9hG4bK258c34e3
From: "1441" <sip:1441@192.168.100.14>;tag=as50f48edf
To: <sip:1444@192.168.100.118:5062>
Call-ID: 290c7f3d2c67471c32b86fad7a58e101@192.168.100.14:5060
CSeq: 102 INVITE
User-Agent: Yealink SIP-T28P 2.60.14.23
Content-Length: 0

<------------->
--- (8 headers 0 lines) ---

<--- SIP read from UDP:192.168.100.118:5062 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.100.14:5060;branch=z9hG4bK258c34e3
From: "1441" <sip:1441@192.168.100.14>;tag=as50f48edf
To: <sip:1444@192.168.100.118:5062>;tag=386713033
Call-ID: 290c7f3d2c67471c32b86fad7a58e101@192.168.100.14:5060
CSeq: 102 INVITE
Contact: <sip:1444@192.168.100.118:5062>
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
User-Agent: Yealink SIP-T28P 2.60.14.23
Allow-Events: talk,hold,conference,refer,check-sync
Content-Length: 0

<------------->
--- (11 headers 0 lines) ---
list_route: hop: <sip:1444@192.168.100.118:5062>
    -- SIP/1444-000029a3 is ringing

<--- SIP read from UDP:192.168.100.118:5062 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.100.14:5060;branch=z9hG4bK258c34e3
From: "1441" <sip:1441@192.168.100.14>;tag=as50f48edf
To: <sip:1444@192.168.100.118:5062>;tag=386713033
Call-ID: 290c7f3d2c67471c32b86fad7a58e101@192.168.100.14:5060
CSeq: 102 INVITE
Contact: <sip:1444@192.168.100.118:5062>
Content-Type: application/sdp
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
User-Agent: Yealink SIP-T28P 2.60.14.23
Content-Length: 205

v=0
o=- 20513 20513 IN IP4 192.168.100.118
s=SDP data
c=IN IP4 192.168.100.118
t=0 0
m=audio 11784 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=sendrecv
a=fmtp:101 0-15
a=rtpmap:101 telephone-event/8000
<------------->
--- (11 headers 10 lines) ---
Found RTP audio format 0
Found RTP audio format 101
Found audio description format PCMU for ID 0
Found audio description format telephone-event for ID 101
Capabilities: us - 0xe (gsm|ulaw|alaw), peer - audio=0x4 (ulaw)/video=0x0 (nothing)/text=0x0 (nothing), combined - 0x4 (ulaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
Peer audio RTP is at port 192.168.100.118:11784
  == Extension Changed 1444[subscribe-context] new state InUse for Notify User 1419
  == Extension Changed 1444[subscribe-context] new state InUse for Notify User 1482
  == Extension Changed 1444[subscribe-context] new state InUse for Notify User 1485
  == Extension Changed 1444[subscribe-context] new state InUse for Notify User 1413
  == Extension Changed 1444[subscribe-context] new state InUse for Notify User 1412
  == Extension Changed 1444[subscribe-context] new state InUse for Notify User 1418
  == Extension Changed 1444[subscribe-context] new state InUse for Notify User 1432
  == Extension Changed 1444[subscribe-context] new state InUse for Notify User 1448
list_route: hop: <sip:1444@192.168.100.118:5062>
set_destination: Parsing <sip:1444@192.168.100.118:5062> for address/port to send to
set_destination: set destination to 192.168.100.118:5062
Transmitting (no NAT) to 192.168.100.118:5062:
ACK sip:1444@192.168.100.118:5062 SIP/2.0
Via: SIP/2.0/UDP 192.168.100.14:5060;branch=z9hG4bK18a1b1c9
Max-Forwards: 70
From: "1441" <sip:1441@192.168.100.14>;tag=as50f48edf
To: <sip:1444@192.168.100.118:5062>;tag=386713033
Contact: <sip:1441@192.168.100.14:5060>
Call-ID: 290c7f3d2c67471c32b86fad7a58e101@192.168.100.14:5060
CSeq: 102 ACK
User-Agent: FPBX-2.9.0(1.8.15)
Content-Length: 0


---
    -- Connected line update to SIP/1441-000029a2 prevented.
    -- SIP/1444-000029a3 answered SIP/1441-000029a2
       > User hit '*1' to record call. filename: wav,auto-1383935369-1441-1444,m

<--- SIP read from UDP:192.168.100.118:5062 --->
ded
Сообщения: 15628
Зарегистрирован: 26 авг 2010, 19:00

Re: asterisk запись разговора по требованию

Сообщение ded »

У вас там включена принудительная запись, а не по требованию. Вот тут видно, что проверяется триггер - включена запись? Да

Код: Выделить всё

-- Executing [s@macro-exten-vm:6] Macro("SIP/1441-000029a2", "record-enable,1444,IN") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/1441-000029a2", "1?check") in new stack
и работает macro-record-enable

Код: Выделить всё

Executing [s@macro-record-enable:19] Set("SIP/1441-000029a2", "CALLFILENAME=20131108-202924-1383935364.16109") in new stack
[Nov  8 20:29:24] WARNING[29647]: func_strings.c:1291 function_eval: EVAL requires an argument: EVAL(<string>)
    -- Executing [s@macro-record-enable:20] MixMonitor("SIP/1441-000029a2", "20131108-202924-1383935364.16109.wav,,") in new stack
запись разговора по требованию - это по нажатию сервисного кода *что-то-там, и для этого должны быть опции команды диал Ww включены
testsia
Сообщения: 7
Зарегистрирован: 19 сен 2013, 14:58

Re: asterisk запись разговора по требованию

Сообщение testsia »

Параметр Ww я задал. В логе это видно

Код: Выделить всё

Executing [s@macro-exten-vm:14] Macro("SIP/1441-000029a2", "dial-one,30,TtrxwW,1444") in new stack
В конце лога видно что я принудительно включаю запись для этого использую *1 но макрос не вижу тот который используется......

Код: Выделить всё

User hit '*1' to record call. filename: wav,auto-1383935369-1441-1444,m
ded
Сообщения: 15628
Зарегистрирован: 26 авг 2010, 19:00

Re: asterisk запись разговора по требованию

Сообщение ded »

Да, увидел.
Ищите по тексту в коде фразу
User hit '*1' to record call. filename:
и смотрите какое имя переменной там вызывается.
Есть способы изменить имя переменной или использовать свою.
testsia
Сообщения: 7
Зарегистрирован: 19 сен 2013, 14:58

Re: asterisk запись разговора по требованию

Сообщение testsia »

Вот я и спрашиваю как его выловитью
Специально только что 4 раза включал и выключал запись. А макроса нет и нет.....
Как его выловить? Может он стандартный для freepbx?

Код: Выделить всё

  > User hit '*1' to stop recording call.
       > User hit '*1' to record call. filename: wav,auto-1383938760-1441-1444,m
       > User hit '*1' to stop recording call.
       > User hit '*1' to record call. filename: wav,auto-1383938764-1441-1444,m
       > User hit '*1' to stop recording call.
       > User hit '*1' to record call. filename: wav,auto-1383938769-1441-1444,m
       > User hit '*1' to stop recording call.
       > User hit '*1' to record call. filename: wav,auto-1383938774-1441-1444,m
Ответить
© 2008 — 2025 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH