<span style="background-color:rgb(255,255,255)"><span class="hps" style="font-family:arial,sans-serif">Which version</span><span style="font-family:arial,sans-serif"> </span><span class="hps" style="font-family:arial,sans-serif">do you recommend</span><span class="" style="font-family:arial,sans-serif">?</span><span style="font-family:arial,sans-serif"> </span><span class="hps" style="font-family:arial,sans-serif">Mine is</span><span style="font-family:arial,sans-serif"> </span><span class="hps" style="font-family:arial,sans-serif">1.4.12</span><span class="" style="font-family:arial,sans-serif">.</span> </span><div>
<br clear="all">Att,<br>Rafael Saraiva<br><br><br>
<br><br><div class="gmail_quote">2012/2/17 Danny Nicholas <span dir="ltr"><<a href="mailto:danny@debsinc.com">danny@debsinc.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">From what I read, your libpri may be out of date.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] <b>On Behalf Of </b>Rafael dos Santos Saraiva<br>
<b>Sent:</b> Friday, February 17, 2012 11:21 AM<br><b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br><b>Subject:</b> Re: [asterisk-users] Block Collect Calls on ISDN trunk<u></u><u></u></span></p><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal">The value is always -1. I must enable something in chan_dahdi to pass the correct value?<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">
++++++<u></u><u></u></p></div><div><div><p class="MsoNormal">[PABX]<u></u><u></u></p></div><div><p class="MsoNormal">exten=>_X.,1,Gotoif([${CHANNEL(reversecharge)} = -1] ?entrada,${EXTEN},1:hangup,${EXTEN},1)<u></u><u></u></p>
</div><div><p class="MsoNormal">+++++++++++++++++++<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><div><p class="MsoNormal">rs0000sr305*CLI> -- Accepting call from '<a href="tel:5132083300" value="+555132083300" target="_blank">5132083300</a>' to '1584' on channel 0/18, span 1<u></u><u></u></p>
</div><div><p class="MsoNormal"> -- Accepting call from '<a href="tel:5132083300" value="+555132083300" target="_blank">5132083300</a>' to '1584' on channel 0/18, span 1<u></u><u></u></p></div><div><p class="MsoNormal">
rs0000sr305*CLI> -- Executing [1584@PABX:1] GotoIf("DAHDI/i1/5132083300-4", "[-1 = -1] ?entrada,1584,1:hangup,1584,1") in new stack<u></u><u></u></p></div><div><p class="MsoNormal"> -- Goto (entrada,1584,1)<u></u><u></u></p>
</div><div><p class="MsoNormal"> -- Executing [1584@PABX:1] <b>GotoIf("DAHDI/i1/5132083300-4", "[-1 = -1] ?entrada,1584,1:hangup,1584,1"</b>) in new stack<u></u><u></u></p></div><div><p class="MsoNormal">
-- Executing [1584@entrada:1] Answer("DAHDI/i1/5132083300-4", "") in new stack<u></u><u></u></p></div><div><p class="MsoNormal"> -- Goto (entrada,1584,1)<u></u><u></u></p></div><div><p class="MsoNormal">
-- Executing [1584@entrada:1] Answer("DAHDI/i1/5132083300-4", "") in new stack<u></u><u></u></p></div><div><p class="MsoNormal">rs0000sr305*CLI> -- Executing [1584@entrada:2] Dial("DAHDI/i1/5132083300-4", "SIP/1584,30,tT") in new stack<u></u><u></u></p>
</div><div><p class="MsoNormal"> -- Executing [1584@entrada:2] Dial("DAHDI/i1/5132083300-4", "SIP/1584,30,tT") in new stack<u></u><u></u></p></div><div><p class="MsoNormal">rs0000sr305*CLI> == Using SIP RTP CoS mark 5<u></u><u></u></p>
</div><div><p class="MsoNormal"> == Using SIP RTP CoS mark 5<u></u><u></u></p></div><div><p class="MsoNormal">rs0000sr305*CLI> -- Called SIP/1584<u></u><u></u></p></div><div><p class="MsoNormal"> -- Called SIP/1584<u></u><u></u></p>
</div><div><p class="MsoNormal">rs0000sr305*CLI> -- SIP/1584-0000001e is ringing<u></u><u></u></p></div><div><p class="MsoNormal"> -- SIP/1584-0000001e is ringing<u></u><u></u></p></div><div><p class="MsoNormal">
rs0000sr305*CLI> -- SIP/1584-0000001e answered DAHDI/i1/5132083300-4<u></u><u></u></p></div><div><p class="MsoNormal"> -- SIP/1584-0000001e answered DAHDI/i1/5132083300-4<u></u><u></u></p></div><div><p class="MsoNormal">
rs0000sr305*CLI> -- Span 1: Channel 0/18 got hangup request, cause 0<u></u><u></u></p></div><div><p class="MsoNormal"> -- Span 1: Channel 0/18 got hangup request, cause 0<u></u><u></u></p></div><div><p class="MsoNormal">
rs0000sr305*CLI> == Spawn extension (entrada, 1584, 2) exited non-zero on 'DAHDI/i1/5132083300-4'<u></u><u></u></p></div><div><p class="MsoNormal"> == Spawn extension (entrada, 1584, 2) exited non-zero on 'DAHDI/i1/5132083300-4'<u></u><u></u></p>
</div><div><p class="MsoNormal">rs0000sr305*CLI> -- Hungup 'DAHDI/i1/5132083300-4'<u></u><u></u></p></div><div><p class="MsoNormal"> -- Hungup 'DAHDI/i1/5132083300-4'<u></u><u></u></p></div><div>
<p class="MsoNormal">rs0000sr305*CLI> <u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt">Att,<br>Rafael Saraiva<br><br><br><br><u></u><u></u></p>
<div><p class="MsoNormal">2012/2/17 Danny Nicholas <<a href="mailto:danny@debsinc.com" target="_blank">danny@debsinc.com</a>><u></u><u></u></p><div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I would put a Verbose statement after Proceeding to verify the value returned from ISDN channel, like this:</span><u></u><u></u></p>
<p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">-</span><span style="font-size:7.0pt;color:#1f497d"> </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Same => n,Verbose(RC value ${CHANNEL(reversecharge)})</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] <b>On Behalf Of </b>Rafael dos Santos Saraiva<br>
<b>Sent:</b> Friday, February 17, 2012 11:07 AM<br><b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br><b>Subject:</b> Re: [asterisk-users] Block Collect Calls on ISDN trunk</span><u></u><u></u></p><p class="MsoNormal">
<u></u><u></u></p><p class="MsoNormal">This is a variable received from the isdn channel. <u></u><u></u></p><div><p class="MsoNormal" style="margin-bottom:12.0pt"><br clear="all">Att,<br>Rafael Saraiva<br><br><br><u></u><u></u></p>
<div><p class="MsoNormal">2012/2/17 Danny Nicholas <<a href="mailto:danny@debsinc.com" target="_blank">danny@debsinc.com</a>><u></u><u></u></p><div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Did you set CHANNEL(reversecharge) somewhere?</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] <b>On Behalf Of </b>Rafael dos Santos Saraiva<br>
<b>Sent:</b> Friday, February 17, 2012 10:26 AM<br><b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br><b>Subject:</b> Re: [asterisk-users] Block Collect Calls on ISDN trunk</span><u></u><u></u></p><p class="MsoNormal">
<u></u><u></u></p><p class="MsoNormal">Richard<u></u><u></u></p><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-family:"Arial","sans-serif";background:white">I tried this, but it did not work. What can be the problem?</span><span style="background:white"> </span><br clear="all">
<u></u><u></u></p><div><p class="MsoNormal">[PABX]<u></u><u></u></p></div><div><p class="MsoNormal">exten => _x.,1,Proceeding()<u></u><u></u></p></div><div><p class="MsoNormal">same => n,GotoIf($["${CHANNEL(reversecharge)}" ="-1"]?allow:block)<u></u><u></u></p>
</div><div><p class="MsoNormal">same => n(allow),Dial(SIP/1584,30,tT))<u></u><u></u></p></div><div><p class="MsoNormal">same => n(block),Hangup()<u></u><u></u></p></div></div><div><p class="MsoNormal"> <u></u><u></u></p>
</div><div><p class="MsoNormal" style="margin-bottom:12.0pt">Att,<br>Rafael Saraiva<br><br><u></u><u></u></p><div><p class="MsoNormal">2012/2/15 Richard Mudgett <<a href="mailto:rmudgett@digium.com" target="_blank">rmudgett@digium.com</a>><u></u><u></u></p>
<p class="MsoNormal">> > How to block collect calls on ISDN trunk?<br>><br>> You need Asterisk v1.8 or later and check the value of<br>> CHANNEL(reversecharge) in your dialplan.<br>><br>> <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>> Can you give me an example of how to use this function?<br><br>exten => 100,1,Proceeding()<br>same => n,GotoIf($["${CHANNEL(reversecharge)}" = "-1"]?allow:block)<br>same => n(allow),Dial()<br>
same => 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><u></u><u></u></p></div><p class="MsoNormal"> <u></u><u></u></p></div></div></div>
<p class="MsoNormal"><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><u></u><u></u></p></div><p class="MsoNormal"> <u></u><u></u></p></div></div></div>
<p class="MsoNormal"><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><u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div>
</div><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>