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

Rusty Newton (JIRA) noreply at issues.asterisk.org
Tue Nov 6 18:49:21 CST 2012


     [ https://issues.asterisk.org/jira/browse/ASTERISK-20589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rusty Newton updated ASTERISK-20589:
------------------------------------

    Assignee: sybasesql  (was: Matt Jordan)
      Status: Waiting for Feedback  (was: Open)
    
> eswitch not substitute variables
> --------------------------------
>
>                 Key: ASTERISK-20589
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20589
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: PBX/General
>    Affects Versions: 1.8.16.0
>         Environment: OS: CentOS 5.5 x86_64
> Asterisk: Asterisk 1.8.16.0 x86_64
>            Reporter: sybasesql
>            Assignee: 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