From ee098d0479b55baafab8fc64dbdf727ff5cbd2e1 Mon Sep 17 00:00:00 2001 From: Magnus Henoch Date: Thu, 16 Oct 2008 15:56:56 +0000 Subject: [PATCH] Update namespaces --- jabber-tox.el | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/jabber-tox.el b/jabber-tox.el index a6861a6..9132744 100644 --- a/jabber-tox.el +++ b/jabber-tox.el @@ -22,21 +22,18 @@ (require 'fsm) (require 'cl) -(defconst jingle-ns "http://www.xmpp.org/extensions/xep-0166.html#ns" +(defconst jingle-ns "urn:xmpp:jingle:0" "Jingle namespace (XEP-0166)") -(defconst jingle-error-ns "http://www.xmpp.org/extensions/xep-0166.html#ns-errors" +(defconst jingle-error-ns "urn:xmpp:jingle:errors:0" "Jingle error namespace (XEP-0166)") -(defconst jingle-audio-ns "http://www.xmpp.org/extensions/xep-0167.html#ns" - "Jingle Audio namespace (XEP-0167)") +(defconst jingle-rtp-ns "urn:xmpp:jingle:apps:rtp:0" + "Jingle RTP Sessions namespace (XEP-0167)") -(defconst jingle-ice-udp-ns "http://www.xmpp.org/extensions/xep-0176.html#ns-udp" +(defconst jingle-ice-udp-ns "urn:xmpp:jingle:transports:ice-udp:0" "Jingle ICE namespace (XEP-0176)") -(defconst jingle-udp-ns "http://www.xmpp.org/extensions/xep-0177.html" - "Jingle Raw UDP namespace (XEP-0177)") - (defvar jingle-acct-sid-map (make-hash-table :test 'equal) "Mapping from pairs of JIDs and Jingle SIDs to FSMs. The JID is the full JID of the account using the session.") @@ -195,7 +192,8 @@ JID is the full JID of the partner." (id (jabber-xml-get-attribute iq 'id)) (jingle (jabber-iq-query iq)) (contents (car (jabber-xml-get-children jingle 'content))) - (audio-content (find jingle-audio-ns (jabber-xml-node-children contents) + ;; XXX: is it really audio? + (audio-content (find jingle-rtp-ns (jabber-xml-node-children contents) :test 'string= :key 'jabber-xml-get-xmlns)) (payload-types (jabber-xml-get-children audio-content 'payload-type))) -- 2.11.4.GIT