Asterisk func csv_quote

Synopsis:

Quotes a given string for use in a CSV file, escaping embedded quotes as necessary

Description:

CSV_QUOTE(<string>)


Notes

  • *CLI> show function CSV_QUOTE

Return value

Returns the quoted string

Example

exten => s,1,Set(foo=${CSV_QUOTE("Firstname, Lastname" <callerid>)})

should set foo to the value """Firstname, Lastname"", <callerid>".


See also


Synopsis:

Quotes a given string for use in a CSV file, escaping embedded quotes as necessary

Description:

CSV_QUOTE(<string>)


Notes

  • *CLI> show function CSV_QUOTE

Return value

Returns the quoted string

Example

exten => s,1,Set(foo=${CSV_QUOTE("Firstname, Lastname" <callerid>)})

should set foo to the value """Firstname, Lastname"", <callerid>".


See also


Created by: matth1as, Last modification: Fri 05 of Nov, 2010 (23:49 UTC) by admin
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+