Anthony Baxter a �crit :

I'm the author of a package called Shtoom, a VoIP software suite
written in Python (using Twisted). I'm thinking about adding Jabber
support to Shtoom for the purposes of discovering someone else's SIP address (thus avoiding the need for a SIP registration server,
plus people can use their existing Jabber accounts rather than having
to create a new identity). I'm at something of a loss as to how to
do this - should Shtoom publish the SIP address, or should it instead
ask another XMPP client "I want to make a SIP call", and it can then
decide to send back the SIP address. I've not been able to find existing
work in this area - TINS looks interesting, but it's not really what I'm looking for right now.

I already wrote to discuss it some time ago ; the proposed solution was the following:
1) use disco to know the other end does VoIP ;

2) discuss which VoIP protocol to use with the remote end like this:
ASK:
<iq type='get'
    from='[EMAIL PROTECTED]/JabberHelper'
    to='[EMAIL PROTECTED]/Babili'
    id='neg1'>
  <feature xmlns='http://jabber.org/protocol/feature-neg'>
    <x xmlns='jabber:x:data' type='form'>
      <field type='list-single' var='http://jabber.org/protocol/voip'>
         <option><value>h323</value></option>
         <option><value>sip</value></option>
         <option><value>callto</value></option>
      </field>
    </x>
  </feature>
</iq>
ANSWER:
<iq type='result'
    from='[EMAIL PROTECTED]/JabberHelper'
    to='[EMAIL PROTECTED]/Babili'
    id='msg_2'>
  <feature xmlns='http://jabber.org/protocol/feature-neg'>
    <x type='submit' xmlns='jabber:x:data'>
      <field var='http://jabber.org/protocol/voip'>
        <value>h323</value>
      </field>
    </x>
  </feature>
</iq>

3) Setup a call in the now known protocol:
ASK:
<iq type='set'
    from='[EMAIL PROTECTED]/JabberHelper'
    to='[EMAIL PROTECTED]/Babili'
    id='neg1'>
  <query xmlns='jabber:iq:oob'>
    <url>h323:h323.voxgratia.org</url>
    <desc>VoIP call</desc>
  </query>
</iq>
REPLY:
<iq type='result' to='[EMAIL PROTECTED]/JabberHelper' id='neg1' from='[EMAIL PROTECTED]/Babili'/>

Notice that "http://jabber.org/protocol/voip"; isn't valid yet, since I didn't write to the registrar about it yet -- now that gossip seems to go forth again, I'll certainly be more interested in doing so.

Snark on #gnomemeeting
_______________________________________________
jdev mailing list
[email protected]
http://mail.jabber.org/mailman/listinfo/jdev

Reply via email to