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
parent 76e3fb402f
commit 6f128da80c
4 changed files with 5 additions and 10 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