4
* Copyright (C) 2013 Robert Boisvert
6
* This file is part of the mohqueue module for sip-router, a free SIP server.
8
* The mohqueue module 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
* The mohqueue module 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
27
#include "mohq_common.h"
28
#include "mohq_locks.h"
37
#define MOHFILELEN 100
49
/* mohq_flags values */
50
#define MOHQF_ACT 0x01
51
#define MOHQF_CHK 0x02
52
#define MOHQF_DBG 0x04
57
char mohq_uri [URI_LEN + 1];
58
char mohq_mohdir [MOHDIRLEN + 1];
59
char mohq_mohfile [MOHFILELEN + 1];
64
/* call_state values */
65
#define CLSTA_ENTER 100
66
#define CLSTA_PRACKSTRT 101
67
#define CLSTA_PRACKRPLY 102
68
#define CLSTA_RINGING 103
69
#define CLSTA_INVITED 104
70
#define CLSTA_CANCEL 105
71
#define CLSTA_INQUEUE 200
72
#define CLSTA_REFER 301
73
#define CLSTA_RFRWAIT 302
80
char call_from [URI_LEN + 1];
81
char call_referto [URI_LEN + 1];
82
char call_contact [URI_LEN + 1];
85
char call_addr [IP_ADDR_MAX_STR_SIZE + 4];
91
unsigned int call_hash;
92
unsigned int call_label;
110
mohq_lock pmohq_lock [1];
113
mohq_lock pcall_lock [1];
118
cmd_function fn_rtp_answer;
119
cmd_function fn_rtp_destroy;
120
cmd_function fn_rtp_offer;
121
cmd_function fn_rtp_stream_c;
122
cmd_function fn_rtp_stream_s;
126
* global varb declarations
129
extern mod_data *pmod_data;
130
extern rtpmap prtpmap [];
b'\\ No newline at end of file'