Asterisk Recording Problem

Hi,

I can not record the agent calls.
My linux is Debian and I installed asterisk 1.6.2.0

After installation of Asterisk there was no /var/spool/asterisk folder.
I created /var/spool/asterisk/monitor/ folders.

I set the following settings:

in sip.conf file;

record_out=Always
record_in=Always

and in extensions.conf file;

exten => _X.,1,Set(CALLFILENAME=${EXTEN:1}-${TIMESTAMP})
exten => _X.,n,Monitor(wav,${CALLFILENAME},m)
exten => _X.,n,Dial(SIP/${EXTEN}@MyOutboundSIP,wW)

in agents.conf file;

recordformat=gsm

in features.conf file;

automon => *1

Any help will be appreciated kindly.
Thanks

What is the output of /var/log/asterisk/full (you need to enable it in logger.conf) ?

I just enabled and made a call.
Here is the log:

[Oct 9 15:19:56] NOTICE[3263] loader.c: 1 modules will be loaded.
[Oct 9 15:19:56] NOTICE[3263] cdr.c: CDR simple logging enabled.
[Oct 9 15:19:56] NOTICE[3263] loader.c: 161 modules will be loaded.
[Oct 9 15:19:56] WARNING[3263] res_config_ldap.c: No directory user found, anonymous binding as default.
[Oct 9 15:19:56] ERROR[3263] res_config_ldap.c: No directory URL or host found.
[Oct 9 15:19:56] NOTICE[3263] res_config_ldap.c: Cannot load LDAP RealTime driver.
[Oct 9 15:19:56] ERROR[3263] res_config_pgsql.c: PostgreSQL RealTime: Failed to connect database asterisk on 127.0.0.1:
[Oct 9 15:19:56] WARNING[3263] res_config_pgsql.c: PostgreSQL RealTime: Couldn’t establish connection. Check debug.
[Oct 9 15:19:56] NOTICE[3263] config.c: Registered Config Engine pgsql
[Oct 9 15:19:56] NOTICE[3263] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Oct 9 15:19:56] NOTICE[3263] config.c: Registered Config Engine curl
[Oct 9 15:19:56] NOTICE[3263] pbx_ael.c: Starting AEL load process.
[Oct 9 15:19:56] NOTICE[3263] ael.y: Note: In asterisk.conf, in the [compat] section, the app_set is set to 1.6 or greater. The Set() function no longer removes double quotes from the value. If this is a surprise to you, you can set app_set to 1.4.
[Oct 9 15:19:56] NOTICE[3263] pbx_ael.c: AEL load process: parsed config file name ‘/etc/asterisk/extensions.ael’.
[Oct 9 15:19:56] NOTICE[3263] pbx_ael.c: AEL load process: checked config file name ‘/etc/asterisk/extensions.ael’.
[Oct 9 15:19:56] NOTICE[3263] pbx_ael.c: AEL load process: compiled config file name ‘/etc/asterisk/extensions.ael’.
[Oct 9 15:19:56] NOTICE[3263] pbx_ael.c: AEL load process: merged config file name ‘/etc/asterisk/extensions.ael’.
[Oct 9 15:19:56] NOTICE[3263] pbx_ael.c: AEL load process: verified config file name ‘/etc/asterisk/extensions.ael’.
[Oct 9 15:19:56] WARNING[3263] pbx.c: Unable to register extension ‘_X.’, priority 1 in ‘my-phones’, already in use
[Oct 9 15:19:56] WARNING[3263] pbx.c: Unable to register extension ‘_X.’, priority 2 in ‘my-phones’, already in use
[Oct 9 15:19:56] VERBOSE[3263] logger.c: SIP channel loading…
[Oct 9 15:19:56] WARNING[3263] chan_sip.c: Unknown insecure mode ‘very’ on line 1040
[Oct 9 15:19:56] NOTICE[3263] chan_sip.c: The ‘username’ field for sip peers has been deprecated in favor of the term ‘defaultuser’
[Oct 9 15:19:56] WARNING[3263] chan_sip.c: Unknown insecure mode ‘very’ on line 1040
[Oct 9 15:19:56] WARNING[3263] translate.c: plc_samples 160 format f
[Oct 9 15:19:56] NOTICE[3277] chan_sip.c: Peer ‘MyOutboundSIP’ is now Reachable. (12ms / 2000ms)
[Oct 9 15:19:56] WARNING[3263] utils.c: trying to reset empty pool
[Oct 9 15:19:56] WARNING[3263] utils.c: trying to reset empty pool
[Oct 9 15:19:56] WARNING[3263] utils.c: trying to reset empty pool
[Oct 9 15:21:17] NOTICE[3277] chan_sip.c: Received SIP subscribe for peer without mailbox: 2000
[Oct 9 15:22:17] NOTICE[3277] chan_sip.c: Received SIP subscribe for peer without mailbox: 2000
[Oct 9 15:22:45] NOTICE[3277] chan_sip.c: Received SIP subscribe for peer without mailbox: 2001
[Oct 9 15:23:45] NOTICE[3277] chan_sip.c: Received SIP subscribe for peer without mailbox: 2001
[Oct 9 15:24:18] NOTICE[3277] chan_sip.c: Received SIP subscribe for peer without mailbox: 2000

Where did you get:

record_out=Always
record_in=Always

from ? I saw it and assumed that it was something that I didn’t know about (as I don’t know everything :wink: ). Could it be that you can not use it in 1.6.X ?

I don’t remember:)
I’m trying what I found…

I removed that part.
And I also change Dial application like this:

exten => _X.,1,Dial(SIP/${EXTEN}@MyOutboundSIP)

And tried again. Here is the last log:

[Oct 9 17:15:37] NOTICE[4027] chan_sip.c: Received SIP subscribe for peer without mailbox: 2000
[Oct 9 17:15:37] VERBOSE[4027] logger.c: == Using SIP RTP CoS mark 5
[Oct 9 17:15:37] VERBOSE[4055] logger.c: – Executing [2000@my-phones:1] e[1;36;40mDiale[0;37;40m(“e[1;35;40mSIP/2001-0a158c78e[0;37;40m”, “e[1;35;40mSIP/2000,20e[0;37;40m”) in new stack
[Oct 9 17:15:37] VERBOSE[4055] logger.c: == Using SIP RTP CoS mark 5
[Oct 9 17:15:37] VERBOSE[4055] logger.c: – Called 2000
[Oct 9 17:15:38] VERBOSE[4055] logger.c: – SIP/2000-0a18d6e8 is ringing
[Oct 9 17:15:39] VERBOSE[4055] logger.c: – SIP/2000-0a18d6e8 answered SIP/2001-0a158c78
[Oct 9 17:15:39] VERBOSE[4055] logger.c: – Native bridging SIP/2001-0a158c78 and SIP/2000-0a18d6e8
[Oct 9 17:15:45] VERBOSE[4055] logger.c: == Spawn extension (my-phones, 2000, 1) exited non-zero on ‘SIP/2001-0a158c78’
[Oct 9 17:15:47] NOTICE[4027] chan_sip.c: Received SIP subscribe for peer without mailbox: 2001

Try putting in MixMonitor in the dial plan and see if it records that way. I have a feeling that
record_out=Always
record_in=Always
does not work (atleast with 1.6.X.) I will try it on a 1.4.X box and see if it works.

Hi

record_out=Always
record_in=Always

I think these are varibles that are set in trixbox to enable recordings.

Ian

Ok. That would explain why I have never seen it before.

Well, I couldn’t figure out it so I setup AsteriskNOW and it works…

Thanks for your help.