Record a call

Discussion in 'General' started by henkoegema, Aug 7, 2007.

  1. henkoegema

    Joined:
    Jul 12, 2007
    Messages:
    37
    Likes Received:
    0
    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.
     
  2. henkoegema

    Joined:
    Jul 12, 2007
    Messages:
    37
    Likes Received:
    0
    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.
     
  3. henkoegema

    Joined:
    Jul 12, 2007
    Messages:
    37
    Likes Received:
    0
    Can somebody confirm whether or not ${TIMESTAMP} is working? :S
     

Share This Page