Author: mmichelson
Date: Wed Aug 20 15:40:33 2014
New Revision: 421585

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=421585
Log:
Set the role for inbound subscriptions correctly.

This was causing the AMI show_subscriptions test in
the testsuite to fail since all subscriptions were being
seen as subscribers instead of notifiers.


Modified:
    branches/13/res/res_pjsip_pubsub.c

Modified: branches/13/res/res_pjsip_pubsub.c
URL: 
http://svnview.digium.com/svn/asterisk/branches/13/res/res_pjsip_pubsub.c?view=diff&rev=421585&r1=421584&r2=421585
==============================================================================
--- branches/13/res/res_pjsip_pubsub.c (original)
+++ branches/13/res/res_pjsip_pubsub.c Wed Aug 20 15:40:33 2014
@@ -1209,6 +1209,7 @@
        if (!sub_tree) {
                return NULL;
        }
+       sub_tree->role = AST_SIP_NOTIFIER;
 
        dlg = ast_sip_create_dialog_uas(endpoint, rdata);
        if (!dlg) {


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

svn-commits mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/svn-commits

Reply via email to