?
Solved

Asterisk --Record Incoming Calls

Posted on 2006-04-17
4
Medium Priority
?
4,699 Views
Last Modified: 2012-08-14
First things first:

Running Asterisk 2.8
SipuraSPA 3000

I’m trying to get inbound calls to record automatically. In AMP/ FreePBX, I set my wireless extension (EXT 204) to Automatically record all Inbound and Outbound calls. Well.. All outbound calls are recorded, but inbound calls are ignored, unless I do a *1 to manually activate recording.  

I can call To /from any “internal” extension, including the wireless, and inbound recording works perfectly.  So… Something’s messing up inbound recording when a call comes in from the outside world.   The only place I see this configured is in sip_additional.conf.  Here are the snippets that manage the SPA3000 and my Wireless extension.  Yeah, for testing purposes, I’ve set them all to ‘always’.  

[99]
username=99
type=friend
secret=1234
record_out=Always
record_in=Always
qualify=no
port=5062
nat=never
mailbox=99@device
host=dynamic
dtmfmode=rfc2833
context=from-internal
canreinvite=no
callerid=PSTN <99>


[199]
username=199
type=friend
secret=1234
record_out=Always
record_in=Always
qualify=no
port=5061
nat=never
mailbox=199@device
host=dynamic
dtmfmode=rfc2833
context=from-internal
canreinvite=no
callerid=PSTN <199>


[204]
username=204
type=friend
secret=1234
record_out=Always
record_in=Always
qualify=yes
port=5060
nat=yes
mailbox=204@device
host=dynamic
dtmfmode=rfc2833
context=from-internal
canreinvite=no
callerid=Wireless <204>


[pstn]
username=asterisk
type=peer
secret=1234
port=5061
insecure=very
host=192.168.1.102
fromuser=asterisk
dtmfmode=rfc2833
context=from-internal
auth=md5

Everything looks pretty normal here, so why is Asterisk failing to automatically activate recording for calls coming from the outside world?  Something needs to be added somewhere, but where?

Would really appreciated the insight,

D.
0
Comment
Question by:dholingw
  • 2
  • 2
4 Comments
 
LVL 36

Accepted Solution

by:
grblades earned 2000 total points
ID: 16472441
I am nor familiar with that way of recording calls. Are you running asterisk@home?
There is no asterisk 2.8. version 1.2.7.1 is the latest.

Have a look at http://www.voip-info.org/wiki/view/MixMonitor
I would normally incorporate this into the dialplan.
Note though that the bug has only just been fixed so you will need the latest version of asterisk if you wish to use it.
0
 

Author Comment

by:dholingw
ID: 16472622
Yes, after many hours of searching, I finally ran into that and found a way to make it work quite nicely.  Yes, the @home settings still appear to have some problems with inbound calls, although the problem seems isolated to those coming from the outside world.  I suspect something is being skipped, but who knows…

Also created a little script to convert the wav files to MP3 each morning at 3:00 AM, then nuke the .wav files.  Although I did eventually solve the problem, I did ask for help and you did provide an excellent solution, so the points are yours.  

Yes, I’m running 1.2.6, but still find it confusing, as this is asterisk@home 2.8-beta.  So… Officially, FreePbx 2.8-beta, running on top of Asterisk 1.2.6.  Heh… I’ll try to refer to the official Asterisk version in future cases :)  


Many thanks Grblades,

Dave
0
 
LVL 36

Expert Comment

by:grblades
ID: 16472714
I imaging at 3am you wont have any calls so the extra cpu load by converting the files wont be an issue. However I would advise that you use the 'nice' command to lower the priority of the program you run to convert the files to mp3 format.
0
 

Author Comment

by:dholingw
ID: 16472821
You’re 100% right, but because it’s a dedicated box, and pretty steamy at that, plus it’s only my small handful of calls, I didn’t use it this time.  On any other host, I most certainly would though.  

Thanks again,

Dave  
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
Why do some people recommend buying business VoIP from an ISP? What are the benefits to my company? What are the costs?
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question