[Freeswitch-users] originate_disposition
Michael Collins
msc at freeswitch.org
Fri Oct 28 10:24:15 MSD 2011
How about the trick that Jay Binks added for scenarios not unlike this one?
http://wiki.freeswitch.org/wiki/Channel_Variables#transfer_on_fail
-MC
On Thu, Oct 27, 2011 at 1:33 PM, Madovsky <infos at madovsky.org> wrote:
> **
> Afer hours of test I didn' succeed how
> to catch the result of originate_disposition
>
> --------
>
> I have this extensions in my dialplan
>
> <extension name="internal_test">
> <condition field="${sip_to_uri}"
> expression="^(999\d{10})@$${domain}$">
> <action inline="true" application="set"
> data="nibble_account="/>
> <action inline="true" application="set"
> data="nibble_rate="/>
> <action inline="true" application="set"
> data="dialed_extension=$1"/>
> </condition>
> <condition field="${from_admin_services}"
> expression="^true$" break="never">
> <action application="set"
> data="ignore_early_media=true"/>
> <action application="set"
> data="hangup_after_bridge=false"/>
> <action application="set"
> data="continue_on_fail=true"/>
> <action application="bridge"
> data="{sip_append_audio_sdp='a=rtpmap:0
> PCMU/8000',sip_invite_domain=${sip_from_host},nibble_account=,nibble_rate=,origination_caller_id_name=${caller_id_name},origination_caller_id_number=${caller_id_number,}}user/${dialed_extension}"/>
> </condition>
> </extension>
> <extension name="internal_test_tools">
> <condition field="${originate_disposition}"
> expression="^SUBSCRIBER_ABSENT$" break="on-true">
> <action application="phrase"
> data="bad_ob_prepaid_dest"/>
> <action application="transfer"
> data="ob_prepaid_call XML features"/>
> <action application="info"/>
> </condition>
> <condition field="${cond(expr(${originate_disposition} !=
> NORMAL_CLEARING) ? YES : NO)}" expression="^YES$"/>
> <condition field="${cond(expr(${originate_disposition} !=
> SUBSCRIBER_ABSENT) ? YES : NO)}" expression="^YES$">
> <action application="ring_ready"/>
> <action application="sleep" data="2000"/>
> <action application="answer"/>
> <action application="sleep" data="1400"/>
> <action application="voicemail" data="default
> $${domain} ${dialed_extension}"/>
> </condition>
> </extension>
>
> -----------
>
>
> I tried to merge it in one extension without success also.
> where is the trick ? :)
>
> Thanks
>
> Franck
>
>
>
> 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/20111027/baee54ec/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list