<p class="MsoNormal"><span style="color:#1f497d">Dear
friends,<br>
<br>
i have FS for PSTN outbound call using below dial plan, <br>
<br>
</span><extension name="CallToPSTN" ><br>
   <condition field="destination_number"
expression="^(0\d+)$" ><br>
       <action application="bridge"
data="sofia/internal/$1@<span style="background:yellow">1.2.3.4</span>"
/><br>
   </condition><br>
</extension><span style="color:#1f497d"><br>
<br>
While, now i need dynamically specify the outbound GW’s IP address according to
the return result of the external command before routing in the source code ,
e.g. if the external command return FS the IP address of OB GW <span style="background:#ffff33">6.7.8.9</span>, then <br>
<br>
<action application="bridge" data="sofia/internal/$1@<span style="background:#ffff33">6.7.8.9</span>" /><br>
<br>
however, i don't know which function i should call within the source code to
realize it, could anybody help to advise, </span></p>

<p class="MsoNormal"><span style="color:#1f497d"><span style>P.S. </span>i know there is existing module “mod_xml_curl”
can realize similar function, however, I could not use it for this case…</span></p>

<p class="MsoNormal"><span style="color:#1f497d"> </span></p>

<p class="MsoNormal"><span style="color:#1f497d">thanks a
lot!<br>
<br>
BR,<br>
Charles</span></p>