VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
gao at pztop.com Guest
|
Posted: Mon Sep 15, 2014 4:46 pm Post subject: [asterisk-users] Record ANSWERED call |
|
|
Hi,
I am using this dialplan to record incoming calls:
.....
exten => 3331122,n,Set(MONITOR_FILE=${RECDIR}/${UNIQUEID})
exten => 3331122,n,MixMonitor(${MONITOR_FILE}.wav,b)
exten => 3331122,n,GoSub(stdexten(${Ext1007}))
exten => 3331122,n,Voicemail(1007@default,)
exten => 3331122,n,Hangup()
The problem is it records all incoming calls include those with the
disposition of "NO ANSWER, FAILED, BUSY, UNKNOWN.". For example the "NO
ANSWER" call will leave a 44byte wav file in my ${RECDIR}
How can I record only the calls with the disposition of "ANSWERED"?
May be I should run a cronjob to clean up the 44byte file after it's
been created? Is there a better way?
Thanks.
Gao
--
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
kevin.larsen at pionee... Guest
|
Posted: Mon Sep 15, 2014 4:51 pm Post subject: [asterisk-users] Record ANSWERED call |
|
|
Quote: | The problem is it records all incoming calls include those with the
disposition of "NO ANSWER, FAILED, BUSY, UNKNOWN.". For example the "NO
ANSWER" call will leave a 44byte wav file in my ${RECDIR}
How can I record only the calls with the disposition of "ANSWERED"?
May be I should run a cronjob to clean up the 44byte file after it's
been created? Is there a better way?
|
I would probably add a line in my hangup (h) extension that does an execif to delete the file if the disposition is not equal to "ANSWERED". |
|
Back to top |
|
|
cursor at telecomabmex... Guest
|
Posted: Mon Sep 15, 2014 10:40 pm Post subject: [asterisk-users] Record ANSWERED call |
|
|
On 2014-09-15 16:45, Gao wrote:
Quote: | Hi,
I am using this dialplan to record incoming calls:
.....
exten => 3331122,n,Set(MONITOR_FILE=${RECDIR}/${UNIQUEID})
exten => 3331122,n,MixMonitor(${MONITOR_FILE}.wav,b)
exten => 3331122,n,GoSub(stdexten(${Ext1007}))
exten => 3331122,n,Voicemail(1007@default,)
exten => 3331122,n,Hangup()
The problem is it records all incoming calls include those with the
disposition of "NO ANSWER, FAILED, BUSY, UNKNOWN.". For example the
"NO ANSWER" call will leave a 44byte wav file in my ${RECDIR}
How can I record only the calls with the disposition of "ANSWERED"?
|
The b option should only record bridged channels, so only connected
calls should be recorded:
b: Only save audio to the file while the channel is bridged.
NOTE: Does not include conferences or sounds played to each bridged
party
NOTE: If you utilize this option inside a Local channel, you must
make sure the Local channel is not optimized away. To do this, be
sure
to call your Local channel with the '/n' option. For example:
Dial(Lo
cal/start@mycontext/n)
--
Telecomunicaciones Abiertas de México S.A. de C.V.
Carlos Chávez
dCAP #1349
+52 (55)9116-91161
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
gao at pztop.com Guest
|
Posted: Tue Sep 16, 2014 6:26 pm Post subject: [asterisk-users] Record ANSWERED call |
|
|
On 14-09-15 08:41 PM, Carlos Chavez wrote:
Quote: | On 2014-09-15 16:45, Gao wrote:
Quote: | Hi,
I am using this dialplan to record incoming calls:
.....
exten => 3331122,n,Set(MONITOR_FILE=${RECDIR}/${UNIQUEID})
exten => 3331122,n,MixMonitor(${MONITOR_FILE}.wav,b)
exten => 3331122,n,GoSub(stdexten(${Ext1007}))
exten => 3331122,n,Voicemail(1007@default,)
exten => 3331122,n,Hangup()
The problem is it records all incoming calls include those with the
disposition of "NO ANSWER, FAILED, BUSY, UNKNOWN.". For example the
"NO ANSWER" call will leave a 44byte wav file in my ${RECDIR}
How can I record only the calls with the disposition of "ANSWERED"?
|
The b option should only record bridged channels, so only connected calls should be recorded:
b: Only save audio to the file while the channel is bridged.
NOTE: Does not include conferences or sounds played to each bridged
party
| I have this b options in MixMonitor
Quote: | NOTE: If you utilize this option inside a Local channel, you must
make sure the Local channel is not optimized away. To do this, be sure
to call your Local channel with the '/n' option. For example: Dial(Lo
cal/start@mycontext/n)
| What is the /n option? Is it the same of:
- "n(delete): (Asterisk 1.6) If delete is 0 or not specified, delete the privacy manager introduction if the caller hangs up before the call is answered. If set to 1, delete the recording even if the call is answered."
- (Copied from voip-info.org)
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|