Play a beep every 15 seconds while call in progress.

dclauson
Posts: 7
Member Since:
2007-09-12

We record all of our calls and for certain states, must abide by FCC guidelines to notify all parties on the call that it is being monitored. While we are currently notifying everyone that the call is recorded, that can be cumbersome on outgoing calls.

We'd like to configure Trixbox to play a tone in the background every 15 seconds to indicate that the call is being recorded. This will satisfy our FCC requirement. We are using a third party SIP recording software from Telrex (CallRex) which monitors SIP traffic and records the calls, so we aren't using the integrated Trixbox call recording features.

How can we play back a beep every few seconds during all active calls or during calls for certain trunks or outbound routes?

Thank you!
Drew



jfinstrom
Posts: 2008
Member Since:
2007-03-07
http://www.voip-info.org/wiki

http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Monitor

Example 3: Play beeping sound during recording
If you want peep every 15s, you should do

exten => _X.,1,Set(LIMIT_WARNING_FILE=beep)
exten => _X.,2,Dial(Local/mixmoncontext/#{EXTEN}||L(36000000:36000000:15000)\n)

--



dclauson
Posts: 7
Member Since:
2007-09-12
Thank you for the info!

Thank you for the info! Where would I insert this into the config files and dial plan?
Thanks!
Drew



nttranbao
Posts: 189
Member Since:
2008-02-16
Use FREEPBX settings

dclauson, to play "warning" on ALL outgoing calls, you can do the following:

Go to FreePBX -> General Settings -> "Asterisk Outbound Dial command options", and add this line in:

L(3600000:300000)

So your settings now will look like: tTWwL(3600000:300000) or similar

The only thing I dont figure out at the moment is to set Set(LIMIT_WARNING_FILE=beep) for all calls. Maybe you can try and see for yourself.

Bao Nguyen

--

----------------------
IT/VOIP consultancy, VOIP eStore, Support Forum
Bao Nguyen IT Co., Ltd.
http://www.baonguyen.vn
WE MAKE IT



dclauson
Posts: 7
Member Since:
2007-09-12
Resolution

Thank you for the info. With your help and some extra research, I have found I needed to do the following:

1. Go to FreePBX -> General Settings -> "Asterisk Outbound Dial command options", and add this to the entry: L(36000000:36000000:15000)

2. Add the following three lines to the extensions_custom.conf file, in the from-internal-custom context:
exten => _X.,1,Set(LIMIT_WARNING_FILE=beep)
exten => _X.,2,Set(LIMIT_PLAYAUDIO_CALLER=yes)
exten => _X.,3,Set(LIMIT_PLAYAUDIO_CALLEE=yes)

This will accomplish playing back the beep for the caller and callee every 15 seconds.

Thank you!



nttranbao
Posts: 189
Member Since:
2008-02-16
Great solution.

Thank you for letting us know how you accomplish it. Very informative and useful.

Cheers,

Bao Nguyen.

--

----------------------
IT/VOIP consultancy, VOIP eStore, Support Forum
Bao Nguyen IT Co., Ltd.
http://www.baonguyen.vn
WE MAKE IT



nttranbao
Posts: 189
Member Since:
2008-02-16
Attention with this approach

hi dclauson, I have found out that once I added those 3 lines in extensions_custom.conf, users can not dial General Features Code. They all hear "can not dial this number....."

Just for your information.

--

----------------------
IT/VOIP consultancy, VOIP eStore, Support Forum
Bao Nguyen IT Co., Ltd.
http://www.baonguyen.vn
WE MAKE IT



dclauson
Posts: 7
Member Since:
2007-09-12
No solution to not dialing General Feature Codes at present

Thanks for letting me know - we haven't tried to duplicate this issue, but I'll try it out in the next few days and let you know if I experience it as well. I've heard of this before as I searched other forums for the solution. If you find a fix, please post it back and I will do likewise.

Thanks!
dclauson



hansenc
Posts: 5
Member Since:
2009-06-17
Does this apply to the

Does this apply to the Fonality branded pbx?

I can't seem to locate the correct config files.



nttranbao
Posts: 189
Member Since:
2008-02-16
It applies to "FreePBX" PBX.

It applies to "FreePBX" PBX.

--

----------------------
IT/VOIP consultancy, VOIP eStore, Support Forum
Bao Nguyen IT Co., Ltd.
http://www.baonguyen.vn
WE MAKE IT



SkykingOH
Posts: 9541
Member Since:
2007-12-17
What version of trixbox are

What version of trixbox are you running?

--

Scott

aka "Skyking"



nttranbao
Posts: 189
Member Since:
2008-02-16
Better solution

Hi dclauson,

In order to allow internal users to use Feature Codes, I have been spending time going down through the dialplan. And here is the solution that should work.

Add one more line , and this is what you need:

exten => _X.,1,Set(LIMIT_WARNING_FILE=beep)
exten => _X.,2,Set(LIMIT_PLAYAUDIO_CALLER=yes)
exten => _X.,3,Set(LIMIT_PLAYAUDIO_CALLEE=yes)
exten => _X.,n,Goto(from-internal-additional,${EXTEN},1) ; this line is needed for allowing users to dial Features Code

It works on my Trix. So you should give it a try, and let me know the result.

Note: this approach will skip these contexts:

ext-fax
ext-local-confirm
findmefollow-ringallv2
bad-number

--

----------------------
IT/VOIP consultancy, VOIP eStore, Support Forum
Bao Nguyen IT Co., Ltd.
http://www.baonguyen.vn
WE MAKE IT



nttranbao
Posts: 189
Member Since:
2008-02-16
Hi Scott, my version is

Hi Scott, my version is Trixbox 2.6.2.2.

--

----------------------
IT/VOIP consultancy, VOIP eStore, Support Forum
Bao Nguyen IT Co., Ltd.
http://www.baonguyen.vn
WE MAKE IT



nttranbao
Posts: 189
Member Since:
2008-02-16
Final solution

Hi,

If you want to have "beep every 15 seconds" and least affects to FreePBX dialplan, use the below instructions with extensions_custom.conf:

1. Add 4 lines under [from-internal-custom]
exten => _X.,1,Set(LIMIT_WARNING_FILE=beep)
exten => _X.,n,Set(LIMIT_PLAYAUDIO_CALLER=yes)
exten => _X.,n,Set(LIMIT_PLAYAUDIO_CALLEE=yes)
exten => _X.,n,Goto(custom-context-nttranbao,${EXTEN},1)

2. Add the custom context below. I copy them from FreePBX dialplan.

[custom-context-nttranbao]
include => ext-fax
include => ext-local-confirm
include => findmefollow-ringallv2
include => from-internal-additional
include => bad-number
; This causes grief with '#' transfers, commenting out for the moment.
; include => bad-number
exten => s,1,Macro(hangupcall)
exten => h,1,Macro(hangupcall)

Note: FreePBX might include other new contexts in the future, so you can trace down the dialplan, and add them into this.

If any troubles or problems, let me know.

Regards,

Bao Nguyen.

--

----------------------
IT/VOIP consultancy, VOIP eStore, Support Forum
Bao Nguyen IT Co., Ltd.
http://www.baonguyen.vn
WE MAKE IT



hansenc
Posts: 5
Member Since:
2009-06-17
guess the better question is

guess the better question is could this apply to the fonality branded phone system?



hansenc
Posts: 5
Member Since:
2009-06-17
Fonality ® Call Center

SkykingOH-

I'm unsure if you were asking me and i'm also unsure if trixbox and the fonality branded systems are somewhat the same but i'm running-
Fonality Call Center Edition v4.1.2



SkykingOH
Posts: 9541
Member Since:
2007-12-17
Hansenc - Yes I was asking

Hansenc -

Yes I was asking you, I wasn't sure what you meant by "Fonality Branded Product".

These instructions are for any CE release based on Asterisk 1.4

--

Scott

aka "Skyking"



mykroft
Posts: 143
Member Since:
2006-09-19
Where would I put the

Where would I put the requires exten lines to have the beep on incomming calls as well. above example only works for outbound.

If I add the outbound limit config to the inbound, every 15 seconds it starts telling me I have xxxx min left, instead of playing the beep file.

Thanks
Myk

--

Tony
aka MyKroFt



mykroft
Posts: 143
Member Since:
2006-09-19
Anyone have a idea please?

Anyone have a idea please?

--

Tony
aka MyKroFt



mykroft
Posts: 143
Member Since:
2006-09-19
Nobody? No wonder this

Nobody?

No wonder this distro is slowly dieing

--

Tony
aka MyKroFt



Orb
Posts: 7
Member Since:
2007-07-11
This is great. Any

This is great. Any suggestions on what I need to do to only play the beep on recorded calls. I know the OP said he records ALL calls, but we record all calls only from select phones, and then ON DEMAND from others. Additionally, I would like to have the tone played on incoming and outgoing.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.