[asterisk-bugs] [Asterisk 0012205]: EXTEN gets printf-transformed when written to the logs

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Mar 18 10:20:33 CDT 2008


The following issue has been UPDATED. 
====================================================================== 
http://bugs.digium.com/view.php?id=12205 
====================================================================== 
Reported By:                stevedavies
Assigned To:                file
====================================================================== 
Project:                    Asterisk
Issue ID:                   12205
Category:                   General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 74812 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             03-13-2008 09:57 CDT
Last Modified:              03-18-2008 10:20 CDT
====================================================================== 
Summary:                    EXTEN gets printf-transformed when written to the
logs
Description: 
> [Mar 13 16:42:46] VERBOSE[14099] logger.c: [Mar 13 16:42:46]     --
Executing
[cIAX20.000000ctelpbx-10.0000005160 at from-peer-voipconnect-internal:1]
Set("IAX2/voipconnect_j1-24", "ds=IAX2/ctelpbx-1/5160") in new
 stack

What is that crazy extension number?  It should say
cIAX2%2fctelpbx-1%2f5160 (which, I admit, is pretty odd too - its a
URIENCODE()d channel address).

Looks like the log messages gets used as the "format" side of another
printf, or something like that, and the %2f gets taken as a float format
specifier.

Steve


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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-18-08 10:20  file           View Status              private => public   
======================================================================




More information about the asterisk-bugs mailing list