[asterisk-users] CURLOPT(useragent) fails with Set requires an '=' to be a valid assignment

Jonathan H lardconcepts at gmail.com
Mon Dec 14 12:56:05 CST 2020


Of course! Thank you. I had not thought about escaping it because ";"
is not a character I've normally had to escape.

Thanks again for this - so obvious now you mention it.

On Mon, 14 Dec 2020 at 18:54, Joshua C. Colp <jcolp at sangoma.com> wrote:
>
> On Mon, Dec 14, 2020 at 2:51 PM Jonathan H <lardconcepts at gmail.com> wrote:
>>
>> Thank you.
>>
>> Yes, the useragent string does indeed contain semicolon, and as most
>> seem to, how can I set the (useragent) to a valid useragent?
>>
>> And does that mean I can never SET something with a semicolon in the
>> string, even if wrapped in quotes?
>>
>> Sorry if I'm being thick here!
>
>
> The character to escape it is "\" thus: "\;" would tell the config parser to not treat it as a comment.
>
> --
> Joshua C. Colp
> Asterisk Technical Lead
> Sangoma Technologies
> Check us out at www.sangoma.com and www.asterisk.org
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at: https://community.asterisk.org/
>
> New to Asterisk? Start here:
>       https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list