Asterisk 11 - gtalk integration behind NAT?

I have successfully installed Asterisk 11. It works fine, but there is a problem with the Gtalk integration.
This problem may occur with clients that are behind NAT, server Asterisk I get the following message from google:


<— XMPP received from ‘google’ —>
<candidate name=“rtp” address=“172.16.12.199” port=“35748” preference=“1” username=“u0xF65G8h21ORauz” protocol=“udp” generation=“0” password=“xYXn2V6Wq1EEm04k” type=“local” network=“wlan0”/>


Actually Asterisk does not understand where to direct rtp stream, because It does not receive information about the white ip address where to send the call.

In prior Asterisk versions, I had to have the line “externip” in the [general] section of gtalk.conf for it to work properly.

I googled this problem, and found many questions like this, but no one solution.
For example on old asterisk forums


Extension.conf:
[incoming-motif]
exten => s,1,NoOp()
;exten => s,n,Answer()
exten => s,n,Wait(2)
;exten => s,n,SendDTMF(1)
exten => s,n,Dial(SIP/testclient,20)
;exten => s,n,Playback(demo-congrats)

motif.conf:
[default]

[google]
transport=google-v1
disallow=all
allow=ulaw
context=incoming-motif
maxicecandidates = 10
maxpayloads = 30
accountcode=jingle
connection=google

rtp.conf:
[general]
rtpstart=10000
rtpend=20000
icesupport=yes
stunaddr:19302=stun.l.google.com

xmpp.conf:
[google]
type=client
serverhost=talk.google.com
username=voip@gmail.com
secret=igh12it3Ei9Ievi
keepalive=yes
priority=25
port=5222
usetls=yes
usesasl=yes
status=available
timeout=5

sip.conf:
[testclient]
type= friend
secret=my_password
host=dynamic
context=local