asterisk: Add macro for curl user agent.

Currently, each module that uses libcurl duplicates the standard
Asterisk curl user agent.

This adds a global macro for the Asterisk user agent used for
curl requests to eliminate this duplication.

ASTERISK-29861 #close

Change-Id: I9fc37935980384b4daf96ae54fa3c9adb962ed2d
This commit is contained in:
Naveen Albert
2022-01-13 14:37:16 +00:00
committed by Kevin Harwell
parent eb77229b53
commit d5c72f35fd
5 changed files with 6 additions and 13 deletions

View File

@@ -41,6 +41,8 @@
#endif
#define AST_CURL_USER_AGENT "asterisk-libcurl-agent/1.0"
#define DEFAULT_LANGUAGE "en"
#define DEFAULT_SAMPLE_RATE 8000