<?xml version="1.0"?>
<!-- These are the examples for XSF XEP-0042: Jabber OOB Broadcast Service (JOBS)-->
<stream xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" xml:lang="en"><!-- Example 1-->
<iq type='get' to='domain'>
  <query xmlns='jabber:iq:browse'/>
</iq>
      <!-- Example 2-->
<iq type='get' to='sender@domain/res' from='domain'>
  ...
  <item xmlns='jabber:iq:browse'
      category='service'
      type='x-jobs'
      jid='jobs.domain'
      version='0.4'>
    <ns>http://jabber.org/protocol/jobs</ns>
  </item>
  ...
</iq>
      <!-- Example 3-->
<iq type='set' from='sender@domain/res' to='jobs.domain' id='JOBS1'>
  <session xmlns='http://jabber.org/protocol/jobs'
      action='create'/>
</iq>
      <!-- Example 4-->
<iq 
    type='result' to='sender@domain/res' from='jobs.domain'>
  <session xmlns='http://jabber.org/protocol/jobs'
      status='pending'
      host='jobs.domain' 
      id='01234567'
      port='12676' 
      sender='sender@domain/res'
      buffer='0'
      expires='30' 
      receivers='1'/>
</iq>
      <!-- Example 5-->
<iq id='JOBS0' type='get' to='jobs.domain'>
  <session xmlns='http://jabber.org/protocol/jobs' action='create'/>
</iq>
      <!-- Example 6-->
<iq id='JOBS0' type='result' to='sender@domain/res' from='jobs.domain'>
  <session xmlns='http://jabber.org/protocol/jobs'
      host='jobs.domain'
      port='12676'
      sender='sender@domain/res'
      buffer='0'
      expires='30'
      receivers='1'>
    <connect host='jobs.domain' port='12676'/>
    <limit  type='buffer'
        default='0'
        max='1024'
        min='0'/>
    <limit  type='expires'
        default='30'
        max='3600'
        min='5'/>
    <limit  type='receivers'
        default='1'
        max='15'
        min='1'/>
  </session>
</iq>
      <!-- Example 7-->
<iq id='JOBS1' type='set' to='jobs.domain'>
  <session xmlns='http://jabber.org/protocol/jobs' action='create'
      expires='-1'/>
</iq>
      <!-- Example 8-->
<iq type='result' to='sender@domain/res' from='jobs.domain'>
  <session xmlns='http://jabber.org/protocol/jobs'
      status='pending'
      host='jobs.domain' 
      id='01234567'
      port='12676' 
      sender='sender@domain/res'
      buffer='0'
      expires='-1' 
      receivers='1'/>
</iq>
      <!-- Example 9-->
<iq type='get' to='jobs.domain'>
  <session xmlns='http://jabber.org/protocol/jobs' action='create'>
    <x xmlns='jabber:x:data'/>
  </session>
</iq>
      <!-- Example 10-->
<iq type='result' from='jobs.domain' to='sender@domain/res'>
  <session xmlns='http://jabber.org/protocol/jobs'
      host='jobs.domain' 
      port='12676' 
      buffer='0'
      expires='-1' 
      receivers='1'>
    <x xmlns='jabber:x:data' type='form'>
      <instructions>Please specify values for the given fields.</instructions>
      <field var='hostport' type='select-single' label='JOBS host/port'>
        <option>jobs.domain:12676</option>
      </field>
      <field var='buffer' type='text' label='Buffer Size (in bytes)'><value>0</value></field>
      <field var='expires' type='text' label='Timeout (in seconds)'><value>30</value></field>
      <field var='receivers' type='text' label='Number of Recipients'><value>1</value></field>
    </x>
  </session>
</iq>
      <!-- Example 11-->
<iq type='set' to='jobs.domain'>
  <session xmlns='http://jabber.org/protocol/jobs' action='create'>
    <x xmlns='jabber:x:data' type='submit'>
      <field var='hostport'><value>jobs.domain:12676</value></field>
      <field var='buffer'><value>0</value></field>
      <field var='expires'><value>300</value></field>
      <field var='receivers'><value>1</value></field>
    </x>
  </session>
</iq>
      <!-- Example 12-->
<iq type='result' from='jobs.domain' to='sender@domain/res'>
  <session xmlns='http://jabber.org/protocol/jobs'
      status='pending'
      host='jobs.domain' 
      id='01234567'
      port='12676' 
      sender='sender@domain/res'
      buffer='0'
      expires='300' 
      receivers='1'/>
</iq>
      <!-- Example 13-->
<message from='sender@domain/res' to='receiver@domain/res'>
  <body>Let's connect!</body>
  <session xmlns='http://jabber.org/protocol/jobs'
      host='jobs.domain'
      id='01234567'
      port='12676'
      sender='sender@domain/res'
      buffer='0'
      expires='30'
      receivers='1'/>
</message>
      <!-- Example 14-->
<message from='sender@domain/res' to='jobs.domain'>
  <body>Let's connect!</body>
  <session xmlns='http://jabber.org/protocol/jobs'
      action='notify'
      id='01234567'>
    <item type='connection' action='invite'>receiver@domain</item>
</message>
      <!-- Example 15-->
<message from='jobs.domain' to='receiver@domain'>
  <body>Let's connect!</body>
  <session xmlns='http://jabber.org/protocol/jobs'
      action='notify'
      status='pending'
      host='jobs.domain'
      id='01234567'
      port='12676'
      sender='sender@domain/res'
      buffer='0'
      expires='30'
      receivers='1'>
    <item type='connection' action='invite'/>
</message>
      <!-- Example 16-->
<iq type='get' to='jobs.domain'>
  <session xmlns='http://jabber.org/protocol/jobs'
      action='info'/>
</iq>
      <!-- Example 17-->
<iq type='result' from='jobs.domain' to='sender@domain/res'>
  <session xmlns='http://jabber.org/protocol/jobs'
      action='info'
      status='active'
      host='jobs.domain'
      id='01234567'
      port='12676'
      buffer='0'
      expires='30'
      receivers='1'>
    <item type='connection' action='accept'>sender@domain/res</item>
  </session>
  <session xmlns='http://jabber.org/protocol/jobs'
      action='info'
      status='pending'
      host='jobs.domain'
      id='87654321'
      port='12676'
      buffer='0'
      expires='30'
      receivers='1'/>
</iq>
      <!-- Example 18-->
<iq type='get' to='jobs.domain'>
  <session xmlns='http://jabber.org/protocol/jobs'
      action='info'
      id='01234567'/>
</iq>
      <!-- Example 19-->
<iq type='result' from='jobs.domain' sender='sender@domain/res'>
  <session xmlns='http://jabber.org/protocol/jobs'
      action='info'
      status='active'
      host='jobs.domain'
      id='01234567'
      port='12676'
      buffer='0'
      expires='30'
      receivers='1'>
    <item type='connection' action='accept'>sender@domain/res</item>
  </session>
</iq>
      <!-- Example 20-->
jobs/0.4 init
session-id: 01234567
client-jid: sender@domain/res

      <!-- Example 21-->
jobs/0.4 auth-challenge
confirm: SID00001234

      <!-- Example 22-->
  <iq type='set' to='jobs.domain'>
    <session xmlns='http://jabber.org/protocol/jobs'
        action='authenticate'
        id='01234567'>
      <item type='auth' action='confirm'>SID00001234</item>
    </session>
  </iq>hehe
      <!-- Example 23-->
  <iq type='result' from='jobs.domain' to='sender@domain/res'>
    <session xmlns='http://jabber.org/protocol/jobs'
        action='authenticate'
        status='pending'
        id='01234567'>
      <item type='auth' action='accept'>SID88884321</accept>
    </session>
  </iq>
    <!-- Example 24-->
  jobs/0.4 auth-response
  accept: SID88884321
  
    <!-- Example 25-->
  jobs/0.4 connected

      <!-- Example 26-->
<iq type='get' to='sender@domain/res' id='JOBS5' from='jobs.domain'>
  <session xmlns='http://jabber.org/protocol/jobs'
      action='authorize'
      status='active'
      id='01234567'>
    <item type='connection' action='confirm'>receiver@domain/res</item>
  </session>
</iq>
      <!-- Example 27-->
<iq id='JOBS5' type='result' to='jobs.domain'>
  <session xmlns='http://jabber.org/protocol/jobs'
      action='authorize'
      id='01234567'>
    <item type='connection' action='accept'>receiver@domain/res</item>
  </session>
</iq>
      <!-- Example 28-->
<iq id='JOBS5' type='result' to='jobs.domain'>
  <session xmlns='http://jabber.org/protocol/jobs'
      action='authorize'
      id='01234567'>
    <item type='connection' action='reject'>receiver@domain/res</item>
  </session>
</iq>
      <!-- Example 29-->
<iq type='set' to='jobs.domain'>
  <session xmlns='http://jabber.org/protocol/jobs'
      action='notify'
      id='01234567'>
    <item type='connection' action='drop'>receiver@domain/res</item>
  </session>
</iq>
      <!-- Example 30-->
<iq type='result' from='jobs.domain' to='sender@domain/res'>
  <session  xmlns='http://jabber.org/protocol/jobs'
      status='active'
      id='01234567'/>
</iq>
      <!-- Example 31-->
<iq id='JOBS50' type='set' to='jobs.domain'>
  <session xmlns='http://jabber.org/protocol/jobs'
      action='delete'/>
</iq>
      <!-- Example 32-->
<iq id='JOBS50' type='result' to='sender@domain/res' from='jobs.domain'>
  <session xmlns='http://jabber.org/protocol/jobs'
      status='closed'
      id='01234567'/>
</iq>
      <!-- Example 33-->
<message to='sender@domain/res' from='jobs.domain'>
  <session xmlns='http://jabber.org/protocol/jobs'
      action='notify'
      status='pending'
      id='01234567'>
    <item type='connection' action='accept'/>
  </session>
</message>
      <!-- Example 34-->
<message to='receiver@domain/res' from='jobs.domain'>
  <session xmlns='http://jabber.org/protocol/jobs'
      action='notify'
      status='pending'
      id='01234567'>
    <item type='connection' action='reject'/>
  </session>
</message>
      <!-- Example 35-->
<message to='receiver@domain/res' from='jobs.domain'>
  <session xmlns='http://jabber.org/protocol/jobs'
      action='notify'
      status='pending'
      id='01234567'>
    <item type='connection' action='drop'/>
  </session>
</message>
      <!-- Example 36-->
<message to='sender@domain/res' from='jobs.domain'>
  <session xmlns='http://jabber.org/protocol/jobs'
      action='notify'
      status='closed'
      id='01234567'>
    <item type='status' action='delete'/>
  </session>
</message>
      <!-- Example 37-->
<message to='sender@domain/res' from='jobs.domain'>
  <session xmlns='http://jabber.org/protocol/jobs'
      action='notify'
      status='closed'
      id='01234567'>
    <item type='status' action='expire'/>
  </session>
</message>
      </stream>

