~ubuntu-branches/ubuntu/utopic/sipwitch/utopic

« back to all changes in this revision

Viewing changes to server/server.h

  • Committer: Package Import Robot
  • Author(s): Jonas Smedegaard
  • Date: 2012-06-25 16:55:59 UTC
  • Revision ID: package-import@ubuntu.com-20120625165559-3g3z1w6qxysi9t08
* New upstream release.

* Update upstream source URL.
* Extend copyright coverage of packaging.
* Add Vcs-* URLs to control file.
* Unfuzz patch 1001.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
// You should have received a copy of the GNU General Public License
14
14
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
15
 
16
 
#undef  HAVE_CONFIG_H
17
 
 
18
 
#include <sipwitch-config.h>
19
16
#include <sipwitch/sipwitch.h>
20
17
#include <ucommon/secure.h>
21
 
 
22
 
#ifdef WIN32
23
 
#undef alloca
24
 
#endif
25
 
 
 
18
#include <eXosip2/eXosip.h>
 
19
#include <config.h>
26
20
#include <ctype.h>
27
 
#include "voip.h"
28
 
 
29
 
#ifdef  EXOSIP_API4
30
 
#define EXOSIP_CONTEXT  stack::sip.context
31
 
#define OPTION_CONTEXT  stack::sip.context,
32
 
#define EXOSIP_LOCK     eXosip_lock(stack::sip.context);
33
 
#define EXOSIP_UNLOCK   eXosip_unlock(stack::sip.context);
34
 
#else
35
 
#define EXOSIP_CONTEXT
36
 
#define OPTION_CONTEXT
37
 
#define EXOSIP_LOCK     eXosip_lock();
38
 
#define EXOSIP_UNLOCK   eXosip_unlock();
 
21
 
 
22
#ifndef SESSION_EXPIRES
 
23
#define SESSION_EXPIRES "session-expires"
 
24
#endif
 
25
 
 
26
#ifndef SESSION_EVENT
 
27
#define SESSION_EVENT   "event"
 
28
#endif
 
29
 
 
30
#ifndef ALLOW_EVENTS
 
31
#define ALLOW_EVENTS    "allow-events"
39
32
#endif
40
33
 
41
34
#define P_SIPWITCH_NODE "P-sipwitch-node"
123
116
        } index;
124
117
        struct sockaddr_internet address;
125
118
        struct sockaddr_storage peering;
126
 
        sip::context_t context;
127
119
 
128
120
        time_t created;
129
121
        status_t status;
253
245
    public:
254
246
        registry::mapped *reg;
255
247
        int cid, tid, did;
256
 
        sip::context_t context;
257
248
        time_t activates;
258
249
        uint32_t sequence;
259
250
        call *parent;
394
385
    timeout_t ring_timer, cfna_timer, reset_timer;
395
386
    unsigned invite_expires;
396
387
 
397
 
public:
398
 
    sip::context_t context;
399
 
 
400
388
    static stack sip;
401
389
 
 
390
public:
402
391
    class __LOCAL subnet : public cidr
403
392
    {
404
393
    private:
540
529
    class __LOCAL message : public LinkedObject
541
530
    {
542
531
    public:
543
 
        sip::context_t context;
544
532
        time_t expires;
545
533
        char user[MAX_USERID_SIZE];
546
534
        char type[64];
609
597
    unsigned via_hops;
610
598
    unsigned via_port, from_port, contact_port;
611
599
    destination_t destination;
612
 
    sip::context_t source_context, target_context;
613
600
 
614
601
    char *sip_realm;
615
602
    osip_proxy_authenticate_t *proxy_auth;