[Home]

Summary:ASTERISK-13422: Access to encryption functions from dial plan
Reporter:Benny Amorsen (amorsen)Labels:
Date Opened:2009-01-21 15:22:11.000-0600Date Closed:2009-01-27 16:48:47.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/NewFeature
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Leif Madsen asked me to open this feature request.

What I need is a function which can generate a salt and a function
which can encrypt (with e.g. AES) a given string with a given key, and
of course a function to decrypt the string with that key.

Asterisk already has encryption functions, they just aren't available from the dial plan.

Rationale:

We have two Asterisks, one for incoming and one for outgoing calls,
and a PBX of unknown type in the middle (typically Asterisk too, but
not always under our control.)

Incoming <=> Unknown <=> Outgoing

Some calls get passed from the Incoming to the Unknown and then back
out through Outgoing. I need to be able to transfer information from
Incoming to Outgoing for those calls, and I can reasonably count on
the cooperation of Unknown.

Easy, you say, just SipAddHeader on Incoming and Unknown, and read it
on Outgoing. Unfortunately the information passed is confidential (it
is actually information about caller ID's of calls with suppressed
Caller ID), and Unknown isn't allowed to see it.
Comments:By: Leif Madsen (lmadsen) 2009-01-21 16:18:11.000-0600

I have assigned this to dvossell, and he'll take at look at it, time permitting. Thanks!

By: Digium Subversion (svnbot) 2009-01-27 16:43:24.000-0600

Repository: asterisk
Revision: 171757

U   trunk/CHANGES
A   trunk/funcs/func_aes.c

------------------------------------------------------------------------
r171757 | dvossel | 2009-01-27 16:43:23 -0600 (Tue, 27 Jan 2009) | 7 lines

Adding AES_ENCRYPT and AES_DECRYPT dialplan functions.  

(closes issue ASTERISK-13422)
Reported by: amorsen

review: http://reviewboard.digium.com/r/128/

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=171757

By: Digium Subversion (svnbot) 2009-01-27 16:48:07.000-0600

Repository: asterisk
Revision: 171758

_U  branches/1.6.0/

------------------------------------------------------------------------
r171758 | dvossel | 2009-01-27 16:48:07 -0600 (Tue, 27 Jan 2009) | 13 lines

Blocked revisions 171757 via svnmerge

........
 r171757 | dvossel | 2009-01-27 16:43:36 -0600 (Tue, 27 Jan 2009) | 7 lines
 
 Adding AES_ENCRYPT and AES_DECRYPT dialplan functions.  
 
 (closes issue ASTERISK-13422)
 Reported by: amorsen
 
 review: http://reviewboard.digium.com/r/128/
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=171758

By: Digium Subversion (svnbot) 2009-01-27 16:48:46.000-0600

Repository: asterisk
Revision: 171759

_U  branches/1.6.1/

------------------------------------------------------------------------
r171759 | dvossel | 2009-01-27 16:48:46 -0600 (Tue, 27 Jan 2009) | 13 lines

Blocked revisions 171757 via svnmerge

........
 r171757 | dvossel | 2009-01-27 16:43:36 -0600 (Tue, 27 Jan 2009) | 7 lines
 
 Adding AES_ENCRYPT and AES_DECRYPT dialplan functions.  
 
 (closes issue ASTERISK-13422)
 Reported by: amorsen
 
 review: http://reviewboard.digium.com/r/128/
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=171759