conference: incoming invite (part I)
[siplcs.git] / src / sipe-conf.h
blobeabda4ab5924eccc7bf50d926569b677ffd72d26
1 /**
2 * @file sipe-conf.h
4 * pidgin-sipe
6 * Copyright (C) 2009 pier11 <pier11@kinozal.tv>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 /**
24 * Processes incoming INVITE with
25 * Content-Type: application/ms-conf-invite+xml
26 * i.e. invitation to join conference.
28 * Server 2007+ functionality.
30 static void
31 process_incoming_invite_conf(struct sipe_account_data *sip,
32 struct sipmsg *msg);
34 /**
35 * AddUser request to Focus.
36 * Params:
37 * focus_URI, from, request_id, focus_URI, from, endpoint_GUID
39 #define SIPE_SEND_CONF_ADD_USER \
40 "<?xml version=\"1.0\"?>"\
41 "<request xmlns=\"urn:ietf:params:xml:ns:cccp\" xmlns:mscp=\"http://schemas.microsoft.com/rtc/2005/08/cccpextensions\" "\
42 "C3PVersion=\"1\" "\
43 "to=\"%s\" "\
44 "from=\"%s\" "\
45 "requestId=\"%d\">"\
46 "<addUser>"\
47 "<conferenceKeys confEntity=\"%s\"/>"\
48 "<ci:user xmlns:ci=\"urn:ietf:params:xml:ns:conference-info\" entity=\"%s\">"\
49 "<ci:roles>"\
50 "<ci:entry>attendee</ci:entry>"\
51 "</ci:roles>"\
52 "<ci:endpoint entity=\"{%s}\" xmlns:msci=\"http://schemas.microsoft.com/rtc/2005/08/confinfoextensions\"/>"\
53 "</ci:user>"\
54 "</addUser>"\
55 "</request>"