Hi,
thank you for the answer. Maybe i should explain what i want to do. If the recording was started by pressing *1, the variable “one-touch-record” should be created. In asterisk you could create a post-call-recording-script. In this script i would like to send the recording via e-mail. The script checks if the variable one-toch-.record is set. If so, the script does a request to the freepbx-mysql-db for the e-mail adress of the user who pressed the *1 and sends the e-mail of the recording to this adress. If the variable is not set (–> the recording was started automatically), the recording should be sent to a predefined (e.g. the administrators) e-mail adress.
(…) if on FreePBX v17, this context is called by GoSub() so you will probably want to add a Return() at the end (…)
Maybe i got you wrong. I changed the context macro-one-touch-record-custom in the file extensions_custom.conf and added a Return-statement at the end but the context isn’t executed. For debugging i added a line which creates a file under /tmp, but the file isn’t created. Now the context looks like the following:
[macro-one-touch-record-custom]
exten => s,1,NOOP(Entering macro-one-touch-record-custom)
exten => s,n,Set(one-touch-record=1)
exten => s,n,Set(FILE(/tmp/test.txt)=one-touch-record)
exten => s,n(end),Return()
If i execute “dialplan show s@macro-one-touch-record” I could the macro-one-touch-record-custom:
freepbx*CLI> dialplan show s@macro-one-touch-record
[ Context 'macro-one-touch-record' created by 'pbx_config' ]
's' => 1. Set(ONETOUCH_REC_SCRIPT_STATUS=) [extensions_additional.conf:931]
2. System(${AMPBIN}/one_touch_record.php "${CHANNEL(name)}") [extensions_additional.conf:932]
3. Noop(ONETOUCH_REC_SCRIPT_STATUS: [${ONETOUCH_REC_SCRIPT_STATUS}]) [extensions_additional.conf:933]
4. Noop(REC_STATUS: [${REC_STATUS}]) [extensions_additional.conf:934]
5. GotoIf($["${ONETOUCH_REC_SCRIPT_STATUS:0:6}"="DENIED"]?denied) [extensions_additional.conf:935]
6. ExecIf($["${REC_STATUS}"="STOPPED"]?Playback(beep&beep)) [extensions_additional.conf:936]
7. GotoIf($["${REC_STATUS}"="STOPPED"]?end) [extensions_additional.conf:937]
8. GotoIf($["${REC_STATUS}"="RECORDING"]?startrec) [extensions_additional.conf:938]
[startrec] 9. MixMonitor(${MIXMON_DIR}${YEAR}/${MONTH}/${DAY}/${CALLFILENAME}.${MON_FMT},ai(LOCAL_MIXMON_ID)${MIXMON_BEEP},${EVAL(${MIXMON_POST})}) [extensions_additional.conf:939]
10. ExecIf($["${REC_STATUS}"="RECORDING"]?Playback(beep)) [extensions_additional.conf:940]
[denied] 11. ExecIf($["${ONETOUCH_REC_SCRIPT_STATUS:0:6}"="DENIED"]?Playback(access-denied)) [extensions_additional.conf:941]
[end] 12. Return() [extensions_additional.conf:942]
[ Included context 'macro-one-touch-record-custom' created by 'pbx_config' ]
's' => 1. NOOP(Entering macro-one-touch-record-custom) [extensions_custom.conf:2]
2. Set(one-touch-record=1) [extensions_custom.conf:3]
3. Set(FILE(/tmp/test.txt)=one-touch-record) [extensions_custom.conf:4]
[end] 4. Return() [extensions_custom.conf:5]
-= 2 extensions (16 priorities) in 2 contexts. =-
My question about the extensions_override_freepbx.conf was in case you could not create the context “macro-one-touch-record-custom”. So, is it possible to create this context and if so, where should i put it in? Here is a log of a test-call:
freepbx*CLI>
== Using SIP RTP Audio TOS bits 184
== Using SIP RTP Audio TOS bits 184 in TCLASS field.
== Using SIP RTP Audio CoS mark 5
-- Executing [1001@from-internal:1] GotoIf("PJSIP/1000-0000000a", "0?ext-local,*1001,1") in new stack
-- Executing [1001@from-internal:2] GotoIf("PJSIP/1000-0000000a", "0?ext-local,1001,1:followme-check,1001,1") in new stack
-- Goto (followme-check,1001,1)
-- Executing [1001@followme-check:1] Gosub("PJSIP/1000-0000000a", "followme-sub,1001,1()") in new stack
-- Executing [1001@followme-sub:1] Set("PJSIP/1000-0000000a", "__FMFM=TRUE") in new stack
-- Executing [1001@followme-sub:2] GotoIf("PJSIP/1000-0000000a", "0?skipclid") in new stack
-- Executing [1001@followme-sub:3] Gosub("PJSIP/1000-0000000a", "macro-user-callerid,s,1()") in new stack
-- Executing [s@macro-user-callerid:1] Set("PJSIP/1000-0000000a", "TOUCH_MONITOR=1731215718.15") in new stack
-- Executing [s@macro-user-callerid:2] Set("PJSIP/1000-0000000a", "CHANCONTEXT=") in new stack
-- Executing [s@macro-user-callerid:3] Progress("PJSIP/1000-0000000a", "") in new stack
-- Executing [s@macro-user-callerid:4] Set("PJSIP/1000-0000000a", "CHANCONTEXT=") in new stack
-- Executing [s@macro-user-callerid:5] Set("PJSIP/1000-0000000a", "CHANEXTENCONTEXT=1000-0000000a") in new stack
-- Executing [s@macro-user-callerid:6] Set("PJSIP/1000-0000000a", "CHANEXTEN=1000-0000000a") in new stack
-- Executing [s@macro-user-callerid:7] Set("PJSIP/1000-0000000a", "CALLERID(number)=1000") in new stack
-- Executing [s@macro-user-callerid:8] Set("PJSIP/1000-0000000a", "AMPUSER=1000") in new stack
-- Executing [s@macro-user-callerid:9] Set("PJSIP/1000-0000000a", "HOTDESCKCHAN=1000-0000000a") in new stack
-- Executing [s@macro-user-callerid:10] Set("PJSIP/1000-0000000a", "HOTDESKEXTEN=1000") in new stack
-- Executing [s@macro-user-callerid:11] Set("PJSIP/1000-0000000a", "HOTDESKCALL=0") in new stack
-- Executing [s@macro-user-callerid:12] ExecIf("PJSIP/1000-0000000a", "0?Set(HOTDESKCALL=1)") in new stack
-- Executing [s@macro-user-callerid:13] ExecIf("PJSIP/1000-0000000a", "0?Set(CALLERID(name)=)") in new stack
-- Executing [s@macro-user-callerid:14] GotoIf("PJSIP/1000-0000000a", "0?report") in new stack
-- Executing [s@macro-user-callerid:15] ExecIf("PJSIP/1000-0000000a", "1?Set(REALCALLERIDNUM=1000)") in new stack
-- Executing [s@macro-user-callerid:16] Set("PJSIP/1000-0000000a", "AMPUSER=1000") in new stack
-- Executing [s@macro-user-callerid:17] GotoIf("PJSIP/1000-0000000a", "0?limit") in new stack
-- Executing [s@macro-user-callerid:18] Set("PJSIP/1000-0000000a", "AMPUSERCIDNAME=Hannes DECT") in new stack
-- Executing [s@macro-user-callerid:19] ExecIf("PJSIP/1000-0000000a", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
-- Executing [s@macro-user-callerid:20] GotoIf("PJSIP/1000-0000000a", "0?report") in new stack
-- Executing [s@macro-user-callerid:21] Set("PJSIP/1000-0000000a", "AMPUSERCID=1000") in new stack
-- Executing [s@macro-user-callerid:22] Set("PJSIP/1000-0000000a", "__DIAL_OPTIONS=") in new stack
-- Executing [s@macro-user-callerid:23] Set("PJSIP/1000-0000000a", "CALLERID(all)="Hannes DECT" <1000>") in new stack
-- Executing [s@macro-user-callerid:24] ExecIf("PJSIP/1000-0000000a", "0?Set(CUSDIAL=)") in new stack
-- Executing [s@macro-user-callerid:25] ExecIf("PJSIP/1000-0000000a", "0?Set(CALLERID(all)="Hannes DECT" <1000>)") in new stack
-- Executing [s@macro-user-callerid:26] GotoIf("PJSIP/1000-0000000a", "0?limit") in new stack
-- Executing [s@macro-user-callerid:27] ExecIf("PJSIP/1000-0000000a", "0?Set(GROUP(concurrency_limit)=1000)") in new stack
-- Executing [s@macro-user-callerid:28] ExecIf("PJSIP/1000-0000000a", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:29] NoOp("PJSIP/1000-0000000a", "Macro depricated!! To keep the same line numbers") in new stack
-- Executing [s@macro-user-callerid:30] NoOp("PJSIP/1000-0000000a", "Macro depricated !! To keep the same line numbers") in new stack
-- Executing [s@macro-user-callerid:31] GotoIf("PJSIP/1000-0000000a", "0?continue") in new stack
-- Executing [s@macro-user-callerid:32] ExecIf("PJSIP/1000-0000000a", "1?Set(__CALLEE_ACCOUNCODE=)") in new stack
-- Executing [s@macro-user-callerid:33] Set("PJSIP/1000-0000000a", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:34] GotoIf("PJSIP/1000-0000000a", "1?continue") in new stack
-- Goto (macro-user-callerid,s,50)
-- Executing [s@macro-user-callerid:50] Set("PJSIP/1000-0000000a", "CALLERID(number)=1000") in new stack
-- Executing [s@macro-user-callerid:51] Set("PJSIP/1000-0000000a", "CALLERID(name)=Hannes DECT") in new stack
-- Executing [s@macro-user-callerid:52] GotoIf("PJSIP/1000-0000000a", "0?cnum") in new stack
-- Executing [s@macro-user-callerid:53] Set("PJSIP/1000-0000000a", "__MCNUM=1000") in new stack
-- Executing [s@macro-user-callerid:54] Set("PJSIP/1000-0000000a", "__MCNAME=Hannes DECT") in new stack
-- Executing [s@macro-user-callerid:55] Set("PJSIP/1000-0000000a", "__MCEXTEN=1000") in new stack
-- Executing [s@macro-user-callerid:56] Set("PJSIP/1000-0000000a", "__MCORGCHAN=PJSIP/1000-0000000a") in new stack
-- Executing [s@macro-user-callerid:57] Set("PJSIP/1000-0000000a", "CDR(cnam)=Hannes DECT") in new stack
-- Executing [s@macro-user-callerid:58] Set("PJSIP/1000-0000000a", "CDR(cnum)=1000") in new stack
-- Executing [s@macro-user-callerid:59] Return("PJSIP/1000-0000000a", "") in new stack
-- Executing [1001@followme-sub:4] Set("PJSIP/1000-0000000a", "DIAL_OPTIONS=I") in new stack
-- Executing [1001@followme-sub:5] Set("PJSIP/1000-0000000a", "CONNECTEDLINE(num,i)=1001") in new stack
-- Executing [1001@followme-sub:6] Gosub("PJSIP/1000-0000000a", "sub-presencestate-display,s,1(1001)") in new stack
-- Executing [s@sub-presencestate-display:1] Goto("PJSIP/1000-0000000a", "state-not_set,1") in new stack
-- Goto (sub-presencestate-display,state-not_set,1)
-- Executing [state-not_set@sub-presencestate-display:1] Set("PJSIP/1000-0000000a", "PRESENCESTATE_DISPLAY=") in new stack
-- Executing [state-not_set@sub-presencestate-display:2] Return("PJSIP/1000-0000000a", "") in new stack
-- Executing [1001@followme-sub:7] Set("PJSIP/1000-0000000a", "CONNECTEDLINE(name)=Laptop") in new stack
-- Executing [1001@followme-sub:8] Set("PJSIP/1000-0000000a", "FM_DIALSTATUS=NOT_INUSE") in new stack
-- Executing [1001@followme-sub:9] Set("PJSIP/1000-0000000a", "__EXTTOCALL=1001") in new stack
-- Executing [1001@followme-sub:10] Set("PJSIP/1000-0000000a", "__PICKUPMARK=1001") in new stack
-- Executing [1001@followme-sub:11] Gosub("PJSIP/1000-0000000a", "macro-blkvm-setifempty,s,1()") in new stack
-- Executing [s@macro-blkvm-setifempty:1] GotoIf("PJSIP/1000-0000000a", "1?init") in new stack
-- Goto (macro-blkvm-setifempty,s,4)
-- Executing [s@macro-blkvm-setifempty:4] Set("PJSIP/1000-0000000a", "__BLKVM_CHANNEL=PJSIP/1000-0000000a") in new stack
-- Executing [s@macro-blkvm-setifempty:5] Set("PJSIP/1000-0000000a", "SHARED(BLKVM,PJSIP/1000-0000000a)=TRUE") in new stack
-- Executing [s@macro-blkvm-setifempty:6] Set("PJSIP/1000-0000000a", "GOSUB_RETVAL=TRUE") in new stack
-- Executing [s@macro-blkvm-setifempty:7] Return("PJSIP/1000-0000000a", "") in new stack
-- Executing [1001@followme-sub:12] GotoIf("PJSIP/1000-0000000a", "0?skipov") in new stack
-- Executing [1001@followme-sub:13] Gosub("PJSIP/1000-0000000a", "macro-blkvm-set,s,1(reset)") in new stack
-- Executing [s@macro-blkvm-set:1] ExecIf("PJSIP/1000-0000000a", "0?Set(__BLKVM_CHANNEL=PJSIP/1000-0000000a)") in new stack
-- Executing [s@macro-blkvm-set:2] Set("PJSIP/1000-0000000a", "SHARED(BLKVM,PJSIP/1000-0000000a)=TRUE") in new stack
-- Executing [s@macro-blkvm-set:3] Set("PJSIP/1000-0000000a", "GOSUB_RETVAL=TRUE") in new stack
-- Executing [s@macro-blkvm-set:4] Return("PJSIP/1000-0000000a", "") in new stack
-- Executing [1001@followme-sub:14] Set("PJSIP/1000-0000000a", "__NODEST=") in new stack
-- Executing [1001@followme-sub:15] Set("PJSIP/1000-0000000a", "RRNODEST=") in new stack
-- Executing [1001@followme-sub:16] Set("PJSIP/1000-0000000a", "__NODEST=1001") in new stack
-- Executing [1001@followme-sub:17] GosubIf("PJSIP/1000-0000000a", "0?sub-fmsetcid,s,1()") in new stack
-- Executing [1001@followme-sub:18] GotoIf("PJSIP/1000-0000000a", "1?skipprepend") in new stack
-- Goto (followme-sub,1001,20)
-- Executing [1001@followme-sub:20] Set("PJSIP/1000-0000000a", "RecordMethod=Group") in new stack
-- Executing [1001@followme-sub:21] Gosub("PJSIP/1000-0000000a", "sub-record-check,s,1(exten,1001,)") in new stack
-- Executing [s@sub-record-check:1] GotoIf("PJSIP/1000-0000000a", "0?initialized") in new stack
-- Executing [s@sub-record-check:2] Set("PJSIP/1000-0000000a", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:3] Set("PJSIP/1000-0000000a", "NOW=1731215719") in new stack
-- Executing [s@sub-record-check:4] Set("PJSIP/1000-0000000a", "__DAY=10") in new stack
-- Executing [s@sub-record-check:5] Set("PJSIP/1000-0000000a", "__MONTH=11") in new stack
-- Executing [s@sub-record-check:6] Set("PJSIP/1000-0000000a", "__YEAR=2024") in new stack
-- Executing [s@sub-record-check:7] Set("PJSIP/1000-0000000a", "__TIMESTR=20241110-061519") in new stack
-- Executing [s@sub-record-check:8] Set("PJSIP/1000-0000000a", "__FROMEXTEN=1000") in new stack
-- Executing [s@sub-record-check:9] Set("PJSIP/1000-0000000a", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:10] NoOp("PJSIP/1000-0000000a", "Recordings initialized") in new stack
-- Executing [s@sub-record-check:11] ExecIf("PJSIP/1000-0000000a", "1?Set(ARG3=dontcare)") in new stack
-- Executing [s@sub-record-check:12] Set("PJSIP/1000-0000000a", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:13] ExecIf("PJSIP/1000-0000000a", "0?Set(REC_STATUS=NO)") in new stack
-- Executing [s@sub-record-check:14] GotoIf("PJSIP/1000-0000000a", "5?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [s@sub-record-check:17] GotoIf("PJSIP/1000-0000000a", "1?sub-record-check,exten,1") in new stack
-- Goto (sub-record-check,exten,1)
-- Executing [exten@sub-record-check:1] NoOp("PJSIP/1000-0000000a", "Exten Recording Check between 1000 and 1001") in new stack
-- Executing [exten@sub-record-check:2] Set("PJSIP/1000-0000000a", "CALLTYPE=internal") in new stack
-- Executing [exten@sub-record-check:3] ExecIf("PJSIP/1000-0000000a", "0?Set(CALLTYPE=)") in new stack
-- Executing [exten@sub-record-check:4] Set("PJSIP/1000-0000000a", "CALLEE=dontcare") in new stack
-- Executing [exten@sub-record-check:5] ExecIf("PJSIP/1000-0000000a", "0?Set(CALLEE=dontcare)") in new stack
-- Executing [exten@sub-record-check:6] GotoIf("PJSIP/1000-0000000a", "0?callee") in new stack
-- Executing [exten@sub-record-check:7] GotoIf("PJSIP/1000-0000000a", "1?caller") in new stack
-- Goto (sub-record-check,exten,13)
-- Executing [exten@sub-record-check:13] Set("PJSIP/1000-0000000a", "RECMODE=dontcare") in new stack
-- Executing [exten@sub-record-check:14] Set("PJSIP/1000-0000000a", "CALLERRECMODE=dontcare") in new stack
-- Executing [exten@sub-record-check:15] Set("PJSIP/1000-0000000a", "CALEERECMODE=dontcare") in new stack
-- Executing [exten@sub-record-check:16] GotoIf("PJSIP/1000-0000000a", "0?processnormal") in new stack
-- Executing [exten@sub-record-check:17] ExecIf("PJSIP/1000-0000000a", "0?Set(RECMODE=dontcare)") in new stack
-- Executing [exten@sub-record-check:18] ExecIf("PJSIP/1000-0000000a", "0?Set(RECMODE=dontcare)") in new stack
-- Executing [exten@sub-record-check:19] ExecIf("PJSIP/1000-0000000a", "0?Set(RECMODE=dontcare)") in new stack
-- Executing [exten@sub-record-check:20] ExecIf("PJSIP/1000-0000000a", "0?Set(RECMODE=dontcare)") in new stack
-- Executing [exten@sub-record-check:21] ExecIf("PJSIP/1000-0000000a", "0?Set(RECMODE=dontcare)") in new stack
-- Executing [exten@sub-record-check:22] ExecIf("PJSIP/1000-0000000a", "1?Set(RECMODE=dontcare)") in new stack
-- Executing [exten@sub-record-check:23] Gosub("PJSIP/1000-0000000a", "recordcheck,1(dontcare,internal,1001)") in new stack
-- Executing [recordcheck@sub-record-check:1] NoOp("PJSIP/1000-0000000a", "Starting recording check against dontcare") in new stack
-- Executing [recordcheck@sub-record-check:2] Goto("PJSIP/1000-0000000a", "dontcare") in new stack
-- Goto (sub-record-check,recordcheck,3)
-- Executing [recordcheck@sub-record-check:3] Return("PJSIP/1000-0000000a", "") in new stack
-- Executing [exten@sub-record-check:24] Return("PJSIP/1000-0000000a", "") in new stack
-- Executing [1001@followme-sub:22] GotoIf("PJSIP/1000-0000000a", "1?skipdring") in new stack
-- Goto (followme-sub,1001,25)
-- Executing [1001@followme-sub:25] Set("PJSIP/1000-0000000a", "STRATEGY=ringallv2-prim") in new stack
-- Executing [1001@followme-sub:26] Set("PJSIP/1000-0000000a", "__RVOL=") in new stack
-- Executing [1001@followme-sub:27] GotoIf("PJSIP/1000-0000000a", "1?skipsimple") in new stack
-- Goto (followme-sub,1001,30)
-- Executing [1001@followme-sub:30] Set("PJSIP/1000-0000000a", "RingGroupMethod=ringallv2-prim") in new stack
-- Executing [1001@followme-sub:31] Set("PJSIP/1000-0000000a", "_FMGRP=1001") in new stack
-- Executing [1001@followme-sub:32] GotoIf("PJSIP/1000-0000000a", "1?DIALGRP") in new stack
-- Goto (followme-sub,1001,36)
-- Executing [1001@followme-sub:36] ExecIf("PJSIP/1000-0000000a", "1?Set(DOPTS=I):Set(DOPTS=m(Ring)I)") in new stack
-- Executing [1001@followme-sub:37] Set("PJSIP/1000-0000000a", "__ALT_CONFIRM_MSG=") in new stack
-- Executing [1001@followme-sub:38] GotoIf("PJSIP/1000-0000000a", "0?doconfirm") in new stack
-- Executing [1001@followme-sub:39] GotoIf("PJSIP/1000-0000000a", "1?ringallv21") in new stack
-- Goto (followme-sub,1001,42)
-- Executing [1001@followme-sub:42] Gosub("PJSIP/1000-0000000a", "macro-dial,s,1(27,I,1001)") in new stack
-- Executing [s@macro-dial:1] NoOp("PJSIP/1000-0000000a", "Blind Transfer: , Attended Transfer: , User: 1000, Alert Info: ") in new stack
-- Executing [s@macro-dial:2] Set("PJSIP/1000-0000000a", "__CRM_SOURCE=1000") in new stack
-- Executing [s@macro-dial:3] ExecIf("PJSIP/1000-0000000a", "1?Set(ALERT_INFO=)") in new stack
-- Executing [s@macro-dial:4] ExecIf("PJSIP/1000-0000000a", "0?Set(ALERT_INFO=)") in new stack
-- Executing [s@macro-dial:5] ExecIf("PJSIP/1000-0000000a", "0?Set(ALERT_INFO=)") in new stack
-- Executing [s@macro-dial:6] ExecIf("PJSIP/1000-0000000a", "0?Set(CHANNEL(musicclass)=)") in new stack
-- Executing [s@macro-dial:7] AGI("PJSIP/1000-0000000a", "agi://127.0.0.1/dialparties.agi") in new stack
agi://127.0.0.1/dialparties.agi: Starting New Dialparties.agi
agi://127.0.0.1/dialparties.agi: Caller ID name is 'Hannes DECT' number is '1000'
agi://127.0.0.1/dialparties.agi: CW Ignore is:
agi://127.0.0.1/dialparties.agi: CF Ignore is:
agi://127.0.0.1/dialparties.agi: CW IN_USE/BUSY is: 1
agi://127.0.0.1/dialparties.agi: Ringgroup confirm is :
agi://127.0.0.1/dialparties.agi: Methodology of ring is 'ringallv2-prim'
-- agi://127.0.0.1/dialparties.agi: Added extension 1001 to extension map
-- agi://127.0.0.1/dialparties.agi: Extension 1001 cf is disabled
-- agi://127.0.0.1/dialparties.agi: Extension 1001 do not disturb is disabled
agi://127.0.0.1/dialparties.agi: EXTENSION_STATE: 0 (NOT_INUSE)
agi://127.0.0.1/dialparties.agi: Extension 1001 has ExtensionState: 0
== agi://127.0.0.1/dialparties.agi: Discovered PJSIP Endpoint PJSIP/1001
-- agi://127.0.0.1/dialparties.agi: Ended up with real PJSIP Dial string PJSIP/1001/sip:[email protected]:5060
-- agi://127.0.0.1/dialparties.agi: dbset CALLTRACE/1001 to 1000
-- agi://127.0.0.1/dialparties.agi: Filtered ARG3: 1001
-- agi://127.0.0.1/dialparties.agi: RING ALL V2 :
agi://127.0.0.1/dialparties.agi: RVOL_MODE ''
agi://127.0.0.1/dialparties.agi: RVOL is:
agi://127.0.0.1/dialparties.agi: RVOLPARENT is:
-- <PJSIP/1000-0000000a>AGI Script agi://127.0.0.1/dialparties.agi completed, returning 0
-- Executing [s@macro-dial:8] GotoIf("PJSIP/1000-0000000a", "1?normdial") in new stack
-- Goto (macro-dial,s,11)
-- Executing [s@macro-dial:11] NoOp("PJSIP/1000-0000000a", "Returned from dialparties with groups to dial") in new stack
-- Executing [s@macro-dial:12] NoOp("PJSIP/1000-0000000a", "ringall array ") in new stack
-- Executing [s@macro-dial:13] NoOp("PJSIP/1000-0000000a", "ds= PJSIP/1001/sip:[email protected]:5060,27,IU(macro-auto-blkvm) ") in new stack
-- Executing [s@macro-dial:14] NoOp("PJSIP/1000-0000000a", "dsextra= ") in new stack
-- Executing [s@macro-dial:15] Set("PJSIP/1000-0000000a", "ds=PJSIP/1001/sip:[email protected]:5060,27,IU(macro-auto-blkvm)") in new stack
-- Executing [s@macro-dial:16] NoOp("PJSIP/1000-0000000a", "ds= PJSIP/1001/sip:[email protected]:5060,27,IU(macro-auto-blkvm)") in new stack
-- Executing [s@macro-dial:17] Set("PJSIP/1000-0000000a", "__FMGL_DIAL=") in new stack
-- Executing [s@macro-dial:18] Set("PJSIP/1000-0000000a", "LOOPCNT=1") in new stack
-- Executing [s@macro-dial:19] Set("PJSIP/1000-0000000a", "ITER=1") in new stack
-- Executing [s@macro-dial:20] Set("PJSIP/1000-0000000a", "__EXTTOCALL=1001") in new stack
-- Executing [s@macro-dial:21] Set("PJSIP/1000-0000000a", "__MCEXTTOCALL=1001") in new stack
-- Executing [s@macro-dial:22] NoOp("PJSIP/1000-0000000a", "Working with 1001") in new stack
-- Executing [s@macro-dial:23] ExecIf("PJSIP/1000-0000000a", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
-- Executing [s@macro-dial:24] ExecIf("PJSIP/1000-0000000a", "0?Set(HASH(__SIPHEADERS,Alert-Info)=Normal;volume=)") in new stack
-- Executing [s@macro-dial:25] Set("PJSIP/1000-0000000a", "ITER=2") in new stack
-- Executing [s@macro-dial:26] GotoIf("PJSIP/1000-0000000a", "0?ndloopbegin") in new stack
-- Executing [s@macro-dial:27] Gosub("PJSIP/1000-0000000a", "macro-dial-ringall-predial-hook,s,1()") in new stack
-- Executing [s@macro-dial-ringall-predial-hook:1] Return("PJSIP/1000-0000000a", "") in new stack
-- Executing [s@macro-dial:28] ExecIf("PJSIP/1000-0000000a", "0?Set(CWRING=r(callwaiting)):Set(CWRING=)") in new stack
-- Executing [s@macro-dial:29] ExecIf("PJSIP/1000-0000000a", "1?Set(RGFMDIAL=1001):Set(RGFMDIAL=1001)") in new stack
-- Executing [s@macro-dial:30] ExecIf("PJSIP/1000-0000000a", "0?Set(ds=PJSIP/1001/sip:[email protected]:5060,27,IU(macro-auto-blkvm)g)") in new stack
-- Executing [s@macro-dial:31] Gosub("PJSIP/1000-0000000a", "dial-with-exten,1001,1()") in new stack
-- Executing [1001@dial-with-exten:1] Dial("PJSIP/1000-0000000a", "PJSIP/1001/sip:[email protected]:5060,27,IU(macro-auto-blkvm)b(func-apply-sipheaders^s^1),") in new stack
-- PJSIP/1001-0000000b Internal Gosub(func-apply-sipheaders,s,1) start
-- Executing [s@func-apply-sipheaders:1] ExecIf("PJSIP/1001-0000000b", "0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
-- Executing [s@func-apply-sipheaders:2] NoOp("PJSIP/1001-0000000b", "Applying SIP Headers to channel PJSIP/1001-0000000b") in new stack
-- Executing [s@func-apply-sipheaders:3] Set("PJSIP/1001-0000000b", "localchan=1001-0000000b") in new stack
-- Executing [s@func-apply-sipheaders:4] Set("PJSIP/1001-0000000b", "DialMCEXT=1001") in new stack
-- Executing [s@func-apply-sipheaders:5] Set("PJSIP/1001-0000000b", "CHANNEL(hangup_handler_push)=app-missedcall-hangup,1001,1") in new stack
-- Executing [s@func-apply-sipheaders:6] Set("PJSIP/1001-0000000b", "Dchan=1001-0000000b") in new stack
-- Executing [s@func-apply-sipheaders:7] Set("PJSIP/1001-0000000b", "TECH=PJSIP") in new stack
-- Executing [s@func-apply-sipheaders:8] Set("PJSIP/1001-0000000b", "SIPHEADERKEYS=") in new stack
-- Executing [s@func-apply-sipheaders:9] While("PJSIP/1001-0000000b", "0") in new stack
-- Jumping to priority 15
-- Executing [s@func-apply-sipheaders:16] Return("PJSIP/1001-0000000b", "") in new stack
== Spawn extension (from-internal, 1001, 1) exited non-zero on 'PJSIP/1001-0000000b'
-- PJSIP/1001-0000000b Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
== Using SIP RTP Audio TOS bits 184
== Using SIP RTP Audio TOS bits 184 in TCLASS field.
== Using SIP RTP Audio CoS mark 5
-- Called PJSIP/1001/sip:[email protected]:5060
-- Connected line update to PJSIP/1000-0000000a prevented.
-- PJSIP/1001-0000000b is ringing
-- PJSIP/1000-0000000a requested media update control 26, passing it to PJSIP/1001-0000000b
-- PJSIP/1001-0000000b answered PJSIP/1000-0000000a
-- PJSIP/1001-0000000b Internal Gosub(macro-auto-blkvm,s,1) start
-- Executing [s@macro-auto-blkvm:1] Set("PJSIP/1001-0000000b", "__GOSUB_RESULT=") in new stack
-- Executing [s@macro-auto-blkvm:2] Set("PJSIP/1001-0000000b", "CFIGNORE=") in new stack
-- Executing [s@macro-auto-blkvm:3] Set("PJSIP/1001-0000000b", "MASTER_CHANNEL(CFIGNORE)=") in new stack
-- Executing [s@macro-auto-blkvm:4] Set("PJSIP/1001-0000000b", "FORWARD_CONTEXT=from-internal") in new stack
-- Executing [s@macro-auto-blkvm:5] Set("PJSIP/1001-0000000b", "MASTER_CHANNEL(FORWARD_CONTEXT)=from-internal") in new stack
-- Executing [s@macro-auto-blkvm:6] Gosub("PJSIP/1001-0000000b", "macro-blkvm-clr,s,1()") in new stack
-- Executing [s@macro-blkvm-clr:1] Set("PJSIP/1001-0000000b", "SHARED(BLKVM,PJSIP/1000-0000000a)=") in new stack
-- Executing [s@macro-blkvm-clr:2] Set("PJSIP/1001-0000000b", "GOSUB_RETVAL=") in new stack
-- Executing [s@macro-blkvm-clr:3] Return("PJSIP/1001-0000000b", "") in new stack
-- Executing [s@macro-auto-blkvm:7] ExecIf("PJSIP/1001-0000000b", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(num))=1001/sip:[email protected]:5060)") in new stack
-- Executing [s@macro-auto-blkvm:8] ExecIf("PJSIP/1001-0000000b", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(name))=)") in new stack
-- Executing [s@macro-auto-blkvm:9] Return("PJSIP/1001-0000000b", "") in new stack
== Spawn extension (from-internal, , 1) exited non-zero on 'PJSIP/1001-0000000b'
-- PJSIP/1001-0000000b Internal Gosub(macro-auto-blkvm,s,1) complete GOSUB_RETVAL=
-- Channel PJSIP/1001-0000000b joined 'simple_bridge' basic-bridge <b85e9e42-172a-4ce2-b56f-9264995fc16a>
-- Channel PJSIP/1000-0000000a joined 'simple_bridge' basic-bridge <b85e9e42-172a-4ce2-b56f-9264995fc16a>
-- PJSIP/1000-0000000a Internal Gosub(macro-one-touch-record,s,1) start
-- Executing [s@macro-one-touch-record:1] Set("PJSIP/1000-0000000a", "ONETOUCH_REC_SCRIPT_STATUS=") in new stack
-- Executing [s@macro-one-touch-record:2] System("PJSIP/1000-0000000a", "/var/lib/asterisk/bin/one_touch_record.php "PJSIP/1000-0000000a"") in new stack
-- Executing [s@macro-one-touch-record:3] NoOp("PJSIP/1000-0000000a", "ONETOUCH_REC_SCRIPT_STATUS: [RECORDING_STARTED]") in new stack
-- Executing [s@macro-one-touch-record:4] NoOp("PJSIP/1000-0000000a", "REC_STATUS: [RECORDING]") in new stack
-- Executing [s@macro-one-touch-record:5] GotoIf("PJSIP/1000-0000000a", "0?denied") in new stack
-- Executing [s@macro-one-touch-record:6] ExecIf("PJSIP/1000-0000000a", "0?Playback(beep&beep)") in new stack
-- Executing [s@macro-one-touch-record:7] GotoIf("PJSIP/1000-0000000a", "0?end") in new stack
-- Executing [s@macro-one-touch-record:8] GotoIf("PJSIP/1000-0000000a", "1?startrec") in new stack
-- Goto (macro-one-touch-record,s,9)
[2024-11-10 06:15:25] WARNING[323089][C-00000006]: func_strings.c:1665 function_eval: EVAL requires an argument: EVAL(<string>)
-- Executing [s@macro-one-touch-record:9] MixMonitor("PJSIP/1000-0000000a", "2024/11/10/ondemand-1001-1000-20241110-061519-1731215718.15.wav,ai(LOCAL_MIXMON_ID),") in new stack
-- Executing [s@macro-one-touch-record:10] ExecIf("PJSIP/1000-0000000a", "1?Playback(beep)") in new stack
-- <PJSIP/1000-0000000a> Playing 'beep.g722' (language 'de_full')
== Begin MixMonitor Recording PJSIP/1000-0000000a
-- Executing [s@macro-one-touch-record:11] ExecIf("PJSIP/1000-0000000a", "0?Playback(access-denied)") in new stack
-- Executing [s@macro-one-touch-record:12] Return("PJSIP/1000-0000000a", "") in new stack
== Spawn extension (dial-with-exten, 1001, 1) exited non-zero on 'PJSIP/1000-0000000a'
-- PJSIP/1000-0000000a Internal Gosub(macro-one-touch-record,s,1) complete GOSUB_RETVAL=
-- Channel PJSIP/1000-0000000a left 'simple_bridge' basic-bridge <b85e9e42-172a-4ce2-b56f-9264995fc16a>
-- Channel PJSIP/1001-0000000b left 'simple_bridge' basic-bridge <b85e9e42-172a-4ce2-b56f-9264995fc16a>
-- PJSIP/1001-0000000b Internal Gosub(app-missedcall-hangup,1001,1) start
-- Executing [1001@app-missedcall-hangup:1] NoOp("PJSIP/1001-0000000b", "Dialed: 1001") in new stack
-- Executing [1001@app-missedcall-hangup:2] NoOp("PJSIP/1001-0000000b", "Caller: 1000") in new stack
-- Executing [1001@app-missedcall-hangup:3] GotoIf("PJSIP/1001-0000000b", "0?exit") in new stack
-- Executing [1001@app-missedcall-hangup:4] Set("PJSIP/1001-0000000b", "EXTENNUM=1001") in new stack
-- Executing [1001@app-missedcall-hangup:5] Set("PJSIP/1001-0000000b", "FEXTENNUM=1001") in new stack
-- Executing [1001@app-missedcall-hangup:6] GotoIf("PJSIP/1001-0000000b", "1?exit") in new stack
-- Goto (app-missedcall-hangup,1001,8)
-- Executing [1001@app-missedcall-hangup:8] Return("PJSIP/1001-0000000b", "") in new stack
== Spawn extension (from-internal, , 1) exited non-zero on 'PJSIP/1001-0000000b'
-- PJSIP/1001-0000000b Internal Gosub(app-missedcall-hangup,1001,1) complete GOSUB_RETVAL=
== Spawn extension (dial-with-exten, 1001, 1) exited non-zero on 'PJSIP/1000-0000000a'
== MixMonitor close filestream (mixed)
== End MixMonitor Recording PJSIP/1000-0000000a
Hannes