Summary: | ASTERISK-06976: [patch] IAX2 MWI fix (# of messages incorrectly reported) | ||
Reporter: | Andrew Kohlsmith (akohlsmith) | Labels: | |
Date Opened: | 2006-05-15 10:46:22 | Date Closed: | 2006-05-17 19:13:31 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) chan_iax2-messageIEfix.diff | |
Description: | Minor tweak. IAX2 registrations send out a MSGCOUNT IE that is not correctly interpreted by the IAX2 registration receive routine. the IE send function encodes the # of new messages in the low 8 bits, and hte # of old messages in the next MSB. The IE receive function does not unpack this. This patch fixes the receive routine. ****** ADDITIONAL INFORMATION ****** e.g. if I have 5 old messages and 1 new message, the IE encodes the number of messages as (5 << 8) + 1. The iax2 registration however reports 1281 messages waiting. Rather than change the iax2 registry structure to have a count of new and old messages, I simply documented the packing process and updated the rx routine to correctly unpack the number of messages. | ||
Comments: | By: Joshua C. Colp (jcolp) 2006-05-17 19:13:31 Fixed in trunk as of revision 28017. Thanks tzanger! |