Last update: 4 January 2013
Both DID and outgoing calls work. However, in order for the outgoing calls to work one must set From: "XXXXXXXXXX". That does not seem to be achievable with the gateway params/vars (at least I could not find the way), so dialplans need to set some vars.
It is possible that only one is enough.
I tried playing with gateway caller-id-in-from without any success.