[asterisk-bugs] [JIRA] (ASTERISK-20589) When using eswitch - variable substitution fails if there is no dialplan executed immediately before the eswitch
Joshua Colp (JIRA)
noreply at issues.asterisk.org
Tue Dec 19 05:25:07 CST 2017
[ https://issues.asterisk.org/jira/browse/ASTERISK-20589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joshua Colp updated ASTERISK-20589:
-----------------------------------
Affects Version/s: 13.18.4
> When using eswitch - variable substitution fails if there is no dialplan executed immediately before the eswitch
> ----------------------------------------------------------------------------------------------------------------
>
> Key: ASTERISK-20589
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-20589
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: PBX/pbx_realtime
> Affects Versions: 1.8.16.0, 13.18.4
> 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 was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list