[Asterisk-Users] Record() help

Mauricio Pineda mauricio at secexp.com
Fri Nov 5 16:24:51 MST 2004


Hello again,

        Please disregard this email since I have mickeymoused a fix for this. I replaced the line #89 in apps/app_record.c th
at had:

if (!data || !ast_strlen_zero(data))

and made it:

if (!data || ast_strlen_zero(data))

and it now works fine. If I were a real programmer I'd be able to explain this.. !ast_strlen_zero(data) just didn't look righ
t to me because it's a double negative with ! and zero, so to me, the untrained eye it looked as (no data or not zero length)
.

Thanks!

-Mauricio

Mauricio Pineda babbled incoherently and said:
:: 
:: Hello all,
:: 
:: 	I've been trying to get the Record() feature working on my system so I can customize it to my needs, unfortunately, it seems that the format for the Record() command has changed a little, and I can't find the proper syntax. 
:: 
:: The reason I think the command has changed is because in every peiece of documentation I have found, the format is as follows:
:: 
:: exten => 2700,2,Record(/tmp/asterisk-recording:gsm)
:: 
:: However, when I use that command, this is what I get in asterisk:
:: 
::     -- Executing NoOp("SIP/1001-47ed", "") in new stack
::     -- Executing Goto("SIP/1001-47ed", "intern-post|2700|1") in new stack
::     -- Goto (intern-post,2700,1)
::     -- Executing Wait("SIP/1001-47ed", "1") in new stack
::     -- Executing Record("SIP/1001-47ed", "/tmp/asterisk-recording:gsm") in new stack
:: Nov  5 13:38:40 WARNING[557074]: app_record.c:90 record_exec: Record requires an argument (filename)
:: 
:: I have also tried to change the format to this:
:: 
:: exten => 2700,2,Record,(/tmp/asterisk-recording:gsm) ; Note the added comma between Record and (/tmp...)
:: 
:: But all I end up with in the logs is this:
:: 
:: Nov  5 13:43:59 WARNING[589842]: pbx.c:1320 pbx_extension_helper: No application 'Record,' for extension (intern-post, 2700, 2)
::   == Spawn extension (intern-post, 2700, 2) exited non-zero on 'SIP/1001-3e46'
::     -- Executing Macro("SIP/1001-3e46", "record-cleanup") in new stack
::     -- Executing SetVar("SIP/1001-3e46", "MONITORDIR=/var/spool/asterisk/monitor") in new stack
:: 
:: Any help would be greatly appreciated!
:: 
:: -Mauricio
:: 
:: -- 
:: 
:: "For three days after death hair and fingernails continue to grow but
:: phone calls taper off."
:: 		-- Johnny Carson
:: _______________________________________________
:: Asterisk-Users mailing list
:: Asterisk-Users at lists.digium.com
:: http://lists.digium.com/mailman/listinfo/asterisk-users
:: To UNSUBSCRIBE or update options visit:
::    http://lists.digium.com/mailman/listinfo/asterisk-users
:: 


-- 

The rule on staying alive as a forcaster is to give 'em a number or
give 'em a date, but never give 'em both at once.
		-- Jane Bryant Quinn



More information about the asterisk-users mailing list