[asterisk-bugs] [Asterisk 0015718]: [patch] Distinctive ring detection not working. Exits after first cadence

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Jul 12 05:27:54 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15718 
====================================================================== 
Reported By:                alecdavis
Assigned To:                jpeeler
====================================================================== 
Project:                    Asterisk
Issue ID:                   15718
Category:                   Channels/chan_dahdi
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Target Version:             1.4.35
Asterisk Version:           SVN 
JIRA:                       SWP-1759 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 211232 
Request Review:              
====================================================================== 
Date Submitted:             2009-08-13 22:54 CDT
Last Modified:              2010-07-12 05:27 CDT
====================================================================== 
Summary:                    [patch] Distinctive ring detection not working.
Exits after first cadence
Description: 
ARRAYLEN(ringdata) before call to my_distinctive_ring=3, but inside
my_distincetive_ring=1, so have hardcoded 3. (must be a better way!)

====================================================================== 

---------------------------------------------------------------------- 
 (0124481) alecdavis (manager) - 2010-07-12 05:27
 https://issues.asterisk.org/view.php?id=15718#c124481 
---------------------------------------------------------------------- 
after setting chan_dahdi.conf with following values, using
SVN-trunk-r275551, with distinctiveringaftercid=yes enabled, didn't need
the patch.

in chan_dahdi.conf<pre>[channels]
....
; Distinctive Ring 1 - Forwarded Calls
cadence=400,400,200,200,400,1400
; Distinctive Ring 2 - Selective Ring 2 + Operator + Recall
cadence=400,400,200,2000
; Distinctive Ring 3 - Multiple Subscriber Number 1
cadence=200,200,400,2200
; Distinctive Ring 4 - Selective Ring 1 + Centrex
cadence=400,2600
; Distinctive Ring 5 - Selective Ring 3
cadence=400,400,200,400,200,1400
; Distinctive Ring 6 - Multiple Subscriber Number 2
cadence=200,400,200,200,400,1600
; Distinctive Ring 7 - Multiple Subscriber Number 3 + Data Privacy
cadence=200,400,200,400,200,1600

....

dring1=247,337,277
dring1context=internal1
dring1range=10
dring2=247,366,277
dring2context=internal2
dring2range=10
dring3=97,247,147
dring3context=internal3
dring3range=10</pre>
Hardware setup:
  TE121 channles 1-31
  TDM800P
    channel 32 (FXS module)
    channel 37 (FXO module)

The dialplan;
exten => 71,1,Dial(DAHDI/32r1)  ;Garage -> (LoopIn)
exten => 72,1,Dial(DAHDI/32r2)  ;Garage -> (LoopIn)
exten => 73,1,Dial(DAHDI/32r3)  ;Garage -> (LoopIn)
exten => 74,1,Dial(DAHDI/32r4)  ;Garage -> (LoopIn)
exten => 75,1,Dial(DAHDI/32r5)  ;Garage -> (LoopIn)
exten => 76,1,Dial(DAHDI/32r6)  ;Garage -> (LoopIn)
exten => 77,1,Dial(DAHDI/32r7)  ;Garage -> (LoopIn)

console output:
    -- Executing [71 at phones:1] Dial("DAHDI/35-1", "DAHDI/32r1") in new
stack
    -- Called 32r1
    -- DAHDI/32-1 is ringing
    -- DAHDI/32-1 is ringing
    -- Starting simple switch on 'DAHDI/37-1'
    -- DAHDI/32-1 is ringing
    -- DAHDI/32-1 is ringing
    -- Detecting post-CID distinctive ring
    -- DAHDI/32-1 is ringing
[Jul 12 22:25:29] NOTICE[11604]: chan_dahdi.c:1776 my_distinctive_ring:
Got event 2 (Ring/Answered)...
    -- Detected ring pattern: 247,337,277
    -- Checking 247,337,277
    -- Ring pattern check range: 10
    -- Ring pattern matched in range: 237 to 257
    -- Ring pattern check range: 10
    -- Ring pattern matched in range: 327 to 347
    -- Ring pattern check range: 10
    -- Ring pattern matched in range: 267 to 287
    -- Distinctive Ring matched context internal1
    -- Executing [s at internal1:1] NoOp("DAHDI/37-1", "callerid="" <>") in
new stack
    -- Executing [s at internal1:2] Wait("DAHDI/37-1", "10") in new stack
    -- DAHDI/32-1 is ringing
    -- DAHDI/32-1 is ringing
    -- DAHDI/32-1 is ringing
    -- DAHDI/32-1 is ringing
    -- DAHDI/32-1 is ringing
    -- Hanging up on 'DAHDI/32-1'
    -- Hungup 'DAHDI/32-1'
  == Spawn extension (phones, 71, 1) exited non-zero on 'DAHDI/35-1'
    -- Hanging up on 'DAHDI/35-1'
    -- Hungup 'DAHDI/35-1' 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-07-12 05:27 alecdavis      Note Added: 0124481                          
======================================================================




More information about the asterisk-bugs mailing list