summaryrefslogtreecommitdiff
path: root/channels/chan_iax2.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2014-09-05 17:36:35 +0000
committerRichard Mudgett <rmudgett@digium.com>2014-09-05 17:36:35 +0000
commit3ce9a8b4f4d20e59b3279dd75a673e2be454ec91 (patch)
treea61c80291c8ed301e0f1b290c5580870e9fe5feb /channels/chan_iax2.c
parente59ae8b0c9a04aabda4956b4abbb15cb5f676826 (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. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@422661 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_iax2.c')
-rw-r--r--channels/chan_iax2.c9
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;