Mercurial > hg > freeDiameter
annotate extensions/test_sip/test_sip.h @ 392:8e260030f32c
Added configuration file for app_sip and test_sip
author | Alexandre Westfahl <awestfahl@freediameter.net> |
---|---|
date | Tue, 06 Jul 2010 19:50:52 +0900 |
parents | 9af1e3b432e6 |
children | c2fb5b26bfcb |
rev | line source |
---|---|
392
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
1 /********************************************************************************************************* |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
2 * Software License Agreement (BSD License) * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
3 * Author: Alexandre Westfahl <awestfahl@freediameter.net> * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
4 * * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
5 * Copyright (c) 2010, Alexandre Westfahl, Teraoka Laboratory (Keio University), and the WIDE Project. * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
6 * * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
7 * All rights reserved. * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
8 * * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
9 * Redistribution and use of this software in source and binary forms, with or without modification, are * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
10 * permitted provided that the following conditions are met: * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
11 * * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
12 * * Redistributions of source code must retain the above * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
13 * copyright notice, this list of conditions and the * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
14 * following disclaimer. * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
15 * * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
16 * * Redistributions in binary form must reproduce the above * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
17 * copyright notice, this list of conditions and the * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
18 * following disclaimer in the documentation and/or other * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
19 * materials provided with the distribution. * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
20 * * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
21 * * Neither the name of the Teraoka Laboratory nor the * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
22 * names of its contributors may be used to endorse or * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
23 * promote products derived from this software without * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
24 * specific prior written permission of Teraoka Laboratory * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
25 * * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
26 * * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
27 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
28 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
29 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
30 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
31 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
32 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
33 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
34 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
35 *********************************************************************************************************/ |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
36 |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
37 |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
38 /* The module configuration */ |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
39 struct test_sip_conf { |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
40 int mode; /* default MODE_DSSERVER | MODE_SL */ |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
41 enum {ASMYSQL} datasource; |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
42 char * mysql_login; |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
43 char * mysql_password; |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
44 char * mysql_database; |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
45 char * mysql_server; |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
46 uint16_t mysql_port; |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
47 |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
48 }; |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
49 extern struct test_sip_conf * test_sip_conf; |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
50 |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
51 |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
52 |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
53 |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
54 |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
55 |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
56 |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
57 |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
58 |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
59 |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
60 |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
61 |
8e260030f32c
Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
381
diff
changeset
|
62 |