Additional recording script for Asterisk 11.2.1 on Debian 6.0.10
Budget: €30 – €250 EUR
On a really old product server without any OS updates since about 8 years, the Asterisk server needs an additional functionality which is not available in that old Asterisk version. (Upgrading Debian or Asterisk isn't a solution as this server is running as it is and a rebuilt in any way is much too complex)
On this server there are phone calls to given phone numbers initialized and the phone calls are recorded with Monitor. (MixMonitor unluckily is not included in my Asterisk version). The calls are managed in form of conferences. So only the mixed audio tracks (caller and callee) are recorded. But I need additionally the audio track of the callee seperately been recorded. And whatever I tried I was not able to do so. The problem seems to be that my extensions.conf does not allow to start a recording of the callee audio track seperately. With MixMonitor my problem probably would be solved but, as I wrote, it is not part of my Asterisk version and as far as I understand, it cannot be simply installed as a package or else.
So I think I need any tricky script/hook solution.
It will not make this job simpler that I cannot give you access to the server. I will test your solutions/scripts and report back debug informations and else.
exten => _0049ZX.,1,NoOp(Starting Dialout Procedure app_sound INT ${EXTEN})
same => n,SIPAddHeader(P-Preferred-Identity: <sip:+498936777777@sipxxxcom\;user=phone>)
same => n,Set(CALLERID(all)=+4917650621344)
same => n,Set(__CONF=${EXTEN})
same => n,Set(__INIT_CHANNEL=${CDR(channel)})
;same => n,AGI(check_channel.sh,${INIT_CHANNEL}xxx${CONF})
same => n,Set(FILE(/usr/local/asterisk/var/lib/asterisk/conferences/${SIPCALLID})=${CONF})
same => n,Set(MONITOR_FILENAME=/tmp/wavs/${EXTEN:1})
same => n,Monitor(wav,${MONITOR_FILENAME},i)
same => n,Dial(SIP/${EXTEN}@sipout_xxx,30,rG(separator,s,1))
same => n,NoOp("Call should not end here")
same => n,Hangup()
On this server there are phone calls to given phone numbers initialized and the phone calls are recorded with Monitor. (MixMonitor unluckily is not included in my Asterisk version). The calls are managed in form of conferences. So only the mixed audio tracks (caller and callee) are recorded. But I need additionally the audio track of the callee seperately been recorded. And whatever I tried I was not able to do so. The problem seems to be that my extensions.conf does not allow to start a recording of the callee audio track seperately. With MixMonitor my problem probably would be solved but, as I wrote, it is not part of my Asterisk version and as far as I understand, it cannot be simply installed as a package or else.
So I think I need any tricky script/hook solution.
It will not make this job simpler that I cannot give you access to the server. I will test your solutions/scripts and report back debug informations and else.
exten => _0049ZX.,1,NoOp(Starting Dialout Procedure app_sound INT ${EXTEN})
same => n,SIPAddHeader(P-Preferred-Identity: <sip:+498936777777@sipxxxcom\;user=phone>)
same => n,Set(CALLERID(all)=+4917650621344)
same => n,Set(__CONF=${EXTEN})
same => n,Set(__INIT_CHANNEL=${CDR(channel)})
;same => n,AGI(check_channel.sh,${INIT_CHANNEL}xxx${CONF})
same => n,Set(FILE(/usr/local/asterisk/var/lib/asterisk/conferences/${SIPCALLID})=${CONF})
same => n,Set(MONITOR_FILENAME=/tmp/wavs/${EXTEN:1})
same => n,Monitor(wav,${MONITOR_FILENAME},i)
same => n,Dial(SIP/${EXTEN}@sipout_xxx,30,rG(separator,s,1))
same => n,NoOp("Call should not end here")
same => n,Hangup()