[asterisk-bugs] [LibPRI 0013760]: [patch] Block Reverse Calls

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Jun 23 11:02:10 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=13760 
====================================================================== 
Reported By:                mrgabu
Assigned To:                seanbright
====================================================================== 
Project:                    LibPRI
Issue ID:                   13760
Category:                   New/Feature
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           1.4.22 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-10-22 05:13 CDT
Last Modified:              2009-06-23 11:02 CDT
====================================================================== 
Summary:                    [patch] Block Reverse Calls
Description: 
This patch block every reverse/collect calls on a ISDN trunk.
So, once patched, asterisk will never receive these calls.
====================================================================== 

---------------------------------------------------------------------- 
 (0106851) pruonckk (reporter) - 2009-06-23 11:02
 https://issues.asterisk.org/view.php?id=13760#c106851 
---------------------------------------------------------------------- 
I try to implement this patch using a asterisk 1.4.22.2 and libpri 1.4.7 ,
i rewrite the patch to apply on my version of asterisk and libpri, and
apply the changes on channel_zap.c 

On my dialplan when i do a NoOp(PRIREVERSECHARGE => ${PRIREVERSECHARGE}) i
dont get any result ( nor 0 nor 1)

Block collect calls on Brazil is very important because some telco dont do
the block, so we have a problem with this.

Below a part of pri debug that show the charging indication (with the
patch)

< [4a 01 81]
< Reverse Charging Indication (len=03): 1

on cli i get

    -- Executing [9700 at embratel:4] NoOp("Zap/80-1", "CALLERID =>
XXXXXXXXXX") in new stack
    -- Executing [9700 at embratel:5] NoOp("Zap/80-1", "PRIREVERSECHARGE =>
") in new stack


and on my extension.conf i put this

exten => _97[0-4][0-9],n,NoOp(CALLERID => ${CALLERID(num)})
exten => _97[0-4][0-9],n,NoOp(PRIREVERSECHARGE => ${PRIREVERSECHARGE})


some minutes ago i try to do a diferent implementation on chan_zap.c

i try this

if (e->ring.reversecharge){
      pbx_builtin_setvar_helper(c, "PRIREVERSECHARGE", "1");
} else {
      pbx_builtin_setvar_helper(c, "PRIREVERSECHARGE", "0");
}

but i cant get any result on my dialplan


My asterisk is a modified version with openr2 patch too 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-23 11:02 pruonckk       Note Added: 0106851                          
======================================================================




More information about the asterisk-bugs mailing list