Hi, exten => _0614.,n,MixMonitor(zap_g2_${EXTEN}_${UNIQUEID}_*${CALLER}* .wav|av(0}V(0))
This should append the caller number in your recorded file name. Ensure that you save the callerid in the variable before you're changing it to MY_CALLERID exten => _0614.,1,*Set(CALLER=${CALLERID(number)})* exten => _0614.,n,Set(CALLERID(number)=MY_CALLERID) exten => _0614.,n,MixMonitor(zap_g2_${EXTEN}_*${CALLER}*.wav|av(0}V(0)) exten => _0614.,n,Set(AUDIOHOOK_INHERIT(MixMonitor)=yes) exten => _0614.,n,Dial(Zap/g2/${EXTEN},30,A(this-call-may-be-monitored-or-recorded) exten => _0614.,n,Hangup(); Best Regards, Sammy On Thu, Feb 7, 2013 at 8:48 PM, Salaheddine Elharit < salah.elharit...@gmail.com> wrote: > Hello list > > > i have asterisk 1.4 installed and i use MixMonitor to save the outbound > call like below > > > > exten => _0614.,1,Set(CALLERID(number)=MY_CALLERID) > > exten => _0614.,n,MixMonitor(zap_g2_${EXTEN}_${UNIQUEID}.wav|av(0}V(0)) > > exten => _0614.,n,Set(AUDIOHOOK_INHERIT(MixMonitor)=yes) > > exten => > _0614.,n,Dial(Zap/g2/${EXTEN},30,A(this-call-may-be-monitored-or-recorded) > > exten => _0614.,n,Hangup(); > > > > > > using this code i can save all outbound calls begin with 0614 > in /var/spool/asterisk/monitor like this > (zap_g2_0614xxxxxx_1360219942.10291.wav) > > > > i use 3 phones sip (222,223,224) and my question how to save the sip phone > with number like that (zap_g2_0614xxxxxx_224) for example > > > > thanks and regards > > > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users