Dynamic specify the outbound GW within source code
fieldpeak
fieldpeak at gmail.com
Sun Jan 8 10:42:05 CET 2012
Dear friends,
i have FS for PSTN outbound call using below dial plan,
<extension name="CallToPSTN" >
<condition field="destination_number" expression="^(0\d+)$" >
<action application="bridge" data="sofia/internal/$1 at 1.2.3.4" />
</condition>
</extension>
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 6.7.8.9, then
<action application="bridge" data="sofia/internal/$1 at 6.7.8.9" />
however, i don't know which function i should call within the source code
to realize it, could anybody help to advise,
P.S. i know there is existing module “mod_xml_curl” can realize similar
function, however, I could not use it for this case…
thanks a lot!
BR,
Charles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20120108/cdfe0862/attachment.html>
More information about the Freeradius-Users
mailing list