title: Asterisk - Macro not available
body: <p>I need some help here.
  I try to configure dolibarr's plugin "Calling" on my asterisk.
  I need to configure my extensions.conf so that all incoming calls on my asterisk return information to my dolibarr in order to have call notifications...</p>
  
  <p>When I call from outside my softphone rings correctly, but as soon as I get off I get the following error message:</p>
  
  <pre><code>WARNING[3314][C-0000000d]: app.c:326 ast_app_exec_macro: Cannot run 'Macro(dolinotif)'.  The application is not available.
  </code></pre>
  
  <p>Here my <code>Extensions.conf</code> :</p>
  
  <pre><code>[Entrant] exten =&gt; s,1,Goto(dolibarr_notification,s,1) ;Redirection
  exten =&gt; _X.,1,NoOp()
  exten =&gt;  _X.,n,Set(__DOLI_CALLER=${CUT(CUT(SIP_HEADER(From),@,1),:, 2)})
  exten =&gt;  _X.,n,Set(__DOLI_CALLE=${CUT(CUT(SIP_HEADER(To),@,1),:, 2)})
  
  [macro-dolinotif]
  exten =&gt; s,1,SET(${CURL(https://url.com/htdocs/custom/calling/calling.php?account=${EXTEN}&amp;caller=${DOLI_CALLER}&amp;callee=${DOLI_CALLE}&amp;type=CONNECT&amp;callref=${DOLI_CALLER}&amp;version=1)})
  
  [dolibarr_notification]
  exten =&gt; s,1,SET(CALLERID(name)=${CURL(https://url.com/htdocs/custom/calling/calling.php?account=${USERNAME}&amp;caller=${DOLI_CALLER}&amp;callee=${DOLI_CALLE}&amp;type=SETUP&amp;callref=${DOLI_CALLER}&amp;version=1)})
  exten =&gt; s,n,Answer()
  exten =&gt; s,n,Dial(SIP/MY_NUMBER,60,etTrM(dolinotif))
  exten =&gt; h,1,SET(CALLERID(name)=${CURL(https://url.com/htdocs/custom/calling/calling.php?account=${USERNAME}&amp;caller=${DOLI_CALLER}&amp;callee=${DOLI_CALLE}&amp;type=RELEASE&amp;callref=${DOLI_CALLER}&amp;version=1)})
  exten =&gt; h,2,Hangup(16)
  </code></pre>
  
  <p>I'm a begineer on Asterisk, maybe it's just a dumb problem... If you need more informations ask me.</p>
  
  <p>Thank a lot.</p>