[asterisk-bugs] [Asterisk 0019062]: PRI party subaddress odd_even_indicator inconsitency / undocumented

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Apr 4 07:34:45 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=19062 
====================================================================== 
Reported By:                festr
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   19062
Category:                   Channels/chan_dahdi
Reproducibility:            have not tried
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 311931 
Request Review:              
====================================================================== 
Date Submitted:             2011-04-04 06:35 CDT
Last Modified:              2011-04-04 07:34 CDT
====================================================================== 
Summary:                    PRI party subaddress odd_even_indicator inconsitency
/ undocumented
Description: 
I'm playing with party subaddress -> Call(DAHDI/g1/1234:u0a23a4)

this syntax should set party subaddress to user specified and
odd_even_indicator to 0. Unfortunatly, odd_even_indicator is overwritten in
channels/sig_pri.c in function sig_pri_party_subaddress_from_ast:
pri_subaddress->odd_even_indicator = (length & 1); 

So you cannot set your own odd_even_indicator specified by prefix 'u' or
'U' as it depends always on string length. I've hecked it by uncommenting
"pri_subaddress->odd_even_indicator = (length & 1);" 
====================================================================== 

---------------------------------------------------------------------- 
 (0133334) festr (reporter) - 2011-04-04 07:34
 https://issues.asterisk.org/view.php?id=19062#c133334 
---------------------------------------------------------------------- 
Uploading patch which sets odd_even indicator according to what user sets
in subaddr prefix. This applies only for uU prefix which sets "user
specified" subbaddress. Without this modification, odd_even is set
according to its length which is maybe right but uU prefix is useless than.
Sometimes I need to passthrough odd_even indicator from one E1 to another
E1 and I need to do 1:1 mapping which is not possible right now. My
suggestion is to add another option which tells to use user-specified and
automatic odd-even indicator (l prefix?). 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-04-04 07:34 festr          Note Added: 0133334                          
======================================================================




More information about the asterisk-bugs mailing list