Fix a bug where resources were not found due to hashing on the priority itself.
........

Merged revisions 383266 from http://svn.asterisk.org/svn/asterisk/branches/11


git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@383267 f38db490-d61c-443f-a65b-d21fe96a405b
Add support for using XMPP buddy state via device state.

This change allows you to use XMPP buddy state in places where device state
can be used be used, such as dialplan hints. If at least one resource is
available the buddy is considered available. Now your phone can reflect
their IM status too!


git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@383283 f38db490-d61c-443f-a65b-d21fe96a405b
Transition MWI to Stasis-core

Remove MWI's dependency on the event system by moving it to
Stasis-core. This also introduces forwarding topic pools in Stasis-core
which aggregate many dynamically allocated topics into a single primary
topic.

Review: https://reviewboard.asterisk.org/r/2368/
(closes issue ASTERISK-21097)
Patch-by: Kinsey Moore


git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@383284 f38db490-d61c-443f-a65b-d21fe96a405b
Make sure things compile...


git-svn-id: http://svn.asterisk.org/svn/asterisk/trunk@383287 f38db490-d61c-443f-a65b-d21fe96a405b