Summary:ASTERISK-12556: Impossible to retrieve privacy info in a PRI incoming call
Reporter:Iñaki Baz Castillo (ibc)Labels:
Date Opened:2008-08-11 04:50:50Date Closed:2011-06-07 14:03:00
Versions:Frequency of
Description:Hi, AFAIK Asterisk doesn't provide a way to check, in the dialplan, if a PRI incoming call has privacy set for the callerID. If we check CALLERID(xxx) variable it returns the real callerid but we cannot know if privacy has been requested.

I propose a variable or a function to retrieve this information, something as PRIVACY (yes/no):

 exten => _XX.,1,NoOp(--- Privacy requested: ${PRIVACY} ---)
Comments:By: Leif Madsen (lmadsen) 2008-08-11 08:00:09

Thanks for taking this! Acknowledged on #asterisk-bugs.

By: Leif Madsen (lmadsen) 2008-08-11 09:36:14

Haha oops.. I apparently phat fingered this bug. I meant to assign a different one :)

By: Iñaki Baz Castillo (ibc) 2008-08-27 04:59:35

I've realized that a way to know it:

exten => _XXXXX.,n,GotoIf($[${MATH(${CALLINGPRES}>30)}=TRUE]?privacy:end-privacy)


By: Tilghman Lesher (tilghman) 2008-08-27 09:07:14

Reporter acknowledges that no change is needed.

By: Iñaki Baz Castillo (ibc) 2008-08-27 09:16:26

Well, I think that using:
is just a "workaround".

IMHO it could be nice a variable:

By: Leif Madsen (lmadsen) 2008-08-27 11:08:13

As there is a workaround for this issue entirely in dialplan (even though it might not be the ideal -- it does work), I'm closing this issue as technically it is a feature request.

I have asked in #asterisk-bugs if someone would like to assign it to themselves to create the variable, but unless someone would like to provide a patch to satisfy the feature request, then this issue shall remain closed for now.