Reply To: RE: pause/resume call recording

VitalPBX Community Support General Discussion pause/resume call recording Reply To: RE: pause/resume call recording

    gerrykernan
    Participant
    Up
    0
    Down

    hi

    i got little futher on this , using macros below

     

    [macro-recpause]
    exten => s,1,Playback(/var/lib/asterisk/sounds/en/beep)
    exten => s,n,Noop(“pause code pressed”)
    exten => s,n,StopMixMonitor()

    [macro-recunpause]
    exten => s,1,Playback(/var/lib/asterisk/sounds/en/beep)
    exten => s,n,Playback(/var/lib/asterisk/sounds/en/beep)exten => s,n,Noop(“resume code pressed”)
    exten => s,n,NoOP(Call file name is ${UNIQUEID} )
    exten => s,n,Set(AUDIO_FILE=${UNIQUEID})
    exten => s,n,NoOP(AUDIO_FILE name is ${UNIQUEID} )
    exten => s,n,Set(RECORDING_FORMAT=${IF($[“${RECORDING_FORMAT}”=”wav49”]?WAV:${RECORDING_FORMAT})})
    exten => s,n,Set(REC_FILENAME=${ASTSPOOLDIR}/monitor/${STRFTIME(${EPOCH},,%Y/%m/%d)}/${AUDIO_FILE}.${RECORDING_FORMAT})
    exten => s,n,Noop(rec file = ${REC_FILENAME})
    exten => s,n,MixMonitor(${REC_FILENAME},a,${MIXMON_POST})

     

    but the ${UNIQUEID} i get when the callee presses #3 to resume call recording is differnet than the ${UNIQUEID} created when the call is first answered

    Call answered

    – Executing [s@sub-perform-recording:1] NoOp(“PJSIP/13_4-00000130”, “Perform Call Recording”) in new stack
    — Executing [s@sub-perform-recording:2] Set(“PJSIP/13_4-00000130”, “AUDIO_FILE=1542299030.15220“) in new stack
    — Executing [s@sub-perform-recording:3] Set(“PJSIP/13_4-00000130”, “RECORDING_FORMAT=wav”) in new stack
    — Executing [s@sub-perform-recording:4] Set(“PJSIP/13_4-00000130”, “REC_FILENAME=/var/spool/asterisk/monitor/2018/11/15/1542299030.15220.wav”) in new stack
    — Executing [s@sub-perform-recording:5] Set(“PJSIP/13_4-00000130”, “CDR(recfile)=/var/spool/asterisk/monitor/2018/11/15/1542299030.15220.wav”) in new stack
    — Executing [s@sub-perform-recording:6] MixMonitor(“PJSIP/13_4-00000130”, “/var/spool/asterisk/monitor/2018/11/15/1542299030.15220.wav,b,”) in new stack
    — Executing [s@sub-perform-recording:7] Set(“PJSIP/13_4-00000130”, “_RECORDING_IN_PROGRESS=yes”) in new stack

     

    callee presses #3 to resume recording

    Executing [s@macro-recunpause:3] NoOp(“SIP/infinityit-00002668”, “”resume code pressed””) in new stack
    — Executing [s@macro-recunpause:4] NoOp(“SIP/infinityit-00002668”, “Call file name is 1542299030.15219 “) in new stack
    — Executing [s@macro-recunpause:5] Set(“SIP/infinityit-00002668”, “AUDIO_FILE=1542299030.15219”) in new stack
    — Executing [s@macro-recunpause:6] NoOp(“SIP/infinityit-00002668”, “AUDIO_FILE name is 1542299030.15219 “) in new stack
    — Executing [s@macro-recunpause:7] Set(“SIP/infinityit-00002668”, “RECORDING_FORMAT=wav”) in new stack
    — Executing [s@macro-recunpause:8] Set(“SIP/infinityit-00002668”, “REC_FILENAME=/var/spool/asterisk/monitor/2018/11/15/1542299030.15219.wav”) in new stack
    — Executing [s@macro-recunpause:9] NoOp(“SIP/infinityit-00002668”, “rec file = /var/spool/asterisk/monitor/2018/11/15/1542299030.15219.wav”) in new stack
    — Executing [s@macro-recunpause:10] MixMonitor(“SIP/infinityit-00002668”, “/var/spool/asterisk/monitor/2018/11/15/1542299030.15219.wav,a,”) in new stack
    == Begin MixMonitor Recording SIP/infinityit-00002668

     

    im assuming this is a ${UNIQUEID} for each leg of the call.  is it possible to acces the UNIQUEID variable for the other leg?

     

    gerry

    0