I made a slight change to record_file so you can pass an optional format variable (right now it''s hard coded to gsm). When I was testing it I ran into a problem because the directory I had created was not owned by asterisk. The function failed but since I wasn''t checking the return value it took me a while to figure out what the deal was. What should be the overall strategy for dealing with these kinds of issues? Should we raise an exception? Should the function return a boolean value? Right now the function is not really looking at the result and trying to figure out if something went wrong. Should it?