=20
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces
at lists.digium.com] On Behalf Of Rafael dos Santos Saraiva
Sent: Friday, February 17, 2012 11:21 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Block Collect Calls on ISDN trunk
=20
The value is always -1. I must enable something in chan_dahdi to pass the
correct value?
=20
++++++
[PABX]
exten=3D>_X.,1,Gotoif([${CHANNEL(reversecharge)} =3D -1]
?entrada,${EXTEN},1:hangup,${EXTEN},1)
+++++++++++++++++++
=20
rs0000sr305*CLI> -- Accepting call from '5132083300' to
'1584' on channel 0/18, span 1
-- Accepting call from '5132083300' to '1584' on channel
0/18, span 1
rs0000sr305*CLI> -- Executing [1584 at PABX:1]
GotoIf("DAHDI/i1/5132083300-4", "[-1 =3D -1]
?entrada,1584,1:hangup,1584,1") in new stack
-- Goto (entrada,1584,1)
-- Executing [1584 at PABX:1] GotoIf("DAHDI/i1/5132083300-4",
"[-1 =3D -1] ?entrada,1584,1:hangup,1584,1") in new stack
-- Executing [1584 at entrada:1] Answer("DAHDI/i1/5132083300-4",
"") in new stack
-- Goto (entrada,1584,1)
-- Executing [1584 at entrada:1] Answer("DAHDI/i1/5132083300-4",
"") in new stack
rs0000sr305*CLI> -- Executing [1584 at entrada:2]
Dial("DAHDI/i1/5132083300-4", "SIP/1584,30,tT") in new stack
-- Executing [1584 at entrada:2] Dial("DAHDI/i1/5132083300-4",
"SIP/1584,30,tT") in new stack
rs0000sr305*CLI> =3D=3D Using SIP RTP CoS mark 5
=3D=3D Using SIP RTP CoS mark 5
rs0000sr305*CLI> -- Called SIP/1584
-- Called SIP/1584
rs0000sr305*CLI> -- SIP/1584-0000001e is ringing
-- SIP/1584-0000001e is ringing
rs0000sr305*CLI> -- SIP/1584-0000001e answered DAHDI/i1/5132083300-4
-- SIP/1584-0000001e answered DAHDI/i1/5132083300-4
rs0000sr305*CLI> -- Span 1: Channel 0/18 got hangup request, cause 0
-- Span 1: Channel 0/18 got hangup request, cause 0
rs0000sr305*CLI> =3D=3D Spawn extension (entrada, 1584, 2) exited non-zero
on 'DAHDI/i1/5132083300-4'
=3D=3D Spawn extension (entrada, 1584, 2) exited non-zero on
'DAHDI/i1/5132083300-4'
rs0000sr305*CLI> -- Hungup 'DAHDI/i1/5132083300-4'
-- Hungup 'DAHDI/i1/5132083300-4'
rs0000sr305*CLI>=20
=20
Att,
Rafael Saraiva
2012/2/17 Danny Nicholas <danny at debsinc.com>
I would put a Verbose statement after Proceeding to verify the value returned
from ISDN channel, like this:
- Same =3D> n,Verbose(RC value ${CHANNEL(reversecharge)})
=20
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces
at lists.digium.com] On Behalf Of Rafael dos Santos Saraiva
Sent: Friday, February 17, 2012 11:07 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Block Collect Calls on ISDN trunk
=20
This is a variable received from the isdn channel.=20
Att,
Rafael Saraiva
2012/2/17 Danny Nicholas <danny at debsinc.com>
Did you set CHANNEL(reversecharge) somewhere?
=20
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces
at lists.digium.com] On Behalf Of Rafael dos Santos Saraiva
Sent: Friday, February 17, 2012 10:26 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Block Collect Calls on ISDN trunk
=20
Richard
=20
=20
I tried this, but it did not work. What can be the problem?=20
[PABX]
exten =3D> _x.,1,Proceeding()
same =3D> n,GotoIf($["${CHANNEL(reversecharge)}"
=3D"-1"]?allow:block)
same =3D> n(allow),Dial(SIP/1584,30,tT))
same =3D> n(block),Hangup()
=20
Att,
Rafael Saraiva
2012/2/15 Richard Mudgett <rmudgett at digium.com>
> > How to block collect calls on ISDN trunk?
>
> You need Asterisk v1.8 or later and check the value of
> CHANNEL(reversecharge) in your dialplan.
>
> https://wiki.asterisk.org/wiki/display/AST/Function_CHANNEL
> Can you give me an example of how to use this function?
exten =3D> 100,1,Proceeding()
same =3D> n,GotoIf($["${CHANNEL(reversecharge)}" =3D
"-1"]?allow:block)
same =3D> n(allow),Dial()
same =3D> n(block),Hangup()
Please note that CHANNEL(reversecharge) is only valid on ISDN channels.
Richard
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
=20
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
=20
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
=20
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
=20
------=_NextPart_000_00E5_01CCED6C.102E4360
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml"
xmlns:o=3D"urn:schemas-microsoft-com:office:office"
xmlns:w=3D"urn:schemas-microsoft-com:office:word"
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml"
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta
http-equiv=3DContent-Type content=3D"text/html;
charset=3Dutf-8"><meta name=3DGenerator content=3D"Microsoft
Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.hps
{mso-style-name:hps;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body
lang=3DEN-US link=3Dblue vlink=3Dpurple><div class=3DWordSection1><p
class=3DMsoNormal><span
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Well,
that=E2=80=99s what is on asterisk.org to be downloaded =E2=80=93 this one has
=E2=80=9Cleft my pay grade=E2=80=9D=C2=A0 - good
luck.<o:p></o:p></span></p><p
class=3DMsoNormal><span
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p
class=3DMsoNormal><b><span
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at
lists.digium.com] <b>On Behalf Of </b>Rafael dos Santos
Saraiva<br><b>Sent:</b> Friday, February 17, 2012 11:33
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<o:p></o:p></span></p><p
class=3DMsoNormal><o:p> </o:p></p><p
class=3DMsoNormal><span class=3Dhps><span
style=3D'font-family:"Arial","sans-serif";background:white'>Which
version</span></span><span
style=3D'font-family:"Arial","sans-serif";background:white'> <span
class=3Dhps>do you recommend</span>? <span
class=3Dhps>Mine is</span> <span
class=3Dhps>1.4.12</span>.</span><span
style=3D'background:white'> </span><o:p></o:p></p><div><p
class=3DMsoNormal style=3D'margin-bottom:12.0pt'><br
clear=3Dall>Att,<br>Rafael
Saraiva<br><br><br><br><o:p></o:p></p><div><p
class=3DMsoNormal>2012/2/17 Danny Nicholas <<a
href=3D"mailto:danny at debsinc.com">danny at
debsinc.com</a>><o:p></o:p></p><div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>From
what I read, your libpri may be out of
date.</span><o:p></o:p></p><p class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
<a href=3D"mailto:asterisk-users-bounces at lists.digium.com"
target=3D"_blank">asterisk-users-bounces at
lists.digium.com</a> [mailto:<a
href=3D"mailto:asterisk-users-bounces at lists.digium.com"
target=3D"_blank">asterisk-users-bounces at
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</span><o:p></o:p></p><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>The
value is always -1. I must enable something in chan_dahdi to pass the correct
value?<o:p></o:p></p><div><p class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>++++++<o:p></o:p></p></div><div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>[PABX]<o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>exten=3D>_X.,1,Gotoif([${CHANNEL(reversecharge)}
=3D -1]
?entrada,${EXTEN},1:hangup,${EXTEN},1)<o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>+++++++++++++++++++<o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div><div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>rs0000sr305*CLI>
-- Accepting call from '<a
href=3D"tel:5132083300"
target=3D"_blank">5132083300</a>' to '1584' on
channel 0/18, span
1<o:p></o:p></p></div><div><p class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>
-- Accepting call from '<a href=3D"tel:5132083300"
target=3D"_blank">5132083300</a>' to '1584' on
channel 0/18, span
1<o:p></o:p></p></div><div><p class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>rs0000sr305*CLI>
-- Executing [1584 at PABX:1]
GotoIf("DAHDI/i1/5132083300-4", "[-1 =3D -1]
?entrada,1584,1:hangup,1584,1") in new
stack<o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>
-- Goto
(entrada,1584,1)<o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>
-- Executing [1584 at PABX:1]
<b>GotoIf("DAHDI/i1/5132083300-4", "[-1 =3D -1]
?entrada,1584,1:hangup,1584,1"</b>) in new
stack<o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>
-- Executing [1584 at entrada:1]
Answer("DAHDI/i1/5132083300-4", "") in new
stack<o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>
-- Goto
(entrada,1584,1)<o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>
-- Executing [1584 at entrada:1]
Answer("DAHDI/i1/5132083300-4", "") in new
stack<o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>rs0000sr305*CLI>
-- Executing [1584 at entrada:2]
Dial("DAHDI/i1/5132083300-4",
"SIP/1584,30,tT") in new
stack<o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>
-- Executing [1584 at entrada:2]
Dial("DAHDI/i1/5132083300-4",
"SIP/1584,30,tT") in new
stack<o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>rs0000sr305*CLI>
=3D=3D Using SIP RTP CoS mark
5<o:p></o:p></p></div><div><p class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>
=3D=3D Using SIP RTP CoS mark
5<o:p></o:p></p></div><div><p class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>rs0000sr305*CLI>
-- Called
SIP/1584<o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>
-- Called
SIP/1584<o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>rs0000sr305*CLI>
-- SIP/1584-0000001e is
ringing<o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>
-- SIP/1584-0000001e is
ringing<o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>rs0000sr305*CLI>
-- SIP/1584-0000001e answered
DAHDI/i1/5132083300-4<o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>
-- SIP/1584-0000001e answered
DAHDI/i1/5132083300-4<o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>rs0000sr305*CLI>
-- Span 1: Channel 0/18 got hangup request, cause
0<o:p></o:p></p></div><div><p class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>
-- Span 1: Channel 0/18 got hangup request, cause
0<o:p></o:p></p></div><div><p class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>rs0000sr305*CLI>
=3D=3D Spawn extension (entrada, 1584, 2) exited non-zero on
'DAHDI/i1/5132083300-4'<o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>
=3D=3D Spawn extension (entrada, 1584, 2) exited non-zero on
'DAHDI/i1/5132083300-4'<o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>rs0000sr305*CLI>
-- Hungup
'DAHDI/i1/5132083300-4'<o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>
-- Hungup
'DAHDI/i1/5132083300-4'<o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>rs0000sr305*CLI> <o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;margin-bottom:12.0pt'>Att,<br>Rafael
Saraiva<br><br><br><o:p></o:p></p><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>2012/2/17
Danny Nicholas <<a href=3D"mailto:danny at debsinc.com"
target=3D"_blank">danny at
debsinc.com</a>><o:p></o:p></p><div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style=3D'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><o:p></o:p></p><p><span
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>-</span><span
style=3D'font-size:7.0pt;color:#1F497D'>
</span><span
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Same
=3D> n,Verbose(RC value
${CHANNEL(reversecharge)})</span><o:p></o:p></p><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
<a href=3D"mailto:asterisk-users-bounces at lists.digium.com"
target=3D"_blank">asterisk-users-bounces at
lists.digium.com</a> [mailto:<a
href=3D"mailto:asterisk-users-bounces at lists.digium.com"
target=3D"_blank">asterisk-users-bounces at
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><o:p></o:p></p><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>This is
a variable received from the isdn
channel. <o:p></o:p></p><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;margin-bottom:12.0pt'><br
clear=3Dall>Att,<br>Rafael
Saraiva<br><br><o:p></o:p></p><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>2012/2/17
Danny Nicholas <<a href=3D"mailto:danny at debsinc.com"
target=3D"_blank">danny at
debsinc.com</a>><o:p></o:p></p><div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Did
you set CHANNEL(reversecharge)
somewhere?</span><o:p></o:p></p><p class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
<a href=3D"mailto:asterisk-users-bounces at lists.digium.com"
target=3D"_blank">asterisk-users-bounces at
lists.digium.com</a> [mailto:<a
href=3D"mailto:asterisk-users-bounces at lists.digium.com"
target=3D"_blank">asterisk-users-bounces at
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><o:p></o:p></p><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Richard<o:p></o:p></p><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style=3D'font-family:"Arial","sans-serif";background:white'>I
tried this, but it did not work. What can be
the problem?</span><span
style=3D'background:white'> </span><br
clear=3Dall><o:p></o:p></p><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>[PABX]<o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>exten
=3D>
_x.,1,Proceeding()<o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>same
=3D> n,GotoIf($["${CHANNEL(reversecharge)}"
=3D"-1"]?allow:block)<o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>same
=3D>
n(allow),Dial(SIP/1584,30,tT))<o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>same
=3D>
n(block),Hangup()<o:p></o:p></p></div></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div><div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;margin-bottom:12.0pt'>Att,<br>Rafael
Saraiva<o:p></o:p></p><div><p class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>2012/2/15
Richard Mudgett <<a href=3D"mailto:rmudgett at digium.com"
target=3D"_blank">rmudgett at
digium.com</a>><o:p></o:p></p><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>>
> 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=3D"https://wiki.asterisk.org/wiki/display/AST/Function_CHANNEL"
target=3D"_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
=3D> 100,1,Proceeding()<br>same =3D>
n,GotoIf($["${CHANNEL(reversecharge)}" =3D
"-1"]?allow:block)<br>same =3D>
n(allow),Dial()<br>same =3D>
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=3D"http://www.api-digital.com"
target=3D"_blank">http://www.api-digital.com</a>
--<br>New to Asterisk? Join us for a live introductory webinar every
Thurs:<br>
<a href=3D"http://www.asterisk.org/hello"
target=3D"_blank">http://www.asterisk.org/hello</a><br><br>asterisk-users
mailing list<br>To UNSUBSCRIBE or update options
visit:<br> <a
href=3D"http://lists.digium.com/mailman/listinfo/asterisk-users"
target=3D"_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><o:p></o:p></p></div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div></div></div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><br>--<br>_____________________________________________________________________<br>--
Bandwidth and Colocation Provided by <a
href=3D"http://www.api-digital.com"
target=3D"_blank">http://www.api-digital.com</a>
--<br>New to Asterisk? Join us for a live introductory webinar every
Thurs:<br>
<a href=3D"http://www.asterisk.org/hello"
target=3D"_blank">http://www.asterisk.org/hello</a><br><br>asterisk-users
mailing list<br>To UNSUBSCRIBE or update options
visit:<br> <a
href=3D"http://lists.digium.com/mailman/listinfo/asterisk-users"
target=3D"_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><o:p></o:p></p></div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div></div></div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><br>--<br>_____________________________________________________________________<br>--
Bandwidth and Colocation Provided by <a
href=3D"http://www.api-digital.com"
target=3D"_blank">http://www.api-digital.com</a>
--<br>New to Asterisk? Join us for a live introductory webinar every
Thurs:<br>
<a href=3D"http://www.asterisk.org/hello"
target=3D"_blank">http://www.asterisk.org/hello</a><br><br>asterisk-users
mailing list<br>To UNSUBSCRIBE or update options
visit:<br> <a
href=3D"http://lists.digium.com/mailman/listinfo/asterisk-users"
target=3D"_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><o:p></o:p></p></div><p
class=3DMsoNormal
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div></div></div></div><p
class=3DMsoNormal><br>--<br>_____________________________________________________________________<br>--
Bandwidth and Colocation Provided by <a
href=3D"http://www.api-digital.com"
target=3D"_blank">http://www.api-digital.com</a>
--<br>New to Asterisk? Join us for a live introductory webinar every
Thurs:<br>
<a href=3D"http://www.asterisk.org/hello"
target=3D"_blank">http://www.asterisk.org/hello</a><br><br>asterisk-users
mailing list<br>To UNSUBSCRIBE or update options
visit:<br> <a
href=3D"http://lists.digium.com/mailman/listinfo/asterisk-users"
target=3D"_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><o:p></o:p></p></div><p
class=3DMsoNormal><o:p> </o:p></p></div></div></body></html>
------=_NextPart_000_00E5_01CCED6C.102E4360--