[asterisk-bugs] [Asterisk 0015338]: AstApplicationData when called with several arguments escapes comma with backslash

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Feb 22 14:47:28 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15338 
====================================================================== 
Reported By:                nito
Assigned To:                suretec
====================================================================== 
Project:                    Asterisk
Issue ID:                   15338
Category:                   Resources/res_config_ldap
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.0.9 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-06-16 19:59 CDT
Last Modified:              2010-02-22 14:47 CST
====================================================================== 
Summary:                    AstApplicationData when called with several
arguments escapes comma with backslash
Description: 
In my configuration we use LDAP as our database repository

With entries like this

dn: uid=jsalonen,ou=People,
AstApplication: Macro
AstExtension: 5035
AstPriority: 1
AstApplicationData: sipdial,SIP/nito,+3400012345

There is a macro in the dialplan

[macro-sipdial]
exten => ... ${ARG1} ...

and so on

on version 1.0.6-beta9 the macro was correctly called as:

Macro(sipdial,SIP/nito,+3400012345)

but since version 1.0.6.9 the macro is called as:

Macro(sipdial\,SIP/nito\,+3400012345)

That is setting a backslash for any comma that appears,




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

---------------------------------------------------------------------- 
 (0118349) sandereerd (reporter) - 2010-02-22 14:47
 https://issues.asterisk.org/view.php?id=15338#c118349 
---------------------------------------------------------------------- 
I am experiencing the same issue.
SIP Extensions are stored in LDAP.

AstApplication: Dial
AstApplicationData: SIP/user1,15,tr

then when trying to call the user:
 -- Executing Dial("SIP/user2-00000012", "SIP/user1\,15\,tr")

Using Asterisk 1.6.2.4
Any help would be appreciated.

Would like to help debugging/testing if nessecary. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-02-22 14:47 sandereerd     Note Added: 0118349                          
======================================================================




More information about the asterisk-bugs mailing list