Richard<div><br></div><div><br></div><div><span style="background-color:rgb(255,255,255)"><span class="hps" style="font-family:arial,sans-serif">I tried</span><span style="font-family:arial,sans-serif"> </span><span class="hps" style="font-family:arial,sans-serif">this, but</span><span style="font-family:arial,sans-serif"> </span><span class="hps" style="font-family:arial,sans-serif">it did not work</span><span style="font-family:arial,sans-serif">.</span><span style="font-family:arial,sans-serif"> </span><span class="hps" style="font-family:arial,sans-serif">What can be the</span><span style="font-family:arial,sans-serif"> </span><span class="hps" style="font-family:arial,sans-serif">problem?</span> </span><br clear="all">
<div>[PABX]</div><div>exten =&gt; _x.,1,Proceeding()</div><div>same =&gt; n,GotoIf($[&quot;${CHANNEL(reversecharge)}&quot; =&quot;-1&quot;]?allow:block)</div><div>same =&gt; n(allow),Dial(SIP/1584,30,tT))</div><div>same =&gt; n(block),Hangup()</div>
</div><div><br></div><div>Att,<br>Rafael Saraiva<br><br><br>
<br><br><div class="gmail_quote">2012/2/15 Richard Mudgett <span dir="ltr">&lt;<a href="mailto:rmudgett@digium.com">rmudgett@digium.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
&gt; &gt; How to block collect calls on ISDN trunk?<br>
&gt;<br>
&gt; You need Asterisk v1.8 or later and check the value of<br>
&gt; CHANNEL(reversecharge) in your dialplan.<br>
&gt;<br>
&gt; <a href="https://wiki.asterisk.org/wiki/display/AST/Function_CHANNEL" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Function_CHANNEL</a><br>
<br>
&gt; Can you give me an example of how to use this function?<br>
<br>
exten =&gt; 100,1,Proceeding()<br>
same =&gt; n,GotoIf($[&quot;${CHANNEL(reversecharge)}&quot; = &quot;-1&quot;]?allow:block)<br>
same =&gt; n(allow),Dial()<br>
same =&gt; n(block),Hangup()<br>
<br>
Please note that CHANNEL(reversecharge) is only valid on ISDN channels.<br>
<br>
Richard<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br></div>