[asterisk-bugs] [Asterisk 0009449]: "Dial(mISDN/g:te/${EXTEN})" don't set up L2Link but "Dial(mISDN/1/${EXTEN}" works

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Nov 16 02:57:04 CST 2007


The following issue has been RESOLVED. 
====================================================================== 
http://bugs.digium.com/view.php?id=9449 
====================================================================== 
Reported By:                ibc
Assigned To:                crich
====================================================================== 
Project:                    Asterisk
Issue ID:                   9449
Category:                   Channels/chan_misdn
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     resolved
Asterisk Version:           1.4.2  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        No 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             04-03-2007 06:43 CDT
Last Modified:              11-16-2007 02:57 CST
====================================================================== 
Summary:                    "Dial(mISDN/g:te/${EXTEN})" don't set up L2Link but
"Dial(mISDN/1/${EXTEN}" works
Description: 
Asterisk 1.4.2 with Junghans QuadBri BRI-ISDN card handled with mISDN.

I have 3 BRI's in PTP mode configured as a "te" group in misdn.conf and
incoming calls work perfectly.

Outgoing calls dialing the "te" group fail but outgoings calls dialing any
mISDN port work. The following example shows what I mean:

- 940 exten is:  Dial(mISDN/g:te/675511308)
- 941 exten is:  Dial(mISDN/1/675511308)
- "te" group is:
  [te]
    ports=1,2,3
    context=entrantes-analogicas
    msns=*

I dial 940 and it fails:
-------------------------------------------
asterisk*CLI> misdn show stacks
BEGIN STACK_LIST:
  * Port 1 Type TE Prot. PTP L2Link DOWN L1Link:UP Blocked:0  Debug:0
  * Port 2 Type TE Prot. PTP L2Link DOWN L1Link:UP Blocked:0  Debug:0
  * Port 3 Type TE Prot. PTP L2Link DOWN L1Link:UP Blocked:0  Debug:0
    -- Executing [940 at desde-usuarios:1] Dial("SIP/ibc-tfno-ip-b5907340",
"mISDN/g:te/675511308") in new stack
P[ 1] Port Down L2:0 L1:1
P[ 2] Port Down L2:0 L1:1
P[ 3] Port Down L2:0 L1:1
[Apr  3 12:16:08] WARNING[23210]: chan_misdn.c:5256 chan_misdn_log: Could
not create channel on port:-1 with extensions:675511308
-------------------------------------------

I dial 941 and it works:
-------------------------------------------
asterisk*CLI> misdn show stacks
BEGIN STACK_LIST:
  * Port 1 Type TE Prot. PTP L2Link DOWN L1Link:UP Blocked:0  Debug:0
  * Port 2 Type TE Prot. PTP L2Link DOWN L1Link:UP Blocked:0  Debug:0
  * Port 3 Type TE Prot. PTP L2Link DOWN L1Link:UP Blocked:0  Debug:0
    -- Executing [941 at desde-usuarios:1] Dial("SIP/ibc-tfno-ip-b5900c90",
"mISDN/1/675511308") in new stack
P[ 0] maxnum:2    -- Called 1/675511308
P[ 1] channel already in use:1
    -- mISDN/1-u271 is proceeding passing it to SIP/ibc-tfno-ip-b5900c90
-------------------------------------------

If I call instantly 940 it works because there is at least one port with
L2Link UP (port 1):
-------------------------------------------
asterisk*CLI> misdn show stacks
BEGIN STACK_LIST:
  * Port 1 Type TE Prot. PTP L2Link UP L1Link:UP Blocked:0  Debug:0
  * Port 2 Type TE Prot. PTP L2Link DOWN L1Link:UP Blocked:0  Debug:0
  * Port 3 Type TE Prot. PTP L2Link DOWN L1Link:UP Blocked:0  Debug:0
    -- Executing [940 at desde-usuarios:1] Dial("SIP/ibc-tfno-ip-b5900c90",
"mISDN/g:te/675511308") in new stack
P[ 0] maxnum:2    -- Called g:te/675511308
P[ 1] channel already in use:1
    -- mISDN/1-u275 is proceeding passing it to SIP/ibc-tfno-ip-b5900c90
-------------------------------------------

So my conclusion is:
- Dialing directly to a mISDN port works well and sets up port L2Link.
- Dialing to a mISDN group JUST works if there is a port with L2Link UP.
====================================================================== 

---------------------------------------------------------------------- 
 crich - 11-16-07 02:57  
---------------------------------------------------------------------- 
This issue has been proved to be resolved by the introduction of the
application: 

misdn_check_l2l1 

which should be used shortly before dialing on a mISDN group like:

[macro-outbound]
exten => s,1,misdn_check_l2l1(g:outsidelines|1)
exten => s,n,Dial(mISDN/g:outsidelines/${ARG1})


This is currently the recommended way of resolving this issue. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-16-07 02:57  crich          Status                   assigned => resolved
11-16-07 02:57  crich          Resolution               open => fixed       
11-16-07 02:57  crich          Note Added: 0073791                          
======================================================================




More information about the asterisk-bugs mailing list