I'l give it a shot this week as I have a couple of WAN connections here and plenty of hardware....
I think it will amount to something like this in the vars
<X-PRE-PROCESS cmd="exec-set" data="external_rtp_ip=curl -s ifconfig.co/>
<X-PRE-PROCESS cmd="exec-set" data="external_sip_ip=curl -s...