uuid_record not working
-----------------------
Key: DP-15
URL: http://jira.freeswitch.org/browse/DP-15
Project: Dialplan Modules
Issue Type: Bug
Environment: Ubuntu Hardy 32-bit
Reporter: Mark Sobkow
Assignee: Anthony Minessale II
Priority: Major
When I try to record a call as follows, I get an error from Freeswitch. With svn16569, it would do the first recording request and error out on subsequent requests for a long-lived operator session that gets bridged to multiple customers over the course of a day. Now it's refusing to record even the first session with svn16972.
recordCall( Operator ) ->
{ ok, DialerSpoolMsgDir } = mnesia_sofia:getSofiaConfigValue( dialerSpoolMsgDir ),
{ ok, DialerSpoolMsgPrefix } = mnesia_sofia:getSofiaConfigValue( dialerSpoolMsgPrefix ),
{ ok, DialerSpoolMsgType } = mnesia_sofia:getSofiaConfigValue( dialerSpoolMsgType ),
{{ Year, Month, Day }, { Hour, Min, Sec }} = erlang:localtime(),
Timestamp = lists:flatten(
io_lib:format( "~4.10.0B~2.10.0B~2.10.0B_~2.10.0B~2.10.0B~2.10.0B",
[Year, Month, Day, Hour, Min, Sec] ) ),
FullFileName = DialerSpoolMsgDir ++ "/"
++ DialerSpoolMsgPrefix ++ "-" ++ Timestamp ++ "." ++ DialerSpoolMsgType,
syslog:info( "pbx_bridge:recordCall() Recording call to ~s~n", [FullFileName] ),
RecordResult = pbx:api( uuid_record, Operator#pbx_operator_registry.operator_uuid ++ " start " ++ FullFileName ),
syslog:debug( "pbx_bridge:recordCall() RecordResult is ~p~n", [RecordResult] ),
Operator#pbx_operator_registry{ record_file_name=FullFileName }.
2010-03-12 17:20:20 DEBUG <0.645.0>: pbx_bridge:bridgeOperatorAndCustomer() Record all calls is true
2010-03-12 17:20:20 INFO <0.645.0>: pbx_bridge:recordCall() Recording call to /var/spool/pursuit/pursuit-20100312_172020.gsm
2010-03-12 17:20:20 DEBUG <0.645.0>: pbx:api() Sent to Pid <0.894.0>
2010-03-12 17:20:20 DEBUG <0.645.0>: pbx_bridge:recordCall() RecordResult is {error,
"-ERR Cannot record session!\n"}