[asterisk-users] Double quotes in CDRUserField?
Trevor Peirce
tpeirce at digitalcon.ca
Tue Jan 2 18:56:53 MST 2007
Michael Collins wrote:
> Question: I'm trying to put a double quote into the CDRUserField. What
> I end up with is a pair of double quotes. Example:
> exten => s,n,SetCDRUserField(data)
> exten => s,n,AppendCDRUserField(")
> exten => s,n,AppendCDRUserField(moredata)
>
>
> My record will look like this:
> data""moredata
>
It's common for CSV files to escape quotes by putting two of them to
indicate it is a quote within the string, not the end of the string.
Perhaps you could accomplish what you're going for with something else,
say an underscore character?
Regards,
Trevor Peirce
More information about the asterisk-users
mailing list