<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>&lt;extension name=&quot;CallToPSTN&quot; &gt;<br>
   &lt;condition field=&quot;destination_number&quot;
expression=&quot;^(0\d+)$&quot; &gt;<br>
       &lt;action application=&quot;bridge&quot;
data=&quot;sofia/internal/$1@<span style="background:yellow">1.2.3.4</span>&quot;
/&gt;<br>
   &lt;/condition&gt;<br>
&lt;/extension&gt;<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>
&lt;action application=&quot;bridge&quot; data=&quot;sofia/internal/$1@<span style="background:#ffff33">6.7.8.9</span>&quot; /&gt;<br>
<br>
however, i don&#39;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>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>

<span style="color:#1f497d">thanks a
lot!<br><br>Regards,<br>Charles<br>
</span>