[asterisk-bugs] [JIRA] (ASTERISK-20589) eswitch not substitute variables
Rusty Newton (JIRA)
noreply at issues.asterisk.org
Tue Nov 6 19:03:21 CST 2012
[ https://issues.asterisk.org/jira/browse/ASTERISK-20589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=199305#comment-199305 ]
Rusty Newton commented on ASTERISK-20589:
-----------------------------------------
What channel technology is being used? Is this a local channel, sip channel, etc ?
> 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