git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30242
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
struct iax2_registry *reg;
/* Start pessimistic */
char peer[256] = "";
- char msgstatus[40];
+ char msgstatus[60];
int refresh = 0;
char ourip[256] = "<Unspecified>";
struct sockaddr_in oldus;
return -1;
}
memcpy(®->us, &us, sizeof(reg->us));
- reg->messages = ies->msgcount & 0xffff; /* only low 16 bits are used in the transmission of the IE */
+ if (ies->msgcount >= 0)
+ reg->messages = ies->msgcount & 0xffff; /* only low 16 bits are used in the transmission of the IE */
/* always refresh the registration at the interval requested by the server
we are registering to
*/