[asterisk-bugs] [LibPRI 0016477]: [patch] Add pri_new_bri_cb() API - Create BRI D-channel with user defined I/O callbacks and data

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Jul 22 12:59:57 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16477 
====================================================================== 
Reported By:                nic_bellamy
Assigned To:                
====================================================================== 
Project:                    LibPRI
Issue ID:                   16477
Category:                   NewFeature
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
JIRA:                       SWP-1686 
libpri Version:             SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 1395 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2009-12-20 16:15 CST
Last Modified:              2010-07-22 12:59 CDT
====================================================================== 
Summary:                    [patch] Add pri_new_bri_cb() API - Create BRI
D-channel with user defined I/O callbacks and data
Description: 
There currently exists a pri_new_cb() API call that allows you to create a
PRI with user-defined I/O read and write callbacks, and option userdata.

I'm using this to hook read/write calls and log the raw data to PCAP files
for later analysis with Wireshark, among other bits and pieces such as
using userdata to point back to the related zt_pri structure for logging
the span number with any libpri messages.

The attached patch adds the same capability for BRI interfaces by adding a
pri_new_bri_cb() API function.
====================================================================== 

---------------------------------------------------------------------- 
 (0124863) svnbot (reporter) - 2010-07-22 12:59
 https://issues.asterisk.org/view.php?id=16477#c124863 
---------------------------------------------------------------------- 
Repository: libpri
Revision: 1836

U   branches/1.4/libpri.h
U   branches/1.4/pri.c

------------------------------------------------------------------------
r1836 | rmudgett | 2010-07-22 12:59:56 -0500 (Thu, 22 Jul 2010) | 13 lines

Add pri_new_bri_cb() API - Create BRI D-channel with user defined I/O
callbacks and data

There currently exists a pri_new_cb() API call that allows you to create a
PRI with user-defined I/O read and write callbacks, and option userdata.

Add the same capability for BRI interfaces by adding a pri_new_bri_cb()
API function.

(closes issue https://issues.asterisk.org/view.php?id=16477)
Reported by: nic_bellamy
Patches:
      pri_new_bri_cb_api.patch uploaded by nic bellamy (license 299) (with
minor cosmetic changes)

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

http://svn.digium.com/view/libpri?view=rev&revision=1836 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-07-22 12:59 svnbot         Checkin                                      
2010-07-22 12:59 svnbot         Note Added: 0124863                          
======================================================================




More information about the asterisk-bugs mailing list