From: George Joseph Date: Wed, 3 Apr 2024 13:51:31 +0000 (-0600) Subject: manager.c: Add missing parameters to Login documentation X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=113871b5f5abe0ad23d7f19f94267985e781c106;p=thirdparty%2Fasterisk.git manager.c: Add missing parameters to Login documentation * Added the AuthType and Key parameters for MD5 authentication. * Added the Events parameter. Resolves: #689 --- diff --git a/main/manager.c b/main/manager.c index cd275cc96d..2d949d8fdc 100644 --- a/main/manager.c +++ b/main/manager.c @@ -164,14 +164,41 @@ Username to login with as specified in manager.conf. + + Authorization type. Valid values are: + + Plain text secret. (default) + MD5 hashed secret. + + - Secret to login with as specified in manager.conf. + Plain text secret to login with as specified in manager.conf. + + + Key to use with MD5 authentication. To create the key, you must + initialize a new MD5 hash, call the Challenge AMI action, + update the hash with the response, then update the hash with the secret as specified + in manager.conf. The key value must be the final result of the hash + as a 32 character lower-case hex string without any "0x" prepended. + See the description for an example of creating a key in Python. + + + Login Manager. + + import hashlib + m = hashlib.md5() + m.update(response_from_challenge) + m.update(your_secret) + key = m.hexdigest() + ## '031edd7d41651593c5fe5c006fa5752b' + + Challenge Logoff