Re: [asterisk-users] Block Collect Calls on ISDN trunk
I tried to leave these fields empty. It did not work. Making the trunkgroups section empty was to eliminate a different configuration problem you have. It is not related to the reverse charging issue. Not appear IE74 in the debug. The possibility exists that the carrier does not be sending? Yes. It does look like the carrier is not sending the Reverse Charging Indication ie. Richard Att, Rafael Saraiva 2012/2/17 Richard Mudgett rmudg...@digium.com I had not noticed that you switched to direct email earlier. - Original Message - Switchtype: euroisdn This is my chan_dadhi.conf [trunkgroups] trunkgroup=1,16 spanmap=1,1 The trunkgroups section is only needed if you are using NFAS and its presence may cause issues for switches that do not support it. NFAS is not supported by euroisdn or qsig. After looking again at your traces, the STATUS messages are complaining about the channel id indicated by Asterisk. The trunk groups setup you have here is causing it. Just make this an empty section. [channels] language=pt_BR hidecallerid=no usecallerid=yes callwaiting=yes callwaitingcallerid=yes threewaycalling=yes transfer=yes canpark=yes cancallforward=yes callreturn=yes echocancel=yes echocancelwhenbridged=no callerid=asreceived switchtype=euroisdn ;qsig signalling=pri_cpe context=PABX facilityenable=yes hidecalleridname=no ;aoc_enable=s,d,e imediate=yes ;busydetect=yes overlapdial=yes inbanddisconnect=yes priindication=inband ;outofband nsf=none ;qsigchannelmapping=logical pridialplan=unknown prilocaldialplan=unknown ;internationalprefix=00 ;nationalprefix=55 ;localprefix=5551 ;privateprefix=55513205 ;unknownprefix= service_message_support=yes mohinterpret=default discardremoteholdretrieval=yes group=1 channel=1-15,17-31 And system.conf: loadzone=br defaultzone=br #span=1,1,0,cas,hdb3 #cas=1-15,17-31:1101 span=1,0,0,ccs,hdb3 dchan=16 bchan=1-15,17-31 Att, Rafael Saraiva 2012/2/17 Richard Mudgett rmudg...@digium.com I could not send attachments to the list. Att, Rafael Saraiva You could have put the traces inline like you did the console capture. However, the attached files were oddly garbled in that lines were duplicated. It looks like your network switch does not like the PROCEEDING or ALERTING messages. The SETUP message did not have any differences between a normal call and a collect call that I could see. So there does not appear to be a way to tell the calls apart. What is the configured switch type? 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
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 rmudg...@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
Re: [asterisk-users] Block Collect Calls on ISDN trunk
Did you set CHANNEL(reversecharge) somewhere? From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@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 rmudg...@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
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 da...@debsinc.com Did you set CHANNEL(reversecharge) somewhere? ** ** *From:* asterisk-users-boun...@lists.digium.com [mailto: asterisk-users-boun...@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 rmudg...@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 -- _ -- 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
Re: [asterisk-users] Block Collect Calls on ISDN trunk
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-boun...@lists.digium.com [mailto:asterisk-users-boun...@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 da...@debsinc.com Did you set CHANNEL(reversecharge) somewhere? From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@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 rmudg...@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 -- _ -- 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
Re: [asterisk-users] Block Collect Calls on ISDN trunk
The value is always -1. I must enable something in chan_dahdi to pass the correct value? ++ [PABX] exten=_X.,1,Gotoif([${CHANNEL(reversecharge)} = -1] ?entrada,${EXTEN},1:hangup,${EXTEN},1) +++ rssr305*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 rssr305*CLI -- Executing [1584@PABX:1] GotoIf(DAHDI/i1/5132083300-4, [-1 = -1] ?entrada,1584,1:hangup,1584,1) in new stack -- Goto (entrada,1584,1) -- Executing [1584@PABX:1] *GotoIf(DAHDI/i1/5132083300-4, [-1 = -1] ?entrada,1584,1:hangup,1584,1*) in new stack -- Executing [1584@entrada:1] Answer(DAHDI/i1/5132083300-4, ) in new stack -- Goto (entrada,1584,1) -- Executing [1584@entrada:1] Answer(DAHDI/i1/5132083300-4, ) in new stack rssr305*CLI -- Executing [1584@entrada:2] Dial(DAHDI/i1/5132083300-4, SIP/1584,30,tT) in new stack -- Executing [1584@entrada:2] Dial(DAHDI/i1/5132083300-4, SIP/1584,30,tT) in new stack rssr305*CLI == Using SIP RTP CoS mark 5 == Using SIP RTP CoS mark 5 rssr305*CLI -- Called SIP/1584 -- Called SIP/1584 rssr305*CLI -- SIP/1584-001e is ringing -- SIP/1584-001e is ringing rssr305*CLI -- SIP/1584-001e answered DAHDI/i1/5132083300-4 -- SIP/1584-001e answered DAHDI/i1/5132083300-4 rssr305*CLI -- Span 1: Channel 0/18 got hangup request, cause 0 -- Span 1: Channel 0/18 got hangup request, cause 0 rssr305*CLI == Spawn extension (entrada, 1584, 2) exited non-zero on 'DAHDI/i1/5132083300-4' == Spawn extension (entrada, 1584, 2) exited non-zero on 'DAHDI/i1/5132083300-4' rssr305*CLI -- Hungup 'DAHDI/i1/5132083300-4' -- Hungup 'DAHDI/i1/5132083300-4' rssr305*CLI Att, Rafael Saraiva 2012/2/17 Danny Nicholas da...@debsinc.com 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-boun...@lists.digium.com [mailto: asterisk-users-boun...@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 da...@debsinc.com Did you set CHANNEL(reversecharge) somewhere? *From:* asterisk-users-boun...@lists.digium.com [mailto: asterisk-users-boun...@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 rmudg...@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 ** ** -- _ -- 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
Re: [asterisk-users] Block Collect Calls on ISDN trunk
From what I read, your libpri may be out of date. From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@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 The value is always -1. I must enable something in chan_dahdi to pass the correct value? ++ [PABX] exten=_X.,1,Gotoif([${CHANNEL(reversecharge)} = -1] ?entrada,${EXTEN},1:hangup,${EXTEN},1) +++ rssr305*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 rssr305*CLI -- Executing [1584@PABX:1] GotoIf(DAHDI/i1/5132083300-4, [-1 = -1] ?entrada,1584,1:hangup,1584,1) in new stack -- Goto (entrada,1584,1) -- Executing [1584@PABX:1] GotoIf(DAHDI/i1/5132083300-4, [-1 = -1] ?entrada,1584,1:hangup,1584,1) in new stack -- Executing [1584@entrada:1] Answer(DAHDI/i1/5132083300-4, ) in new stack -- Goto (entrada,1584,1) -- Executing [1584@entrada:1] Answer(DAHDI/i1/5132083300-4, ) in new stack rssr305*CLI -- Executing [1584@entrada:2] Dial(DAHDI/i1/5132083300-4, SIP/1584,30,tT) in new stack -- Executing [1584@entrada:2] Dial(DAHDI/i1/5132083300-4, SIP/1584,30,tT) in new stack rssr305*CLI == Using SIP RTP CoS mark 5 == Using SIP RTP CoS mark 5 rssr305*CLI -- Called SIP/1584 -- Called SIP/1584 rssr305*CLI -- SIP/1584-001e is ringing -- SIP/1584-001e is ringing rssr305*CLI -- SIP/1584-001e answered DAHDI/i1/5132083300-4 -- SIP/1584-001e answered DAHDI/i1/5132083300-4 rssr305*CLI -- Span 1: Channel 0/18 got hangup request, cause 0 -- Span 1: Channel 0/18 got hangup request, cause 0 rssr305*CLI == Spawn extension (entrada, 1584, 2) exited non-zero on 'DAHDI/i1/5132083300-4' == Spawn extension (entrada, 1584, 2) exited non-zero on 'DAHDI/i1/5132083300-4' rssr305*CLI -- Hungup 'DAHDI/i1/5132083300-4' -- Hungup 'DAHDI/i1/5132083300-4' rssr305*CLI Att, Rafael Saraiva 2012/2/17 Danny Nicholas da...@debsinc.com 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-boun...@lists.digium.com [mailto:asterisk-users-boun...@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 da...@debsinc.com Did you set CHANNEL(reversecharge) somewhere? From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@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 rmudg...@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 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us
Re: [asterisk-users] Block Collect Calls on ISDN trunk
Which version do you recommend? Mine is 1.4.12. Att, Rafael Saraiva 2012/2/17 Danny Nicholas da...@debsinc.com From what I read, your libpri may be out of date. ** ** *From:* asterisk-users-boun...@lists.digium.com [mailto: asterisk-users-boun...@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 ** ** The value is always -1. I must enable something in chan_dahdi to pass the correct value? ** ** ++ [PABX] exten=_X.,1,Gotoif([${CHANNEL(reversecharge)} = -1] ?entrada,${EXTEN},1:hangup,${EXTEN},1) +++ ** ** rssr305*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* *** rssr305*CLI -- Executing [1584@PABX:1] GotoIf(DAHDI/i1/5132083300-4, [-1 = -1] ?entrada,1584,1:hangup,1584,1) in new stack -- Goto (entrada,1584,1) -- Executing [1584@PABX:1] *GotoIf(DAHDI/i1/5132083300-4, [-1 = -1] ?entrada,1584,1:hangup,1584,1*) in new stack -- Executing [1584@entrada:1] Answer(DAHDI/i1/5132083300-4, ) in new stack -- Goto (entrada,1584,1) -- Executing [1584@entrada:1] Answer(DAHDI/i1/5132083300-4, ) in new stack rssr305*CLI -- Executing [1584@entrada:2] Dial(DAHDI/i1/5132083300-4, SIP/1584,30,tT) in new stack -- Executing [1584@entrada:2] Dial(DAHDI/i1/5132083300-4, SIP/1584,30,tT) in new stack rssr305*CLI == Using SIP RTP CoS mark 5 == Using SIP RTP CoS mark 5 rssr305*CLI -- Called SIP/1584 -- Called SIP/1584 rssr305*CLI -- SIP/1584-001e is ringing -- SIP/1584-001e is ringing rssr305*CLI -- SIP/1584-001e answered DAHDI/i1/5132083300-4** ** -- SIP/1584-001e answered DAHDI/i1/5132083300-4 rssr305*CLI -- Span 1: Channel 0/18 got hangup request, cause 0** ** -- Span 1: Channel 0/18 got hangup request, cause 0 rssr305*CLI == Spawn extension (entrada, 1584, 2) exited non-zero on 'DAHDI/i1/5132083300-4' == Spawn extension (entrada, 1584, 2) exited non-zero on 'DAHDI/i1/5132083300-4' rssr305*CLI -- Hungup 'DAHDI/i1/5132083300-4' -- Hungup 'DAHDI/i1/5132083300-4' rssr305*CLI ** ** Att, Rafael Saraiva 2012/2/17 Danny Nicholas da...@debsinc.com 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-boun...@lists.digium.com [mailto: asterisk-users-boun...@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 da...@debsinc.com Did you set CHANNEL(reversecharge) somewhere? *From:* asterisk-users-boun...@lists.digium.com [mailto: asterisk-users-boun...@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 rmudg...@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
Re: [asterisk-users] Block Collect Calls on ISDN trunk
Well, that’s what is on asterisk.org to be downloaded – this one has “left my pay grade” - good luck. From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Rafael dos Santos Saraiva Sent: Friday, February 17, 2012 11:33 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Block Collect Calls on ISDN trunk Which version do you recommend? Mine is 1.4.12. Att, Rafael Saraiva 2012/2/17 Danny Nicholas da...@debsinc.com From what I read, your libpri may be out of date. From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@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 The value is always -1. I must enable something in chan_dahdi to pass the correct value? ++ [PABX] exten=_X.,1,Gotoif([${CHANNEL(reversecharge)} = -1] ?entrada,${EXTEN},1:hangup,${EXTEN},1) +++ rssr305*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 rssr305*CLI -- Executing [1584@PABX:1] GotoIf(DAHDI/i1/5132083300-4, [-1 = -1] ?entrada,1584,1:hangup,1584,1) in new stack -- Goto (entrada,1584,1) -- Executing [1584@PABX:1] GotoIf(DAHDI/i1/5132083300-4, [-1 = -1] ?entrada,1584,1:hangup,1584,1) in new stack -- Executing [1584@entrada:1] Answer(DAHDI/i1/5132083300-4, ) in new stack -- Goto (entrada,1584,1) -- Executing [1584@entrada:1] Answer(DAHDI/i1/5132083300-4, ) in new stack rssr305*CLI -- Executing [1584@entrada:2] Dial(DAHDI/i1/5132083300-4, SIP/1584,30,tT) in new stack -- Executing [1584@entrada:2] Dial(DAHDI/i1/5132083300-4, SIP/1584,30,tT) in new stack rssr305*CLI == Using SIP RTP CoS mark 5 == Using SIP RTP CoS mark 5 rssr305*CLI -- Called SIP/1584 -- Called SIP/1584 rssr305*CLI -- SIP/1584-001e is ringing -- SIP/1584-001e is ringing rssr305*CLI -- SIP/1584-001e answered DAHDI/i1/5132083300-4 -- SIP/1584-001e answered DAHDI/i1/5132083300-4 rssr305*CLI -- Span 1: Channel 0/18 got hangup request, cause 0 -- Span 1: Channel 0/18 got hangup request, cause 0 rssr305*CLI == Spawn extension (entrada, 1584, 2) exited non-zero on 'DAHDI/i1/5132083300-4' == Spawn extension (entrada, 1584, 2) exited non-zero on 'DAHDI/i1/5132083300-4' rssr305*CLI -- Hungup 'DAHDI/i1/5132083300-4' -- Hungup 'DAHDI/i1/5132083300-4' rssr305*CLI Att, Rafael Saraiva 2012/2/17 Danny Nicholas da...@debsinc.com 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-boun...@lists.digium.com [mailto:asterisk-users-boun...@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 da...@debsinc.com Did you set CHANNEL(reversecharge) somewhere? From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@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 rmudg...@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
Re: [asterisk-users] Block Collect Calls on ISDN trunk
The value is always -1. I must enable something in chan_dahdi to pass the correct value? ++ [PABX] exten=_X.,1,Gotoif([${CHANNEL(reversecharge)} = -1] ?entrada,${EXTEN},1:hangup,${EXTEN},1) +++ rssr305*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 rssr305*CLI -- Executing [1584@PABX:1] GotoIf(DAHDI/i1/5132083300-4, [-1 = -1] ?entrada,1584,1:hangup,1584,1) in new stack -- Goto (entrada,1584,1) -- Executing [1584@PABX:1] GotoIf(DAHDI/i1/5132083300-4, [-1 = -1] ?entrada,1584,1:hangup,1584,1 ) in new stack -- Executing [1584@entrada:1] Answer(DAHDI/i1/5132083300-4, ) in new stack -- Goto (entrada,1584,1) -- Executing [1584@entrada:1] Answer(DAHDI/i1/5132083300-4, ) in new stack rssr305*CLI -- Executing [1584@entrada:2] Dial(DAHDI/i1/5132083300-4, SIP/1584,30,tT) in new stack -- Executing [1584@entrada:2] Dial(DAHDI/i1/5132083300-4, SIP/1584,30,tT) in new stack rssr305*CLI == Using SIP RTP CoS mark 5 == Using SIP RTP CoS mark 5 rssr305*CLI -- Called SIP/1584 -- Called SIP/1584 rssr305*CLI -- SIP/1584-001e is ringing -- SIP/1584-001e is ringing rssr305*CLI -- SIP/1584-001e answered DAHDI/i1/5132083300-4 -- SIP/1584-001e answered DAHDI/i1/5132083300-4 rssr305*CLI -- Span 1: Channel 0/18 got hangup request, cause 0 -- Span 1: Channel 0/18 got hangup request, cause 0 rssr305*CLI == Spawn extension (entrada, 1584, 2) exited non-zero on 'DAHDI/i1/5132083300-4' == Spawn extension (entrada, 1584, 2) exited non-zero on 'DAHDI/i1/5132083300-4' rssr305*CLI -- Hungup 'DAHDI/i1/5132083300-4' -- Hungup 'DAHDI/i1/5132083300-4' rssr305*CLI The CHANNEL(reversecharge) value is set from the Reverse Charging Indication ie received in the incoming SETUP message. Please capture the incoming SETUP from libpri for the collect call. pri set debug on span x 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
Re: [asterisk-users] Block Collect Calls on ISDN trunk
Reversecharge not appear in debug. I'm in Brazil, the signaling is different here? Att, Rafael Saraiva 2012/2/17 Richard Mudgett rmudg...@digium.com The value is always -1. I must enable something in chan_dahdi to pass the correct value? ++ [PABX] exten=_X.,1,Gotoif([${CHANNEL(reversecharge)} = -1] ?entrada,${EXTEN},1:hangup,${EXTEN},1) +++ rssr305*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 rssr305*CLI -- Executing [1584@PABX:1] GotoIf(DAHDI/i1/5132083300-4, [-1 = -1] ?entrada,1584,1:hangup,1584,1) in new stack -- Goto (entrada,1584,1) -- Executing [1584@PABX:1] GotoIf(DAHDI/i1/5132083300-4, [-1 = -1] ?entrada,1584,1:hangup,1584,1 ) in new stack -- Executing [1584@entrada:1] Answer(DAHDI/i1/5132083300-4, ) in new stack -- Goto (entrada,1584,1) -- Executing [1584@entrada:1] Answer(DAHDI/i1/5132083300-4, ) in new stack rssr305*CLI -- Executing [1584@entrada:2] Dial(DAHDI/i1/5132083300-4, SIP/1584,30,tT) in new stack -- Executing [1584@entrada:2] Dial(DAHDI/i1/5132083300-4, SIP/1584,30,tT) in new stack rssr305*CLI == Using SIP RTP CoS mark 5 == Using SIP RTP CoS mark 5 rssr305*CLI -- Called SIP/1584 -- Called SIP/1584 rssr305*CLI -- SIP/1584-001e is ringing -- SIP/1584-001e is ringing rssr305*CLI -- SIP/1584-001e answered DAHDI/i1/5132083300-4 -- SIP/1584-001e answered DAHDI/i1/5132083300-4 rssr305*CLI -- Span 1: Channel 0/18 got hangup request, cause 0 -- Span 1: Channel 0/18 got hangup request, cause 0 rssr305*CLI == Spawn extension (entrada, 1584, 2) exited non-zero on 'DAHDI/i1/5132083300-4' == Spawn extension (entrada, 1584, 2) exited non-zero on 'DAHDI/i1/5132083300-4' rssr305*CLI -- Hungup 'DAHDI/i1/5132083300-4' -- Hungup 'DAHDI/i1/5132083300-4' rssr305*CLI The CHANNEL(reversecharge) value is set from the Reverse Charging Indication ie received in the incoming SETUP message. Please capture the incoming SETUP from libpri for the collect call. pri set debug on span x 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
Re: [asterisk-users] Block Collect Calls on ISDN trunk
Reversecharge not appear in debug . I'm in Brazil , the signaling is different here ? Please capture the incoming SETUP from libpri for the collect call. pri set debug on span x 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
[asterisk-users] Block Collect Calls on ISDN trunk
How to block collect calls on ISDN trunk? Thank's Att, Rafael Saraiva -- _ -- 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
Re: [asterisk-users] Block Collect Calls on ISDN trunk
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
Re: [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 rmudg...@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 -- _ -- 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
Re: [asterisk-users] Block Collect Calls on ISDN trunk
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