Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There is currently no way to do that without removing the call file from your spooling directory (usually: /var/spool/asterisk/outgoing).</p> <p>What you need to do (if you need to kill the retry attempts), is:</p> <pre><code>rm /var/spool/asterisk/outgoing/&lt;callfilename&gt; </code></pre> <p>Another way to handle this is pragmatically, via your dialplan callbacks. For instance:</p> <p>Let's say your callfile looks like the following:</p> <pre><code>Channel: SIP/flowroute/18002223333 Context: my_code Extension: s Priority: 1 MaxRetries: 3 </code></pre> <p>And you want to make your callfile retry the call two times (at most). You could write your dialplan code (to implement <code>my_code</code>) as follows:</p> <pre><code>[my_code] exten =&gt; s,1,ExecIf($[ !${DB_EXISTS(call/tries)} ]?Set(DB(call/tries)=0)) exten =&gt; s,n,Set(DB(call/tries)=${MATH(${DB(call/tries)}+1,i)}) exten =&gt; s,n,NoOp(your code here...) exten =&gt; s,n,GotoIf($[ ${DB(call/tries)} &gt; 1 ]?end,1) exten =&gt; end,1,DBDel(call/tries) exten =&gt; end,n,System(rm /var/spool/asterisk/outgoing/&lt;name&gt;) exten =&gt; end,n,Hangup() </code></pre> <p>This will store the state of the callfile in the Asterisk database, and do some manual counting to verify that the call has been attempted &lt; 3 times (if not, then it'll hangup).</p> <p>This method is obviously not optimal (as it's much easier to control this behavior from the application you wrote which actually spools the callfile), but it will work.</p> <p>Hopefully that helps!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload