Record a call

henkoegema

Joined
Jul 12, 2007
Messages
37
Likes
0
Points
0
#1
In my extensions_custom.conf I use a macro to record calls:

[macro-monitor]
exten => s,1,Monitor(wav,/var/spool/asterisk/monitor/${TIMESTAMP:0:8}/${TIMESTAMP:9:2}.${TIMESTAMP:11:2}_to_${ARG1},m)


[from-internal-custom]
exten => 1111,1,Macro(monitor,0023487719xxx)
...
...

This should give an output like:
/var/spool/asterisk/monitor/20070807/11.58_to_0023487719xxx.wav

However, I get no recording at all. :eek:hmy:


In addition to the above question, I should like to change the standard monitor output, which gives a random (?) output name.
 

henkoegema

Joined
Jul 12, 2007
Messages
37
Likes
0
Points
0
#2
henkoegema said:
In my extensions_custom.conf I use a macro to record calls:

[macro-monitor]
exten => s,1,Monitor(wav,/var/spool/asterisk/monitor/${TIMESTAMP:0:8}/${TIMESTAMP:9:2}.${TIMESTAMP:11:2}_to_${ARG1},m)


[from-internal-custom]
exten => 1111,1,Macro(monitor,0023487719xxx)
...
...

This should give an output like:
/var/spool/asterisk/monitor/20070807/11.58_to_0023487719xxx.wav

However, I get no recording at all. :eek:hmy:
I managed to get the recordings now. (please don't ask me how, because I really don't understand why I got it now and not earlier)

However the output filename still isn't correct.

Instead of getting
/var/spool/asterisk/monitor/20070807/11.58_to_0023487719xxx.wav
I get
/var/spool/asterisk/monitor/._to_0023487719xxx.wav

It looks like that the ${TIMESTAMP) variable isn't accepted.
 

henkoegema

Joined
Jul 12, 2007
Messages
37
Likes
0
Points
0
#3
It looks like that the ${TIMESTAMP) variable isn't accepted.
Can somebody confirm whether or not ${TIMESTAMP} is working? :S
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,887
Members
17,566
Latest member
Fpino
Top