diff options
author | Richard Mudgett <rmudgett@digium.com> | 2014-09-05 17:45:03 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2014-09-05 17:45:03 +0000 |
commit | 5a1de68b9a2e0ae7b92c741d2d041e7f290899e7 (patch) | |
tree | cd12e28504aa5093ec1bbf598771bbd87a5f78a8 /channels/chan_iax2.c | |
parent | 2362d88a18678afffda915d94e452b7e9e4d03d3 (diff) |
devicestate.c: Minor tweaks
* In ast_state_chan2dev() use ARRAY_LEN() instead of a sentinel value in
chan2dev[].
* Fix some comments in chan_iax2.c.
........
Merged revisions 422661 from http://svn.asterisk.org/svn/asterisk/branches/13
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@422663 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_iax2.c')
-rw-r--r-- | channels/chan_iax2.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index a41f173b9..1f37904d0 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -5036,7 +5036,7 @@ reject: * password field will be set to NULL. * * \note The dial string format is: - * [username[:password]@]peer[:port][/exten[@@context]][/options] + * [username[:password]@]peer[:port][/exten[@context]][/options] */ static void parse_dial_string(char *data, struct parsed_dial_string *pds) { @@ -5069,9 +5069,10 @@ static void parse_dial_string(char *data, struct parsed_dial_string *pds) pds->peer = strsep(&data, ":"); pds->port = data; - /* check for a key name wrapped in [] in the secret position, if found, - move it to the key field instead - */ + /* + * Check for a key name wrapped in [] in the password position. + * If found, move it to the key field instead. + */ if (pds->password && (pds->password[0] == '[')) { pds->key = ast_strip_quoted(pds->password, "[", "]"); pds->password = NULL; |