Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

server is not sending Subscription approval notification

$
0
0

I am not be able to receive Subscription approval notification from the server when owner approves the subscriber

following is the flow i have run the test in PSI xml.

 

 

 

A request for subscription

 

 

 

<iq type='set'    from='88f37b90@example.com'    to='pubsub.example.com'    id='sub1'>  <pubsub xmlns='http://jabber.org/protocol/pubsub'>    <subscribe        node='fdf72c24/loc'        jid='88f37b90@example.com'/>  </pubsub></iq>

 

immideate reply to subscriber

 

 

<iq from="pubsub.example.com" type="result" id="sub1" to="88f37b90@example.com"<pubsub xmlns="http://jabber.org/protocol/pubsub"><subscription node="fdf72c24/loc" subscription="pending"
 subid="Howb8IplBlxCYKm1b9jb53RO909v09RF7QHJn3M0" jid="88f37b90@example.com"><subscribe-options/></subscription></pubsub></iq>

 

 

owner will get following response from server i.e. a request for subscription autorization

 

 


<message from="pubsub.example.com" to="fdf72c24@example.com" id="xxx"><x xmlns="jabber:x:data" type="form"><title>PubSub subscriber request</title><instructions>Use the following form to approve or deny the subscription request.</instructions><field type="hidden" var="FORM_TYPE"><value>http://jabber.org/protocol/pubsub#subscribe_authorization</value></field><field type="hidden" var="pubsub#subid"><value>Howb8IplBlxCYKm1b9jb53RO909v09RF7QHJn3M0</value></field><field type="text-single" label="Node ID" var="pubsub#node"><value>fdf72c24/loc</value></field><field type="jid-single" label="Subscriber Address" var="pubsub#subscriber_jid"><value>88f37b90@example.com</value></field><field type="boolean" label="Allow this JID to subscribe to this pubsub node?" var="pubsub#allow"><value>0</value></field></x></message>

 

Now owner will approve the request by setting pubsub#allow by 1

 

 

<message to="pubsub.example.com" id="xxx"><x xmlns="jabber:x:data" type="submit"><field type="hidden" var="FORM_TYPE"><value>http://jabber.org/protocol/pubsub#subscribe_authorization</value></field><field type="hidden" var="pubsub#subid"><value>Howb8IplBlxCYKm1b9jb53RO909v09RF7QHJn3M0</value></field><field type="text-single" var="pubsub#node"><value>fdf72c24/loc</value></field><field type="jid-single" var="pubsub#subscriber_jid"><value>88f37b90@example.com</value></field><field type="boolean" var="pubsub#allow"><value>1</value></field></x></message>

but the issue is once i send the approved request for subscription authorization  , i am not be able to get the notification from server saying that

the node is subscribed to a requested subscriber.

 

as accroding to XEP-0060 protocol following stanza must be received when owner sends the possitive approval to server but i am not getting any approval from server to the owner.

 

 

<message    from='pubsub.shakespeare.lit'    to='horatio@denmark.lit'    id='approvalnotify1'>  <event xmlns='http://jabber.org/protocol/pubsub#event'>    <subscription node='princely_musings' jid='horatio@denmark.lit' subscription='subscribed'/>  </event></message>

Viewing all articles
Browse latest Browse all 10742

Trending Articles