Note that there are some explanatory texts on larger screens.

plurals
  1. POasterisk anti ex-girlfriend Dial plan?
    primarykey
    data
    text
    <p>I wrote simple dial plan in asterisk. This dial-plan target is to check caller-id of incoming call and for specific hangup :) !</p> <p>but this dial-plan hangup all incoming call with diffrent caller-id.<br> So what do i do? ;(</p> <pre><code> [general] static=yes writeprotect=yes autofallthrough=yes clearglobalvars=no priorityjumping=yes include "exten_gvars.inc" [macro-queue] exten =&gt; s, 1, Queue(${ARG1}) [default] exten =&gt; s, 1, Answer exten =&gt; s/9999, 2 ,Hangup exten =&gt; s, 2, BackGround(welcome) exten =&gt; s, 3, Macro(queue,operator) </code></pre> <p>Edit</p> <p>i change my dial plan to this but it not working, incoming call hangup after two beep(i know it occur cuz a mistake in my dial plan)!</p> <pre><code> [general] static=yes writeprotect=yes autofallthrough=yes clearglobalvars=no priorityjumping=yes #include "exten_gvars.inc" [macro-monitor] exten =&gt; s, 1, MixMonitor(${UNIQUEID}.wav) exten =&gt; s, 2, SetCIDName(${UNIQUEID}#${CALLERIDNAME},a) [macro-defaultLine] exten =&gt; s, 1, Macro(monitor) exten =&gt; s, 2, Dial(SIP/${ARG1},60,T) [macro-queue] exten =&gt; s, 1, Macro(monitor) exten =&gt; s, 2, Queue(${ARG1}) [inbound] exten =&gt; _XX, 1, Macro(defaultLine,${EXTEN}) [default] exten =&gt; 123,1,GotoIf($[${CALLERID(num)} = XX]?reject:allow) exten =&gt; 123,n(allow),Answer exten =&gt; 123,n,BackGround(welcome) exten =&gt; 123,n,Macro(queue,operator) exten =&gt; 123,n(reject),BackGround(WTF) exten =&gt; 123,n,Hangup() include =&gt; inbound </code></pre>
    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.
 

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