[asterisk-bugs] [JIRA] (ASTERISK-25883) In the func_odbc doesn't work the option "escapecommas"

Rusty Newton (JIRA) noreply at issues.asterisk.org
Tue Apr 12 07:43:56 CDT 2016


    [ https://issues.asterisk.org/jira/browse/ASTERISK-25883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=230216#comment-230216 ] 

Rusty Newton commented on ASTERISK-25883:
-----------------------------------------

The documentation for escapecommas says:

{quote}
;              If commas are
;              escaped (the default behavior), then fields containing commas
;              will be treated as a single value when assigning to ARRAY() or
;              HASH().  If commas are not escaped, then values will be separated
;              at the comma within fields. 
{quote}

You are not assigning to ARRAY() or HASH() as far as I can tell - so I would expect that commas would not be escaped.

Can you try quoting your call to CDR(lastdata) ?

{noformat}
,"${CDR(lastdata)}",
{noformat}

> In the func_odbc doesn't work the option "escapecommas"
> -------------------------------------------------------
>
>                 Key: ASTERISK-25883
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25883
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Functions/func_odbc
>    Affects Versions: 11.21.2
>         Environment: CentOS 6.7
>            Reporter: Vadim
>            Assignee: Unassigned
>         Attachments: add_func_odbc.conf, Dump_ODBC.txt, func_odbc.conf, func_odbc.conf.txt
>
>
> In the func_odbc doesn't work the option "escapecommas"



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list