No subject


Fri Sep 2 03:59:05 CDT 2011


=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


------=_NextPart_000_00B6_01CCED66.AE50CDC0
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.BalloonTextChar
	{mso-style-name:"Balloon Text Char";
	mso-style-priority:99;
	mso-style-link:"Balloon Text";
	font-family:"Tahoma","sans-serif";}
span.EmailStyle20
	{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:#1F497=
D'>From what I read, your libpri may be out of =
date.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</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: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<o:p></o:p></span></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>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><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>++++++<o:p></o:p></p></div><div><div><p =
class=3DMsoNormal>[PABX]<o:p></o:p></p></div><div><p =
class=3DMsoNormal>exten=3D&gt;_X.,1,Gotoif([${CHANNEL(reversecharge)} =
=3D -1] =
?entrada,${EXTEN},1:hangup,${EXTEN},1)<o:p></o:p></p></div><div><p =
class=3DMsoNormal>+++++++++++++++++++<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><div><p =
class=3DMsoNormal>rs0000sr305*CLI&gt; &nbsp; &nbsp; -- Accepting call =
from '5132083300' to '1584' on channel 0/18, span =
1<o:p></o:p></p></div><div><p class=3DMsoNormal>&nbsp; &nbsp; -- =
Accepting call from '5132083300' to '1584' on channel 0/18, span =
1<o:p></o:p></p></div><div><p class=3DMsoNormal>rs0000sr305*CLI&gt; =
&nbsp; &nbsp; -- Executing [1584 at PABX:1] =
GotoIf(&quot;DAHDI/i1/5132083300-4&quot;, &quot;[-1 =3D -1] =
?entrada,1584,1:hangup,1584,1&quot;) in new =
stack<o:p></o:p></p></div><div><p class=3DMsoNormal>&nbsp; &nbsp; -- =
Goto (entrada,1584,1)<o:p></o:p></p></div><div><p =
class=3DMsoNormal>&nbsp; &nbsp; -- Executing [1584 at PABX:1] =
<b>GotoIf(&quot;DAHDI/i1/5132083300-4&quot;, &quot;[-1 =3D -1] =
?entrada,1584,1:hangup,1584,1&quot;</b>) in new =
stack<o:p></o:p></p></div><div><p class=3DMsoNormal>&nbsp; &nbsp; -- =
Executing [1584 at entrada:1] Answer(&quot;DAHDI/i1/5132083300-4&quot;, =
&quot;&quot;) in new stack<o:p></o:p></p></div><div><p =
class=3DMsoNormal>&nbsp; &nbsp; -- Goto =
(entrada,1584,1)<o:p></o:p></p></div><div><p class=3DMsoNormal>&nbsp; =
&nbsp; -- Executing [1584 at entrada:1] =
Answer(&quot;DAHDI/i1/5132083300-4&quot;, &quot;&quot;) in new =
stack<o:p></o:p></p></div><div><p class=3DMsoNormal>rs0000sr305*CLI&gt; =
&nbsp; &nbsp; -- Executing [1584 at entrada:2] =
Dial(&quot;DAHDI/i1/5132083300-4&quot;, &quot;SIP/1584,30,tT&quot;) in =
new stack<o:p></o:p></p></div><div><p class=3DMsoNormal>&nbsp; &nbsp; -- =
Executing [1584 at entrada:2] Dial(&quot;DAHDI/i1/5132083300-4&quot;, =
&quot;SIP/1584,30,tT&quot;) in new stack<o:p></o:p></p></div><div><p =
class=3DMsoNormal>rs0000sr305*CLI&gt; &nbsp; =3D=3D Using SIP RTP CoS =
mark 5<o:p></o:p></p></div><div><p class=3DMsoNormal>&nbsp; =3D=3D Using =
SIP RTP CoS mark 5<o:p></o:p></p></div><div><p =
class=3DMsoNormal>rs0000sr305*CLI&gt; &nbsp; &nbsp; -- Called =
SIP/1584<o:p></o:p></p></div><div><p class=3DMsoNormal>&nbsp; &nbsp; -- =
Called SIP/1584<o:p></o:p></p></div><div><p =
class=3DMsoNormal>rs0000sr305*CLI&gt; &nbsp; &nbsp; -- SIP/1584-0000001e =
is ringing<o:p></o:p></p></div><div><p class=3DMsoNormal>&nbsp; &nbsp; =
-- SIP/1584-0000001e is ringing<o:p></o:p></p></div><div><p =
class=3DMsoNormal>rs0000sr305*CLI&gt; &nbsp; &nbsp; -- SIP/1584-0000001e =
answered DAHDI/i1/5132083300-4<o:p></o:p></p></div><div><p =
class=3DMsoNormal>&nbsp; &nbsp; -- SIP/1584-0000001e answered =
DAHDI/i1/5132083300-4<o:p></o:p></p></div><div><p =
class=3DMsoNormal>rs0000sr305*CLI&gt; &nbsp; &nbsp; -- Span 1: Channel =
0/18 got hangup request, cause 0<o:p></o:p></p></div><div><p =
class=3DMsoNormal>&nbsp; &nbsp; -- Span 1: Channel 0/18 got hangup =
request, cause 0<o:p></o:p></p></div><div><p =
class=3DMsoNormal>rs0000sr305*CLI&gt; &nbsp; =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>&nbsp; =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>rs0000sr305*CLI&gt; &nbsp; &nbsp; -- Hungup =
'DAHDI/i1/5132083300-4'<o:p></o:p></p></div><div><p =
class=3DMsoNormal>&nbsp; &nbsp; -- Hungup =
'DAHDI/i1/5132083300-4'<o:p></o:p></p></div><div><p =
class=3DMsoNormal>rs0000sr305*CLI&gt;&nbsp;<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><p class=3DMsoNormal =
style=3D'margin-bottom:12.0pt'>Att,<br>Rafael =
Saraiva<br><br><br><br><o:p></o:p></p><div><p =
class=3DMsoNormal>2012/2/17 Danny Nicholas &lt;<a =
href=3D"mailto:danny at debsinc.com">danny at debsinc.com</a>&gt;<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:#1F497=
D'>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:#1F497=
D'>-</span><span =
style=3D'font-size:7.0pt;color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp; </span><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Same =3D&gt; 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:#1F497=
D'>&nbsp;</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'>&nbsp;<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.&nbsp;<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><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 &lt;<a href=3D"mailto:danny at debsinc.com" =
target=3D"_blank">danny at debsinc.com</a>&gt;<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:#1F497=
D'>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:#1F497=
D'>&nbsp;</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'>&nbsp;<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'>&nbsp;<o:p><=
/o:p></p></div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<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&nbsp;this, but&nbsp;it did not work.&nbsp;What can be =
the&nbsp;problem?</span><span =
style=3D'background:white'>&nbsp;</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&gt; _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&gt; n,GotoIf($[&quot;${CHANNEL(reversecharge)}&quot; =
=3D&quot;-1&quot;]?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&gt; 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&gt; 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'>&nbsp;<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<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/15 =
Richard Mudgett &lt;<a href=3D"mailto:rmudgett at digium.com" =
target=3D"_blank">rmudgett at digium.com</a>&gt;<o:p></o:p></p><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&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=3D"https://wiki.asterisk.org/wiki/display/AST/Function_CHANNEL" =
target=3D"_blank">https://wiki.asterisk.org/wiki/display/AST/Function_CHA=
NNEL</a><br><br>&gt; Can you give me an example of how to use this =
function?<br><br>exten =3D&gt; 100,1,Proceeding()<br>same =3D&gt; =
n,GotoIf($[&quot;${CHANNEL(reversecharge)}&quot; =3D =
&quot;-1&quot;]?allow:block)<br>same =3D&gt; n(allow),Dial()<br>same =
=3D&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=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>&nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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>&nbsp; <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'>&nbsp;<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>&nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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>&nbsp; <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'>&nbsp;<o:p><=
/o:p></p></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>&nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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>&nbsp; <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>&nbsp;</o:p></p></div></div></div></body></html>
------=_NextPart_000_00B6_01CCED66.AE50CDC0--




More information about the asterisk-users mailing list