2. The new 'Out Dial Plan' works the same as your default plan. It'd be just for dialing out, specified on your user id. nonoh is a provider I use for China call (nonoh.net). It can be any provider of your choice. You define this on the sip provider tab.
For international call (to China), it would be something like this (not tested, but just a general idea):
Reuse most of your existing plan to figure out the real number to dial, just change to:
instead of dailing gv all the time:
sys.Log "Calling #{num} via Google Voice"
sys.GoogleVoiceCall GV_USER, GV_PASS, CB_NUMBER, num, '.*', CB_NUMBER =~ /^1747/ ? 7 : 1, 30
it'd probably be:
if num =~ /^01186(d{9,})/ # call to China
sys.Dial('nonoh'); #or whatever provider you use for China
else
sys.GoogleVoiceCall(....); # use GV
end
HTH,