[Freeswitch-users] Freeswitch dialplan help

Steven Ayre steveayre at gmail.com
Tue Jun 7 22:12:15 MSD 2011


The dohangup would probably be more like:

<context name="dohangup">
    <extension name="dohangup">
        <condition field="${bridge_hangup_cause}" expression="^(*NO_ANSWER*)$"
break="on-true">
            <action application="hangup" data="*NORMAL_CIRCUIT_CONGESTION*
"/>
            <anti-action application="hangup"
data="${bridge_hangup_cause}"/>
        </condition>
    </extension>
</context>

-Steve



On 7 June 2011 17:53, Stephen Wilde <wstephen80 at gmail.com> wrote:

> I think that something like this can work (not tested by me):
>
> <context name="default">
>     <extension name="myextension">
>         <condition>
>             <action application="bridge" data="sofia/${Dialstring}"/>
>             <action application="transfer" data="dohangup XML dohangup"/>
>          </condition>
>     </extension>
> </context>
>
> <context name="dohangup">
>     <extension name="dohangup">
>         <condition field="${bridge_hangup_cause}" expression="^(*NO_ANSWER
> *)$" break="on-true">
>             <action application="hangup" data="*NORMAL_CIRCUIT_CONGESTION*
> "/>
>         </condition>
>         <condition>
>             <action application="hangup" data="${bridge_hangup_cause}"/>
>         </condition>
>     </extension>
> </context>
>
>
> Stephen
>
> On Tue, Jun 7, 2011 at 6:05 PM, awais nazir <awais-nazeer at hotmail.com>wrote:
>
>>  Hi
>>
>> I want to achieve a simple scenario , after attempting a bridge in my
>> dialplan if I get cause code 480, it should be converted to 503 to
>> originator.
>>
>> <action application="bridge" data="sofia/${Dialstring}"/>
>> <!--If
>>
>> ${hangup_cause} == "480" then ${hangup_cause}
>> =503
>> >
>>
>> Can somebody help here.
>>
>>
>> _______________________________________________
>> 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
>>
>>
>
> _______________________________________________
> 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/20110607/5843cb81/attachment.html 


More information about the FreeSWITCH-users mailing list