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?