search for: callfilenam

Displaying 20 results from an estimated 94 matches for "callfilenam".

Did you mean: callfilename
2004 Jan 11
2
macro error "exited non-zero"
...way to make a macro ignore errors and continue to s,4? I have the lattes ver of sox 12.17.4. Also if I just run this line from the command line I don't get an error. [root@redhat monitor]# sox in.wav in-rev.wav reverse [root@redhat monitor]# [macro-record-cleanup] exten => s,1,GotoIf($[${CALLFILENAME} = ${FOO}]?11:2) exten => s,2,SetVar(MONITORDIR=/var/spool/asterisk/monitor) exten => s,3,System(/usr/local/bin/sox ${MONITORDIR}/${CALLFILENAME}-in.wav ${MONITORDIR}/${CALLFILENAME}-in-rev.wav reverse) exten => s,4,System(/usr/local/bin/sox ${MONITORDIR}/${CALLFILENAME}-out.wav ${MONITO...
2003 Aug 25
6
Syncronize Monitored Calls
I thought I would post this in case it might be of any use to anyone. Not anything special but it does work. Keep in mind you need sox and wmix. Here is some relevant exerpts of my extensions.conf using John Todds macro. [globals] CALLFILENAME=foo FOO=foo CALLERIDNUM=foo [default] exten => 287,1,Macro(dial,SIP/agent20002|20) exten => 287,2,Voicemail(u287) exten => h,1,Macro(hangup) [macro-dial] exten => s,1,AGI(set-timestamp.agi) exten => s,2,SetVar(CALLFILENAME=${timestamp}-${CALLERIDNUM}-${MACRO_EXTEN}) exten =&...
2004 Jan 20
1
help - recording both sides of a conversati on
This is what I'm doing it gets you both sides of the phone call...small size...and playable on windows through a share. My notes: On redhat 9 I have to run the following command for asterisk to start LD_ASSUME_KERNEL=2.4.1 asterisk -vvvvgc [macro-record-on] exten => s,1,SetVar(CALLFILENAME=${TIMESTAMP}-${ARG2}-${ARG1}) exten => s,2,Monitor(wav,${CALLFILENAME}) ;exten => s,3,ResetCDR(w) [macro-record-cleanup] exten => s,1,GotoIf($[${CALLFILENAME} = ${FOO}]?11:2) exten => s,2,SetVar(MONITORDIR=/var/spool/asterisk/monitor) exten => s,3,System(sox ${MONITORDIR}/${CALLF...
2004 Oct 04
1
Macro's and Var Scope's
...1) Using M(x) in a dial command does not allow argument to be passed. Using something like "Dial(${ARG2},10,tTM(record-start,1111))" means that the macro cannnot be found. 2) Variables are not passed from one context into another when using the M(x) command. For example the variable CALLFILENAME set in stdexten cannot be seen by record-start but can be seen if I use the Macro() command rather than Dial() with the M(x) switch. If anyone can offer any advice it would be much appreciated. Pls note the working method is included but commented out I hope thats not confusing. Also record-c...
2007 Feb 04
1
Help - Received response: "Forbidden" from '"Unknown"
...Extensions.conf [dialstring] exten => t,1,Dial(Zap/g1/100,60,tn) exten => i,1,Dial(Zap/g1/100,60,tn) [from-e100p] include => dial-sip include => out-voip [dial-e100p] exten => _1XX,1,System(mkdir /mnt/data/Recording/${CALLERID(num)}) exten => _1XX,2,Set(CALLFILENAME=/mnt/data/Recording/${CALLERID(num)}/${CALLERID( num)}-Called-${STRFTIME(${EPOCH},,%d%m%Y-%H%M%S)}-${EXTEN}) exten => _1XX,3,MixMonitor(${CALLFILENAME}.wav49|v(0)V(0)) exten => _1XX,4,Dial(Zap/g1/${EXTEN},90,r) exten => _91XX,1,System(mkdir /mnt/data/Recording/${CALLERID(num)}) ext...
2003 Aug 17
3
Monitor application temporary hack
...twiddle with some of the features in sox to change this. JT ; -- start -- [globals] ; These variables are to avoid the irritating problem ; with inability to use regexp's on strings that have ; not been defined. ; ; These are used in [macro-record-on] and ; in [macro-record-cleanup] ; CALLFILENAME=foo FOO=foo [macro-record-on] ; ; This routine is called as a macro before a "Dial" statement, in order ; to record a call into a set of files. It is used hand-in-hand with ; the "macro-record-cleanup" routine. ; I use an AGI to get the base filenames, which are created u...
2007 Jan 28
0
Trouble outgoing VOIP Provider Calls
...Extensions.conf [dialstring] exten => t,1,Dial(Zap/g1/100,60,tn) exten => i,1,Dial(Zap/g1/100,60,tn) [from-e100p] include => dial-sip include => out-voip [dial-e100p] exten => _1XX,1,System(mkdir /mnt/data/Recording/${CALLERID(num)}) exten => _1XX,2,Set(CALLFILENAME=/mnt/data/Recording/${CALLERID(num)}/${CALLERID( num)}-Called-${STRFTIME(${EPOCH},,%d%m%Y-%H%M%S)}-${EXTEN}) exten => _1XX,3,MixMonitor(${CALLFILENAME}.wav49|v(0)V(0)) exten => _1XX,4,Dial(Zap/g1/${EXTEN},90,r) exten => _91XX,1,System(mkdir /mnt/data/Recording/${CALLERID(num)}) ext...
2004 Sep 15
3
call recording and CDR "feature" discovered?
...lated with the destination phone number and the LastApp field get populated with the recording information. Here's my recording stanza. All the support phones are in a context called record-calls so that it happens all the time. ; Record calls [record-calls] exten => _1NXXNXXXXXX.,1,SetVar(CALLFILENAME=${TIMESTAMP}-${CALLERIDNUM}-${EXTEN:2}) exten => _1NXXNXXXXXX.,2,Monitor(wav,${CALLFILENAME}) exten => _1NXXNXXXXXX.,3,Answer exten => _1NXXNXXXXXX.,4,Background(this-call-may-be) exten => _1NXXNXXXXXX.,5,Background(recorded) exten => _1NXXNXXXXXX.,6,Background(for-quality-purposes)...
2006 Dec 08
1
cal recording with email
...on-demand call recording. Here's a snippet of the pertinent dialplan. The purpose of this is to allow one user in particular to be able to receive an email recording of the call everytime he dials *91 + number. The problem is that the email is not going out or being generated when I use the ${CALLFILENAME} variable. When I use the actual file name of the gsm recording, the emails go out without a problem. [rec-tt-trunkdial] exten=>_*91NXX.,1,SetVar(CALLFILENAME=${TIMESTAMP}:${CALLERIDNUM}) exten=>_*91NXX.,n,Monitor(gsm,/var/spool/asterisk/monitor/${CALLFILENAME },m) exten=>_*91NXX....
2007 Feb 05
0
Help - Received response: "Forbidden" from'"Unknown"
.../100,60,tn) > > > > [from-e100p] > > > > include => dial-sip > > include => out-voip > > > > [dial-e100p] > > > > exten => _1XX,1,System(mkdir /mnt/data/Recording/${CALLERID(num)}) > > exten => > _1XX,2,Set(CALLFILENAME=/mnt/data/Recording/${CALLERID(num)}/${CALLERID(num)}-Called-${STRFTIME(${EPOCH},,%d%m%Y-%H%M%S)}-${EXTEN}) > > exten => _1XX,3,MixMonitor(${CALLFILENAME}.wav49|v(0)V(0)) > > exten => _1XX,4,Dial(Zap/g1/${EXTEN},90,r) > > > > exten => _91XX,1,System(mkdir /mn...
2004 May 26
2
Monitoring Calls
I'm trying to set up basic monitoring for a specific extension (5004) to record all outgoing and incoming calls and save them as WAV files. I've set this in the extensions.conf file: exten => 5004,1,Answer exten => 5004,2,Wait,1 exten => 5004,3,SetVar(CALLFILENAME=/var/spool/asterisk/MONITOR-${TIMESTAMP}-${CA LLERIDNUM}) exten => 5004,4,Monitor,wav|${CALLFILENAME} But it doesn't seem to work. Any guidance would be appreciated. I am fairly new at Asterisk so my apologies if it is a really simple answer. Thanks! Mark
2003 Apr 20
1
Macros not working as expected with extension "h" in some circumstances
...ome reasonably small filesize using gsm ; compression. This routine should be called out of the "h" priority ; in a context. If the call was not recorded, this macro will ; not cause any harm, so calling it on each hangup isn't a problem. ; ; First, did we record this call? If ${CALLFILENAME} is zero, then ; we can be fairly certain that this call wasn't recorded, so just ; jump to the end of this macro and return out of routine. ; exten => s,1,SetVar(MONITORDIR=/var/spool/asterisk/monitor) exten => s,2,GotoIf($[${CALLFILENAME} = 0]?s|6) ; ; This part of the routine mixes...
2012 Jan 25
3
Executing Script after MixMonitor is called
...er mixmonitor command is called but it doesnt execute the command, I tried the command in terminal it worked, any help please ... below is my dial plan exten=6500,n,Set(MIXMONITOR_EXEC=&& nice -n 19 /usr/local/bin/lame -b 8 -t -F -m m --bitwidth 8 --quiet "/var/spool/asterisk/monitor/${CALLFILENAME}.wav" "/var/spool/asterisk/monitor/${CALLFILENAME}.mp3" && rm -f "/var/spool/asterisk/monitor/${CALLFILENAME}.wav") exten=6500,n,MixMonitor(${CALLFILENAME}.wav,b)
2006 Jun 04
2
Monitor application and e-mailing attachment
Hi all, I'm trying to make a context that will monitor a call and when it's completed it would e-mail the wav to a specified mail adres. So I made a standard context that records a call, like this: exten => _*31*00[1-9].,1,Setvar(CALLFILENAME=CALL-${EXTEN:4}-$ {TIMESTAMP}) exten => _*31*00[1-9].,2,Monitor(wav,${CALLFILENAME},m}) exten => _*31*00[1-9].,3,Dial(SIP/0031${EXTEN:6}@easynet) exten => h,1,System(/etc/asterisk/mail.sh ${CALLFILENAME}) Ok, this is my mail.sh: /usr/bin/mime-construct --to mail@address.com --subject...
2004 Dec 19
1
Make asterisk launch script after completing call.
...king for both incoming and outgoing calls. Now I want to make those wavs into mp3. I could launch a script from cron that checks for new wavs and converts them. But that wouldn't be so elegant. Launching it from * on hangup would be nicer. How is it done? [outgoing] exten => _0.,1,SetVar(CALLFILENAME=${EXTEN:1}-${TIMESTAMP}) exten => _0.,2,Monitor(wav,${CALLFILENAME},m) exten => _0.,3,Dial(SIP/rix/${EXTEN}|20|t) exten => _0.,4,Congestion exten => _0.,104,Congestion [sip-in] exten => 1000,1,SetVar(CALLFILENAME=${EXTEN:1}-${TIMESTAMP}) exten => 1000,2,Monitor...
2005 Aug 15
2
Only single channel recorded with Monitor
We are using the following to record conversations. exten => _1XXX.,1,SetVar(CALLFILENAME=call_to_${EXTEN:1}_dated_${TIMESTAMP}) exten => _1XXX.,2,Monitor(wav,${CALLFILENAME},m) exten => _1XXX.,3,Dial(IAX2/4506:zj5S3A5a@nl.voipgate.nl/${EXTEN:1}) exten => _1XXX.,4,Congestion exten => _1XXX.,104,Congestion This was working previously to record both sides of the conversation...
2004 Nov 28
3
soxmix
Does soxmix works with asterisk ver. 0.9? I have ver. sox-12.17.5 on Gentoo but the option "m" does not combine two WAV files (In and Out) into one file. I have two separate files in /monitor folder. exten => 711,1,SetVar(CALLFILENAME=${EXTEN:1}-${TIMESTAMP}) exten => 711,2,Monitor(wav,${CALLFILENAME},m) exten => 711,3,Dial(${sales_support},20,r) exten => 711,4,Voicemail(u11) ; Right to voicemail exten => 711,5,Hangup() -- #Joseph
2006 Dec 01
0
Asterisk as bridge, strange ${EXTEN} values
Hello, I have this setup: Telco --PRI(g1,ext-incoming)--> Asterisk TE405P --PRI(g2,int-incoming)--> Alcatel OXO extensions.conf: [ext-incoming] exten => _X.,1,Noop exten => _X.,n,SetVar(CALLFILENAME=${TIMESTAMP:0:4}/${TIMESTAMP:4:2}/${TIMESTAMP:6:2}/${TIMESTAMP}-${UNIQUEID}-${EXTEN}) exten => _X.,n,Monitor(wav,${CALLFILENAME},b) exten => _X.,n,Dial(Zap/g2/${EXTEN}) exten => h,1,Noop exten => h,n,Noop(Process ${CALLFILENAME}) [int-incoming] exten => _X.,1,Noop exten => _X.,n...
2006 Dec 18
0
Wait command
Hi I've got a script like this exten => s,1,SetVar(CALLFILENAME=/var/www/recordings/${TIMESTAMP:0:8:7}/${UNIQUEID}) exten => s,2,AGI(recordstart.py,${ARG1},${CALLERIDNUM},${CALLFILENAME},Ind) exten => s,3,DIAL(ZAP/g2/${ARG1},70) exten => s,4,AGI(logerror.py,${ARG1},${CALLERIDNUM},${CHANNEL},${DIALSTATUS},${DATETIME}, ${CAUSECODE}) exten => s,5,ha...
2011 Jan 13
1
Call hung up?
I currently have in extensions.conf: exten => 106,1,Set(CALLFILENAME=${TIMESTAMP}_${CALLERID(num)}) exten => 106,n,Monitor(wav,${CALLFILENAME},m) exten => 106,hint,SIP/106 exten => 106,Macro(stdexten,106,${HINT}) When I called x106 this was logged: -- Executing [106 at voicemenu-custom-4:1] Set("DAHDI/7-1", "CALLFILENAME=_xxxxxxx"...