[Freeswitch-users] Dialplan Issue
Tihomir Culjaga
tculjaga at gmail.com
Fri Oct 2 05:38:30 PDT 2009
anyhow, this is how it works for me!
<include>
<context name="public">
<extension name="LNP">
<condition field="destination_number"
expression="(^300000)(.*)">
<action application="lnp_getprefix" data="in $2, out
reroutingalias"/>
<action application="redirect" data="sip:${
reroutingalias}@10.4.13.11:5060"/>
</condition>
</extension>
<extension name="LBS">
<condition field="destination_number"
expression="(^300010)(.*)">
<action application="lbs_getpublicphone" data="in
${caller_id_number}, in $2, out reroutingalias"/>
<action application="redirect" data="sip:${
reroutingalias}@10.4.13.11:5060"/>
</condition>
</extension>
<extension name="CPS">
<condition field="destination_number"
expression="(^300020)(.*)">
<action application="cps_verifyphone" data="in
${caller_id_number}, in $2, out radiusacc"/>
</condition>
<condition field="radiusacc" expression="1">
<action application="redirect" data="sip:${
caller_id_number}@10.4.13.11:5060"/>
<anti-action application="respond" data="403
Forbidden"/>
</condition>
</extension>
<extension name="ServiceLookup">
<condition field="destination_number" expression="(^300030)(.*)">
<action application="lookup_service_destination" data="in
${caller_id_number:6:16}, in ${caller_id_number:0:6}, in $2, in $
1, in ${network_addr}:5060, out red_contact, out authResult"/>
<action application="log" data="INFO ########################
ServiceLookup ########################\n"/>
<action application="log" data="INFO ########################
contact = '${red_contact}' ##############\n"/>
<action application="log" data="INFO ########################
CallerNum = '${caller_id_number:6:16}' ##########\n"/>
<action application="log" data="INFO ########################
RADIUS auth = '${authResult}' ##########\n"/>
<action application="execute_extension" data="doRedirect XML
public"/>
</condition>
</extension>
<extension name="doRedirect">
<condition field="destination_number" expression="^doRedirect$"/>
<condition field="${authResult}" expression="^0$|^60$">
<action application="log" data="INFO ########################
RADIUS auth OK!!!' ##########\n"/>
<action application="redirect" data="${red_contact}"/>
<anti-action application="log" data="INFO ########################
RADIUS auth NOK!! ##########\n"/>
<anti-action application="respond" data="403 Forbidden"/>
</condition>
</extension>
</context>
</include>
On Thu, Oct 1, 2009 at 6:18 PM, Shelby Ramsey <sicfslist at gmail.com> wrote:
> Just to confirm ... works like a champ.
>
> Thanks again!!!
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091002/7a726d6d/attachment-0002.html
More information about the FreeSWITCH-users
mailing list