Can you try Asterisk calling card platform? I use SER as a proxy server, all
phones connected to it and uses asterisk as a gateway to the pstn and GSM
network. So far the Asterisk calling card works fine.
http://www.voip-info.org/tiki-print.php?page=ASTCC