Are you connecting manually to the MMS APN before trying to send? As seen by the backtrace it fails with 'connection timed out' which means it can't connect to the MMSC in 20 seconds - can you ping that IP from the terminal? Noticed when you are connecting with proxy you are using proxyport "0", which seems very unlikely to be correct