@vladkopy wrote:
Following discussion http://community.freepbx.org/t/solved-how-to-email-call-recordings-post-call-recording-script/26747/18
Post Call Recording Script like this: /var/lib/asterisk/bin/emailrecording.sh ^{TIMESTR} ^{FROMEXTEN} ^{CALLFILENAME} ^{UNIQUEID} ^{ARG3}
will not get parameters with one_touch_record.php only gets parameters through regular recording as it is called fromMixMonitor call is happening in /var/lib/asterisk/bin/one_touch_record.php which has no idea and doesn't read ^ well. With regular recording it calls MixMonitor in extensions_additional.conf
in extensions_additional.conf:
[macro-one-touch-record]
include => macro-one-touch-record-custom
exten => s,1,Set(ONETOUCH_REC_SCRIPT_STATUS=)
exten => s,n,System(/var/lib/asterisk/bin/one_touch_record.php "${CHANNEL(name)}")in /var/lib/asterisk/bin/one_touch_record.php:
$astman->mixmonitor($masterChannel, "{$mixMonDir}{$year}/{$month}/{$day}/{$callFileName}.{$mixMonFormat}", "ai(LOCAL_MIXMON_ID)$beep", $mixMonPost, rand());guess we need to fix one_touch_record.php to forward those ^ correctly as it seems they are processed by MixMonitor itself
Posts: 1
Participants: 1