[asterisk-bugs] [LibPRI 0015970]: [patch] Retrieve PRI events passively

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jan 21 02:23:27 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15970 
====================================================================== 
Reported By:                moy
Assigned To:                
====================================================================== 
Project:                    LibPRI
Issue ID:                   15970
Category:                   NewFeature
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
JIRA:                       SWP-1689 
libpri Version:             SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 1140 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2009-09-26 20:04 CDT
Last Modified:              2011-01-21 02:23 CST
====================================================================== 
Summary:                    [patch] Retrieve PRI events passively
Description: 
In order to support tapping in PRI lines I needed to passively process Q921
frames (not checking the state of the call etc) basically I just wanted to
hand libpri a Q921 frame and get back a PRI event like RING, ANSWER,
PROCEEDING etc. This little patch adds a new libpri api to do exactly that.
It's being used by the tapping dahdi branch
http://svnview.digium.com/svn/asterisk/team/moy/dahdi-tap-trunk/ which
seems to be working pretty well.

I also have branch http://svnview.digium.com/svn/libpri/team/moy/tap-1.4/
which has this changes.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0015971 [patch] Support for physical tapping in...
====================================================================== 

---------------------------------------------------------------------- 
 (0130848) ganeshkumar (reporter) - 2011-01-21 02:23
 https://issues.asterisk.org/view.php?id=15970#c130848 
---------------------------------------------------------------------- 
I tried this patch for libpri version 1.4.10, it is working fine.
But it says below error for version 1.4.11.5

patch output:

patching file libpri.h
Reversed (or previously applied) patch detected!  Assume -R? [n] y
Hunk https://issues.asterisk.org/view.php?id=1 succeeded at 846 (offset 111
lines).
Hunk https://issues.asterisk.org/view.php?id=2 FAILED at 935.
1 out of 2 hunks FAILED -- saving rejects to file libpri.h.rej
patching file pri.c
Hunk https://issues.asterisk.org/view.php?id=1 succeeded at 491 (offset 86
lines).
Hunk https://issues.asterisk.org/view.php?id=2 FAILED at 992.
Hunk https://issues.asterisk.org/view.php?id=3 succeeded at 1419 with fuzz 1
(offset 232 lines).
1 out of 3 hunks FAILED -- saving rejects to file pri.c.rej
patching file q931.c
Hunk https://issues.asterisk.org/view.php?id=1 FAILED at 91.
Hunk https://issues.asterisk.org/view.php?id=2 succeeded at 175 (offset 4
lines).
Hunk https://issues.asterisk.org/view.php?id=3 FAILED at 4323.
Hunk https://issues.asterisk.org/view.php?id=4 FAILED at 4396.
Hunk https://issues.asterisk.org/view.php?id=5 FAILED at 4505.
Hunk https://issues.asterisk.org/view.php?id=6 succeeded at 6974 (offset 2370
lines).
Hunk https://issues.asterisk.org/view.php?id=7 succeeded at 7007 (offset 2371
lines).
Hunk https://issues.asterisk.org/view.php?id=8 FAILED at 7048.
Hunk https://issues.asterisk.org/view.php?id=9 FAILED at 7117.
Hunk https://issues.asterisk.org/view.php?id=10 FAILED at 7147.
Hunk https://issues.asterisk.org/view.php?id=11 succeeded at 7142 with fuzz 2
(offset 2292 lines).
Hunk https://issues.asterisk.org/view.php?id=12 succeeded at 7173 (offset 2290
lines).
Hunk https://issues.asterisk.org/view.php?id=13 succeeded at 7307 with fuzz 2
(offset 2307 lines).
Hunk https://issues.asterisk.org/view.php?id=14 succeeded at 7320 (offset 2310
lines).
Hunk https://issues.asterisk.org/view.php?id=15 FAILED at 7386.
Hunk https://issues.asterisk.org/view.php?id=16 succeeded at 8180 with fuzz 1
(offset 2853 lines).
8 out of 16 hunks FAILED -- saving rejects to file q931.c.rej
patching file pri_q931.h
Hunk https://issues.asterisk.org/view.php?id=1 FAILED at 427.
Hunk https://issues.asterisk.org/view.php?id=2 FAILED at 463.
2 out of 2 hunks FAILED -- saving rejects to file pri_q931.h.rej

I need solution for this.
kindly help me out. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-21 02:23 ganeshkumar    Note Added: 0130848                          
======================================================================




More information about the asterisk-bugs mailing list