[asterisk-bugs] [Asterisk 0013491]: unable to place outgoing call on TE Port

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jan 14 13:20:32 CST 2009


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=13491 
====================================================================== 
Reported By:                avalentin
Assigned To:                rmudgett
====================================================================== 
Project:                    Asterisk
Issue ID:                   13491
Category:                   Channels/chan_misdn
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.0-rc6 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2008-09-16 09:55 CDT
Last Modified:              2009-01-14 13:20 CST
====================================================================== 
Summary:                    unable to place outgoing call on TE Port
Description: 
Beginning with SVN Revision 132967 asterisk is unable to place outgoing
calls on TE ports. In SVN Revision 132966 everything works fine. 
It seems that this change is responsible for that (132966:132967):

@@ -3121,8 +3134,8 @@
        struct timeval now;
        gettimeofday(&now, NULL);
        if (!bc->in_use) {
-               if (bc->last_used.tv_sec < now.tv_sec) {
-                       cb_log(0,bc->port, "channel with stid:%x for one
second still in use!\n", bc->b_stid);
+               if (misdn_lib_port_is_pri(bc->port) &&
bc->last_used.tv_sec == now.tv_sec ) {
+                       cb_log(2,bc->port, "channel with stid:%x for one
second still in use! (n:%d lu:%d)\n", bc->b_stid, (int) now.tv_sec, (int)
bc->last_u
sed.tv_sec);
                        return 1;
                }
        }

Console output with debugging enabled:
*CLI> P[ 0] MGMT: SSTATUS: L1_ACTIVATED 
P[ 1] MGMT: SSTATUS: L2_RELEASED 
P[ 1] MGMT: SSTATUS: L2_ESTABLISH 
    -- Attempting call on MISDN/1/012341212 for application Echo() (Retry
1)
P[ 1] There is no free channel on port (1)
[Sep 16 17:02:12] WARNING[28356]: chan_misdn.c:3333 misdn_request: Could
not create channel on port:1 with extensions:012341212
[Sep 16 17:02:12] NOTICE[28356]: channel.c:3309 __ast_request_and_dial:
Unable to request channel MISDN/1/012341212
[Sep 16 17:02:12] NOTICE[28356]: pbx_spool.c:346 attempt_thread: Call
failed to go through, reason (0) Call Failure (not BUSY, and not NO_ANSWER,
maybe Circuit busy or down?)

By removing the patch above everything seems to work as expected.
We tried 4 Port Cards, Fritzcards and USB TAs. Everytime the same error.

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-01-14 13:20 svnbot         Assigned To              crich => rmudgett   
======================================================================




More information about the asterisk-bugs mailing list