mirror of
https://github.com/moparisthebest/xeps
synced 2024-12-21 23:28:51 -05:00
added successful termination example
git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@2561 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
parent
e98dfe3b3f
commit
8655ef23f9
18
xep-0166.xml
18
xep-0166.xml
@ -750,7 +750,23 @@ PENDING o----------------------+ |
|
||||
<section2 topic='Termination' anchor='session-terminate'>
|
||||
<p>In order to gracefully end the session (which can be done at any point after acknowledging receipt of the initiation request, including immediately thereafter in order to decline the request), either the responder or the initiator MUST send a session-terminate action to the other party.</p>
|
||||
<p>The party that terminates the session SHOULD include a <reason/> element that specifies why the session is being terminated. Examples follow.</p>
|
||||
<p>One reason for terminating the session is that the terminating party is busy; in this case, the recommended condition is "busy".</p>
|
||||
<p>Probably the primary reason for terminating a session is that the call has ended successfully; in this case, the recommended condition is "success".</p>
|
||||
<example caption="Terminating the session (busy)"><![CDATA[
|
||||
<iq from='juliet@capulet.lit/balcony'
|
||||
id='term0'
|
||||
to='romeo@montague.lit/orchard'
|
||||
type='set'>
|
||||
<jingle xmlns='urn:xmpp:jingle:0'
|
||||
action='session-terminate'
|
||||
initiator='romeo@montague.lit/orchard'
|
||||
sid='a73sjjvkla37jfea'>
|
||||
<reason>
|
||||
<success/>
|
||||
</reason>
|
||||
</jingle>
|
||||
</iq>
|
||||
]]></example>
|
||||
<p>Another reason for terminating the session is that the terminating party is busy; in this case, the recommended condition is "busy".</p>
|
||||
<example caption="Terminating the session (busy)"><![CDATA[
|
||||
<iq from='juliet@capulet.lit/balcony'
|
||||
id='term1'
|
||||
|
Loading…
Reference in New Issue
Block a user