aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xchannels/iax2-parser.c10
-rwxr-xr-xchannels/iax2-parser.h1
-rwxr-xr-xchannels/iax2.h1
-rwxr-xr-xcontrib/firmware/iax/iaxy.binbin38330 -> 38361 bytes
4 files changed, 11 insertions, 1 deletions
diff --git a/channels/iax2-parser.c b/channels/iax2-parser.c
index 07ca8cf48..cc15c959b 100755
--- a/channels/iax2-parser.c
+++ b/channels/iax2-parser.c
@@ -118,13 +118,14 @@ static struct iax2_ie {
{ IAX_IE_TRANSFERID, "TRANSFER ID", dump_int },
{ IAX_IE_RDNIS, "REFERRING DNIS", dump_string },
{ IAX_IE_PROVISIONING, "PROVISIONING" },
- { IAX_IE_AESPROVISIONING, "AES PROVISIONING" },
+ { IAX_IE_AESPROVISIONING, "AES PROVISIONG" },
{ IAX_IE_DATETIME, "DATE TIME", dump_int },
{ IAX_IE_DEVICETYPE, "DEVICE TYPE", dump_string },
{ IAX_IE_SERVICEIDENT, "SERVICE IDENT", dump_string },
{ IAX_IE_FIRMWAREVER, "FIRMWARE VER", dump_short },
{ IAX_IE_FWBLOCKDESC, "FW BLOCK DESC", dump_int },
{ IAX_IE_FWBLOCKDATA, "FW BLOCK DATA" },
+ { IAX_IE_PROVVER, "PROVISIONG VER", dump_int },
};
const char *iax_ie2str(int ie)
@@ -543,6 +544,13 @@ int iax_parse_ies(struct iax_ies *ies, unsigned char *data, int datalen)
ies->fwdata = data + 2;
ies->fwdatalen = len;
break;
+ case IAX_IE_PROVVER:
+ if (len != sizeof(unsigned int)) {
+ snprintf(tmp, sizeof(tmp), "Expected provisioning version to be %d bytes long but was %d\n", sizeof(unsigned int), len);
+ errorf(tmp);
+ } else
+ ies->provver = ntohl(*((unsigned int *)(data + 2)));
+ break;
default:
snprintf(tmp, sizeof(tmp), "Ignoring unknown information element '%s' (%d) of length %d\n", iax_ie2str(ie), ie, len);
errorf(tmp);
diff --git a/channels/iax2-parser.h b/channels/iax2-parser.h
index 0b4ac5639..aff6a68b4 100755
--- a/channels/iax2-parser.h
+++ b/channels/iax2-parser.h
@@ -50,6 +50,7 @@ struct iax_ies {
unsigned int fwdesc;
unsigned char *fwdata;
unsigned char fwdatalen;
+ unsigned int provver;
};
#define DIRECTION_INGRESS 1
diff --git a/channels/iax2.h b/channels/iax2.h
index 8997a7107..afc4424e8 100755
--- a/channels/iax2.h
+++ b/channels/iax2.h
@@ -111,6 +111,7 @@
#define IAX_IE_FIRMWAREVER 34 /* Firmware revision -- u16 */
#define IAX_IE_FWBLOCKDESC 35 /* Firmware block description -- u32 */
#define IAX_IE_FWBLOCKDATA 36 /* Firmware block of data -- raw */
+#define IAX_IE_PROVVER 37 /* Provisioning Version (u32) */
#define IAX_AUTH_PLAINTEXT (1 << 0)
#define IAX_AUTH_MD5 (1 << 1)
diff --git a/contrib/firmware/iax/iaxy.bin b/contrib/firmware/iax/iaxy.bin
index b17c61b71..85d50718b 100755
--- a/contrib/firmware/iax/iaxy.bin
+++ b/contrib/firmware/iax/iaxy.bin
Binary files differ