mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-30 21:22:15 -05:00
filled in missing transport setup details for early media
git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@2435 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
parent
aa871b1121
commit
0263c9aba5
20
xep-0167.xml
20
xep-0167.xml
@ -471,10 +471,10 @@ delivery-method=inline; configuration=somebase16string;
|
|||||||
|
|
||||||
<section1 topic='Early Media' anchor='earlymedia'>
|
<section1 topic='Early Media' anchor='earlymedia'>
|
||||||
<p>The term "early media" refers to media that is exchanged before a responder has definitively accepted a session request generated by an initiator. Early media is typically used to send ringing tones and announcements, using either audio streams or Dual Tone Multi-Frequency (DTMF) events.</p>
|
<p>The term "early media" refers to media that is exchanged before a responder has definitively accepted a session request generated by an initiator. Early media is typically used to send ringing tones and announcements, using either audio streams or Dual Tone Multi-Frequency (DTMF) events.</p>
|
||||||
<p>In Jingle, the exchange of early media is established through use of the "content-add" action. In order to match the usage specified in &rfc3959; and &rfc3960;, when adding a content definition for early media the value of the &CONTENT; element's 'disposition' attribute MUST be "early-session" for mapping to a SIP Content-Disposition header value of "early-session" (if necessary). This enables endpoints or intermediate gateways to apply the application server model described in <cite>RFC3960</cite>.</p>
|
<p>In Jingle, the exchange of early media is established through use of the "content-add" action. In order to match the usage specified in &rfc3959; and &rfc3960;, when adding a content definition for early media the value of the &CONTENT; element's 'disposition' attribute MUST be "early-session" for mapping to a SIP Content-Disposition header value of "early-session" (if necessary). This enables endpoints or intermediate gateways to apply the application server model described in <cite>RFC 3960</cite>.</p>
|
||||||
<p>An entity that generates a content-add for early media SHOULD specify the same codecs for both session media and early media (however, it is possible that the entity generating early media does not generate session media, for example in the case of an intermediate gateway or application server; in this case the entity MUST use one of the codecs advertised by the initiator).</p>
|
<p>An entity that generates a content-add for early media SHOULD specify the same codecs for both session media and early media (however, it is possible that the entity that generates the early media does not generate the session media, for example in the case of an intermediate gateway or application server; in this case the entity MUST use one of the codecs advertised by the initiator).</p>
|
||||||
<p>Upon receiving a content-add action specifying the use of early media, the initiator's client SHOULD acknowledge the content-add and then send a content-accept (or content-reject) to the sender. When the responder subsequently sends a session-accept action, the acceptance MUST NOT be construued to include the content definition whose disposition is "early-session".</p>
|
<p>Upon receiving a content-add action specifying the use of early media, the initiator's client SHOULD acknowledge the content-add, complete any required transpor negotiation, and then send a content-accept (or content-reject) to the sender. When the responder subsequently sends a session-accept action, the acceptance MUST NOT be construed to include the content definition whose disposition is "early-session".</p>
|
||||||
<p>In handling early media and deciding whether to generate local ringing or play early media received from the responder or an intermediate gateway, the initiator's client SHOULD proceed as follows:</p>
|
<p>In handling early media and deciding whether to generate local ringing or to play early media received from the responder or an intermediate gateway, the initiator's client SHOULD proceed as follows:</p>
|
||||||
<ol>
|
<ol>
|
||||||
<li>If no ringing notification is received via a session-info event containing a <ringing/> condition, do not generate local ringing.</li>
|
<li>If no ringing notification is received via a session-info event containing a <ringing/> condition, do not generate local ringing.</li>
|
||||||
<li>If a ringing notification is received and no early media is received, generate local ringing.</li>
|
<li>If a ringing notification is received and no early media is received, generate local ringing.</li>
|
||||||
@ -1067,6 +1067,8 @@ Romeo Gateway Juliet
|
|||||||
|<------------------------| |
|
|<------------------------| |
|
||||||
| ack | |
|
| ack | |
|
||||||
|------------------------>| |
|
|------------------------>| |
|
||||||
|
| [TRANSPORT SETUP] | |
|
||||||
|
|<----------------------->| |
|
||||||
| content-accept | |
|
| content-accept | |
|
||||||
|------------------------>| |
|
|------------------------>| |
|
||||||
| ack | |
|
| ack | |
|
||||||
@ -1138,7 +1140,8 @@ Romeo Gateway Juliet
|
|||||||
<payload-type id='18' name='G729'/>
|
<payload-type id='18' name='G729'/>
|
||||||
</description>
|
</description>
|
||||||
<transport xmlns='urn:xmpp:jingle:transports:raw-udp:0'>
|
<transport xmlns='urn:xmpp:jingle:transports:raw-udp:0'>
|
||||||
<candidate generation='0'
|
<candidate component='1'
|
||||||
|
generation='0'
|
||||||
id='a9j3mnbtu1'
|
id='a9j3mnbtu1'
|
||||||
ip='10.1.1.104'
|
ip='10.1.1.104'
|
||||||
port='13540'/>
|
port='13540'/>
|
||||||
@ -1147,13 +1150,15 @@ Romeo Gateway Juliet
|
|||||||
</jingle>
|
</jingle>
|
||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
<p>Romeo then acknowledges the content-add action and immediately also sends a content-accept.</p>
|
<p>Romeo then acknowledges the content-add action.</p>
|
||||||
<example caption="Initiator acknowledges content-add"><![CDATA[
|
<example caption="Initiator acknowledges content-add"><![CDATA[
|
||||||
<iq from='romeo@montague.lit/orchard'
|
<iq from='romeo@montague.lit/orchard'
|
||||||
id='add1'
|
id='add1'
|
||||||
to='juliet@capulet.lit/balcony'
|
to='juliet@capulet.lit/balcony'
|
||||||
type='result'/>
|
type='result'/>
|
||||||
]]></example>
|
]]></example>
|
||||||
|
<p>Because the gateway (on behalf of the responder) specified a transport method of Raw UDP for the early session data, the initiator then would send a Raw UDP candidate to the gateway, inform the gateway that it is trying to send media to the candidate provided by the gateway, etc. See <cite>XEP-0177</cite> for details.</p>
|
||||||
|
<p>Eventually the initiator would send a content-accept to the gateway.</p>
|
||||||
<example caption="Initiator accepts new content definition"><![CDATA[
|
<example caption="Initiator accepts new content definition"><![CDATA[
|
||||||
<iq from='romeo@montague.lit/orchard'
|
<iq from='romeo@montague.lit/orchard'
|
||||||
id='accept1'
|
id='accept1'
|
||||||
@ -1171,7 +1176,8 @@ Romeo Gateway Juliet
|
|||||||
<payload-type id='18' name='G729'/>
|
<payload-type id='18' name='G729'/>
|
||||||
</description>
|
</description>
|
||||||
<transport xmlns='urn:xmpp:jingle:transports:raw-udp:0'>
|
<transport xmlns='urn:xmpp:jingle:transports:raw-udp:0'>
|
||||||
<candidate generation='0'
|
<candidate component='1'
|
||||||
|
generation='0'
|
||||||
id='a9j3mnbtu1'
|
id='a9j3mnbtu1'
|
||||||
ip='10.1.1.104'
|
ip='10.1.1.104'
|
||||||
port='13540'/>
|
port='13540'/>
|
||||||
|
Loading…
Reference in New Issue
Block a user