[Home]

Summary:ASTERISK-17440: Dialed Number Truncated in the "Dialing..." Output on the Console
Reporter:Vladimir Mikhelson (vmikhelson)Labels:
Date Opened:2011-02-20 01:17:40.000-0600Date Closed:2011-04-14 16:02:40
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_dahdi
Versions:1.8.2 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:The following is seen when a call goes out on a DAHDI trunk in the Console screen only, i.e. ssh sessions are not affected.

.......
   Called 1/18475551212
Dialing T1847555121 on 1   *** The last digit is missing in the number dialed ***
Dialing www0w on 1         *** Not quite clear what that means ****
   DAHDI/1-1 answered DAHDI/8-1
   Native bridging DAHDI/8-1 and DAHDI/1-1
........
Comments:By: Leif Madsen (lmadsen) 2011-02-23 16:01:02.000-0600

Please provide the dialplan that is in use for this, along with the output you expect to see.

By: Vladimir Mikhelson (vmikhelson) 2011-02-23 21:20:56.000-0600

Here is the respective piece of the full log.  Apparently the output in question is produced by app_dial.c.

I expect to see untruncated number, i.e. 8475551212 vs 847555121.

[Feb 20 13:59:04] VERBOSE[3794] pbx.c:     -- Executing [s@macro-dialout-trunk:19] Dial("DAHDI/8-1", "DAHDI/1/18475551212,300,") in new stack
[Feb 20 13:59:05] VERBOSE[3794] app_dial.c:     -- Called 1/18475551212
[Feb 20 13:59:10] VERBOSE[3794] app_dial.c:     -- DAHDI/1-1 answered DAHDI/8-1
[Feb 20 13:59:10] VERBOSE[3794] chan_dahdi.c:     -- Native bridging DAHDI/8-1 and DAHDI/1-1

By: Leif Madsen (lmadsen) 2011-04-14 09:50:59

In your output I don't see a truncated number (not in your note output anyways).

I have sometimes seen the console drop data for some reason. I'm going to close this issue as it's quite old. If it's still an issue, please reopen after testing with the latest Asterisk version.

By: Vladimir Mikhelson (vmikhelson) 2011-04-14 10:22:25

@lmadsen
Retested on 1.8.3.3.  Please pay attention to the "Dialing", the second output line.

Same story.  Once again it is only visible on the CONSOLE output. I was unable to see this output in the logs.

Called 1/18475551212
Dialing T1847555121 on 1 *** The LAST digit is MISSING in the number dialed ***
Dialing www0w on 1 *** Not quite clear what that means ****
   DAHDI/1-1 answered DAHDI/8-1
   Native bridging DAHDI/8-1 and DAHDI/1-1



By: Richard Mudgett (rmudgett) 2011-04-14 11:14:48

Is the wrong number dialed or is this just console output?

By: Richard Mudgett (rmudgett) 2011-04-14 15:32:19

I have reproduced this so I'll answer my own question.

The wrong number is not dialed.  The output you are questioning is actually left over debug statements.  If you will notice, the "missing" digit is is in the "www0w".  The dial is broken into two pieces to do echo training because you have enabled the echotraining option in chan_dahdi.conf.

I will commit a patch so those messages are not unconditionally printed.

By: Digium Subversion (svnbot) 2011-04-14 15:59:58

Repository: asterisk
Revision: 313780

U   branches/1.8/channels/chan_dahdi.c

------------------------------------------------------------------------
r313780 | rmudgett | 2011-04-14 15:59:57 -0500 (Thu, 14 Apr 2011) | 20 lines

Leftover debug messages unconditionally sent to the console.

Executing Dial(DAHDI/1/18475551212,300,) with the echotraining config
option enabled outputs the following debug messages unconditionally:

Dialing T1847555121 on 1
Dialing www2w on 1

* Made debug messages in my_dial_digits() normal debug messages that do
not get output unless enabled.

* Reworded some debug messages in my_dial_digits() to be clearer.

* Replace strncpy() with ast_copy_string() in my_dial_digits() which does
the same job better.

(closes issue ASTERISK-17440)
Reported by: vmikhelson
Tested by: rmudgett

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=313780

By: Digium Subversion (svnbot) 2011-04-14 16:02:40

Repository: asterisk
Revision: 313781

_U  trunk/
U   trunk/channels/chan_dahdi.c

------------------------------------------------------------------------
r313781 | rmudgett | 2011-04-14 16:02:39 -0500 (Thu, 14 Apr 2011) | 27 lines

Merged revisions 313780 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
 r313780 | rmudgett | 2011-04-14 15:59:56 -0500 (Thu, 14 Apr 2011) | 20 lines
 
 Leftover debug messages unconditionally sent to the console.
 
 Executing Dial(DAHDI/1/18475551212,300,) with the echotraining config
 option enabled outputs the following debug messages unconditionally:
 
 Dialing T1847555121 on 1
 Dialing www2w on 1
 
 * Made debug messages in my_dial_digits() normal debug messages that do
 not get output unless enabled.
 
 * Reworded some debug messages in my_dial_digits() to be clearer.
 
 * Replace strncpy() with ast_copy_string() in my_dial_digits() which does
 the same job better.
 
 (closes issue ASTERISK-17440)
 Reported by: vmikhelson
 Tested by: rmudgett
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=313781