[asterisk-bugs] [Asterisk 0011308]: Picking the wrong extension

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Nov 19 19:33:04 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11308 
====================================================================== 
Reported By:                pnlarsson
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   11308
Category:                   PBX/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 89346 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             11-19-2007 14:24 CST
Last Modified:              11-19-2007 19:33 CST
====================================================================== 
Summary:                    Picking the wrong extension
Description: 
After the hash pbx stuff was committed, ie latest trunk, asterisk is
picking the wrong extension.

extension.conf:

[from-internal]
include=>ext_test
include=>ext_local

[ext-local]
exten=>201,1,Noop(201)

[ext_test]
exten=>20,1,Noop(20)


The CLI output when dialing 201:

  == Using TOS bits 0
  == Using CoS mark 5
    -- Executing [201 at from-internal:1] NoOp("SIP/2003-b7009610", "20")
in new stack
    -- Auto fallthrough, channel 'SIP/2003-b7009610' status is 'UNKNOWN'
====================================================================== 

---------------------------------------------------------------------- 
 murf - 11-19-07 19:33  
---------------------------------------------------------------------- 
I'm glad you filed this as a bug. 

First, I have checked this against 1.4, and in your example, trunk and 1.4
behave the same.

But, there IS a bug! When I combine the three contexts into a single
extension:

[from-internal]
exten=>20,1,Noop(20)
exten=>201,1,Noop(201)

Then, if you dial 201, in 1.4, you will choose the 201 extension, and in
trunk, you get the 20 extension. This is wrong.

I have spent the day and corrected this behavior. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-19-07 19:33  murf           Note Added: 0074024                          
======================================================================




More information about the asterisk-bugs mailing list