Rafael dos Santos Saraiva
2012-Feb-15 22:42 UTC
[asterisk-users] Block Collect Calls on ISDN trunk
How to block collect calls on ISDN trunk? Thank's Att, Rafael Saraiva -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120215/ffbc7ed4/attachment.htm>
> 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 Richard
Rafael dos Santos Saraiva
2012-Feb-16 00:09 UTC
[asterisk-users] Block Collect Calls on ISDN trunk
Richard Can you give me an example of how to use this function? 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 > > 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120215/1cb67875/attachment.htm>
> > 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 => 100,1,Proceeding() same => n,GotoIf($["${CHANNEL(reversecharge)}" = "-1"]?allow:block) same => n(allow),Dial() same => n(block),Hangup() Please note that CHANNEL(reversecharge) is only valid on ISDN channels. Richard
Rafael dos Santos Saraiva
2012-Feb-17 16:25 UTC
[asterisk-users] Block Collect Calls on ISDN trunk
Richard
I tried this, but it did not work. What can be the problem?
[PABX]
exten => _x.,1,Proceeding()
same => n,GotoIf($["${CHANNEL(reversecharge)}"
="-1"]?allow:block)
same => n(allow),Dial(SIP/1584,30,tT))
same => n(block),Hangup()
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 => 100,1,Proceeding()
> same => n,GotoIf($["${CHANNEL(reversecharge)}" =
"-1"]?allow:block)
> same => n(allow),Dial()
> same => 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.digium.com/pipermail/asterisk-users/attachments/20120217/2ec36767/attachment.htm>
Did you set CHANNEL(reversecharge) somewhere?
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
Richard
I tried this, but it did not work. What can be the problem?
[PABX]
exten => _x.,1,Proceeding()
same => n,GotoIf($["${CHANNEL(reversecharge)}"
="-1"]?allow:block)
same => n(allow),Dial(SIP/1584,30,tT))
same => n(block),Hangup()
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 => 100,1,Proceeding()
same => n,GotoIf($["${CHANNEL(reversecharge)}" =
"-1"]?allow:block)
same => n(allow),Dial()
same => 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.digium.com/pipermail/asterisk-users/attachments/20120217/40ab1db8/attachment.htm>
Rafael dos Santos Saraiva
2012-Feb-17 17:07 UTC
[asterisk-users] Block Collect Calls on ISDN trunk
This is a variable received from the isdn channel. Att, Rafael Saraiva 2012/2/17 Danny Nicholas <danny at debsinc.com>> Did you set CHANNEL(reversecharge) somewhere?**** > > ** ** > > *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**** > > ** ** > > Richard**** > > ** ** > > ** ** > > I tried this, but it did not work. What can be the problem? > **** > > [PABX]**** > > exten => _x.,1,Proceeding()**** > > same => n,GotoIf($["${CHANNEL(reversecharge)}" ="-1"]?allow:block)**** > > same => n(allow),Dial(SIP/1584,30,tT))**** > > same => n(block),Hangup()**** > > ** ** > > 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 => 100,1,Proceeding() > same => n,GotoIf($["${CHANNEL(reversecharge)}" = "-1"]?allow:block) > same => n(allow),Dial() > same => 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**** > > ** ** > > -- > _____________________________________________________________________ > -- 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120217/9452d18b/attachment.htm>
I would put a Verbose statement after Proceeding to verify the value returned
from ISDN channel, like this:
- Same => n,Verbose(RC value ${CHANNEL(reversecharge)})
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
This is a variable received from the isdn channel.
Att,
Rafael Saraiva
2012/2/17 Danny Nicholas <danny at debsinc.com>
Did you set CHANNEL(reversecharge) somewhere?
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
Richard
I tried this, but it did not work. What can be the problem?
[PABX]
exten => _x.,1,Proceeding()
same => n,GotoIf($["${CHANNEL(reversecharge)}"
="-1"]?allow:block)
same => n(allow),Dial(SIP/1584,30,tT))
same => n(block),Hangup()
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 => 100,1,Proceeding()
same => n,GotoIf($["${CHANNEL(reversecharge)}" =
"-1"]?allow:block)
same => n(allow),Dial()
same => 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
--
_____________________________________________________________________
-- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.digium.com/pipermail/asterisk-users/attachments/20120217/581fb032/attachment.htm>