[Freeswitch-users] Detecting originate failures from dialplan

David Villasmil Govea david.villasmil at gmail.com
Wed Jan 14 20:16:06 MSK 2015


take a look at "continue_on_fail":


On Wed, Jan 14, 2015 at 6:05 PM, Oleg Stolyar <olegstolyar at gmail.com> wrote:

> Hi guys,
>
> I have a line like this in my dialplan:
>
> <action inline="true" application="set"
> data="api_result=${originate(sofia/external/<phone number>@2.3.4.5:5060
> <extension> XML <profile>
>
> How can I know if the originate failed?  For example the number is
> unreacheable or invalid or the trunk is down.  In this case the <extension>
> will not be executed.
>
> It seems that my dialplan continues to execute even if originate failed
> but is there something I can do to check for that?
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> 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
>



-- 
DVG

-- 
Imagination is more important than knowledge
Albert Einstein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150114/4ee14514/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list