How do I export my iPhone's call logs? How can I get export the call log (incoming and outgoing calls) from my iPhone, preferably as a CSV file?

I found


MobileLog Jailbreak needed, $9.99
PhoneView $19.95
calLog Doesn't work with iOS 5, $9.99


but none is free and/or open source and none offers a command line interface to automate the process.
How about iPhone Call List?  (You can download a free copy in the link)  

I haven't tried it myself yet (I'll as soon as I get home), but it seems the app you're looking for!


  iPhone call list to Mac Transfer fully support latest iOS 4.2, iPad,
  iPhone OS 3.1.3, iPod touch FW 3.1.3, iPod nano 5G FW 1.0 and iTunes
  10.1.