Asterisk --Record Incoming Calls

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.
dholingwAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

grbladesCommented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dholingwAuthor Commented:
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
grbladesCommented:
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.
dholingwAuthor Commented:
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  
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Voice Over IP

From novice to tech pro — start learning today.