chan_iax2: Minor improvements to documentation and warning messages.

* Update Dial() documentation for IAX2 to include syntax for RSA
  public key names.
* Add additional details to a couple warnings to provide more context
  when an undecodable frame is received.

Resolves: #1206
(cherry picked from commit 06f8092ae9)
This commit is contained in:
Naveen Albert
2025-04-18 09:03:10 -04:00
committed by Asterisk Development Team
parent 1ab473c973
commit 21129f2165
2 changed files with 9 additions and 3 deletions

View File

@@ -812,7 +812,8 @@ int iax_parse_ies(struct iax_ies *ies, unsigned char *data, int datalen)
ie = data[0];
len = data[1];
if (len > datalen - 2) {
errorf("Information element length exceeds message size\n");
snprintf(tmp, sizeof(tmp), "Information element length %d exceeds message size %d\n", len, datalen - 2);
errorf(tmp);
return -1;
}
switch(ie) {