Hi,

Yes, there is a way. In extensions.conf, you add a macro as:

[macro-record-on]
exten => s,1,AGI(set-timestamp.agi)
exten => s,2,SetVar(CALLFILENAME=${timestamp}-${ARG2}-${ARG1})
exten => s,3,Monitor(wav,${CALLFILENAME},m)

then, when you want to record the call, you use:

exten => s,1,Macro(record-on,NAME_OF_CHANNEL,${CALLERIDNUM})

this will record to a file named for example 20050704-173558-93xxxxxxx-IN.wav (number obfuscated)

The set-timestamp.agi is nothing else than

#!/bin/sh
longtime=`date +%Y%m%d-%H%M%S`
echo SET VARIABLE timestamp $longtime

MAKE SURE OF THE LEGALITY OF DOING THIS IN THE PLACE YOU WILL BE DEPLOYING.

Best regards,

Mike

Christoph wrote:
On Thu, 2005-07-14 at 17:00 +0800, Ian Bert Tusil wrote:

I'm new to asterisk. I would like to ask if there's a feature in
asterisk wherein you can monitor ongoing calls, some kinda like
tapping into active phone calls? It must have this feature but I do
not know where to get some reference to set this up or test this.

Can anyone share me some sites as reference?


As far as I know there is no feature in Asterisk, but I might be wrong.
However, you can use ethereal to "tap" SIP connections. You simply sniff
the SIP connection and after it's done you can decode it and ethereal
will output a .au file which contains both sides of the conversation.
Also I heared that the Windows tool "Cain & Able" is able to play back
SIP converstaions in real time, but I haven't tested that myself.

_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to