Login¶
Synopsis¶
Login Manager.
Description¶
Login Manager.
import hashlib
m = hashlib.md5()
m.update(response_from_challenge)
m.update(your_secret)
key = m.hexdigest()
## '031edd7d41651593c5fe5c006fa5752b'
Syntax¶
Action: Login
ActionID: <value>
Username: <value>
AuthType: <value>
Secret: <value>
Key: <value>
Events: <value>
Arguments¶
-
ActionID
- ActionID for this transaction. Will be returned. -
Username
- Username to login with as specified in manager.conf. -
AuthType
- Authorization type. Valid values are:-
plain
- Plain text secret. (default) -
MD5
- MD5 hashed secret.
-
-
Secret
- Plain text secret to login with as specified in manager.conf. -
Key
- 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. -
Events
-
on
- If all events should be sent. -
off
- If no events should be sent. -
system,call,log,...
- To select which flags events should have to be sent.
-
See Also¶
Generated Version¶
This documentation was generated from Asterisk branch 22 using version GIT