[asterisk-bugs] [JIRA] (ASTERISK-20589) eswitch not substitute variables

sybasesql (JIRA) noreply at issues.asterisk.org
Sun Oct 21 06:00:18 CDT 2012


sybasesql created ASTERISK-20589:
------------------------------------

             Summary: eswitch not substitute variables
                 Key: ASTERISK-20589
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20589
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
    Affects Versions: 1.8.16.0
         Environment: OS: CentOS 5.5 x86_64
Asterisk: Asterisk 1.8.16.0 x86_64
            Reporter: sybasesql


eswitch not substitute variables (${CDR(accountcode)}=100 in this example):
[out]
eswitch => Realtime/${CDR(accountcode)}-out@

and when I dialed 101 extension I got INCORRECT SQL in PostgreSQL (through odbc):
LOG:  statement: SELECT * FROM asterisk.extensions WHERE exten = E'101' AND context = E'-out' AND priority = E'1'

but if I add any function before eswitch calling variables substitution occured:
[out]
exten => _X.,1,NoOp(out)
eswitch => Realtime/${CDR(accountcode)}-out@

and when I dialed 101 extension I got CORRECT SQL in PostgreSQL (through odbc):
LOG:  statement: SELECT * FROM asterisk.extensions WHERE exten = E'101' AND context = E'100-out' AND priority = E'2'


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list