[asterisk-bugs] [Asterisk 0013651]: [patch] Make func_realtime work more like app_realtime

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Nov 19 14:44:36 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13651 
====================================================================== 
Reported By:                Corydon76
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   13651
Category:                   Functions/func_realtime
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 147591 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-10-09 08:36 CDT
Last Modified:              2008-11-19 14:44 CST
====================================================================== 
Summary:                    [patch] Make func_realtime work more like
app_realtime
Description: 
As requested on the -users list, make 2 new methods in func_realtime, one
called REALTIME_FIELD, which retrieves a single field from realtime, and
one called REALTIME_HASH, which retrieves a single record from realtime, in
a format appropriate for assigning to the HASH() function.
====================================================================== 

---------------------------------------------------------------------- 
 (0095101) Corydon76 (administrator) - 2008-11-19 14:44
 http://bugs.digium.com/view.php?id=13651#c95101 
---------------------------------------------------------------------- 
My table:

+-------------+------------------+------+-----+---------+-------+
| Field       | Type             | Null | Key | Default | Extra |
+-------------+------------------+------+-----+---------+-------+
| name        | varchar(40)      | NO   | PRI |         |       |
| type        | char(10)         | YES  |     | friend  |       |
| secret      | varchar(40)      | NO   |     |         |       |
| context     | varchar(40)      | NO   |     |         |       |
| username    | varchar(40)      | YES  |     | NULL    |       |
| host        | char(40)         | YES  |     | NULL    |       |
| ipaddr      | varchar(20)      | NO   |     |         |       |
| port        | mediumint(5)     | YES  |     | NULL    |       |
| regseconds  | int(11) unsigned | YES  |     | NULL    |       |
| defaultuser | char(10)         | YES  |     | NULL    |       |
| fullcontact | char(100)        | YES  |     | NULL    |       |
| regserver   | char(20)         | YES  |     | NULL    |       |
| useragent   | char(30)         | YES  |     | NULL    |       |
| disallow    | char(10)         | YES  |     | all     |       |
| allow       | char(50)         | YES  |     | ulaw    |       |
| call-limit  | tinyint(2)       | YES  |     | 1       |       |
| qualify     | char(3)          | YES  |     | NULL    |       |
+-------------+------------------+------+-----+---------+-------+
17 rows in set (0.03 sec) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-11-19 14:44 Corydon76      Note Added: 0095101                          
======================================================================




More information about the asterisk-bugs mailing list