[Asterisk-Users] doubts regarding monitor command

Paulo Henrique Marques Santos psantos at cpqd.com.br
Thu Oct 21 11:53:25 MST 2004


Hi,

I'd like to use cmd monitor to record a conversation.
In the extension.conf file, I have written the extensions properties as follows:

;
;
[general]
static=yes
writeprotect=no

[globals]
CONSOLE=Console/dsp        ; Console interface for demo

[cisco]
exten => 3001,1,Dial(SIP/cisco,20,tr)
exten => 3005,1,Dial(SIP/cisco3005,20,tr)
exten => 2008,1,Dial(SIP/cisco2008,20,tr)
;exten => 3001,2,Answer
exten => 2008,2,Monitor(wav,monitorTeste)
;context]

[internal]
exten => 1111,1,Dial,Zap/1
exten => 2222,1,Dial,Zap/2

[sip]
;exten => 2,1,Dial(SIP/phone1,20,tr)
exten => 3002,1,Dial,SIP/2222 at 192.168.150.24
;exten => 3002,2,Monitor(wav,monitorTeste_1)
;exten => 2222,1,Dial(SIP/phone1,20,tr)
;exten => 2222,1,Dial(SIP/3002,10,tr)

[default]
include => sip
include => internal
include => cisco
include => cisco3005
include => cisco2008
;
;


This configuration is used within the following call scenario:

MY phone = 3002

- phone 3002 calls phone 2008;
- phone 2008 doesn´t answer the call,
- time out happens after some seconds;
- monitor of 2008 starts
- monitor stops when I hung up,

As it is seen, the monitor is starting after the timeout event but this is not the correct way to handle this function.
The correct way to use monitor is to start it when the conversation starts I suppose, so, I´d like to know if someone has an example explaining how to use correctly the monitor to record conversation between two phones within asterisk.
Could someone help me with that?

Thanks in advance and best regards




More information about the asterisk-users mailing list