annotate extensions/app_sip/diamsip.c @ 420:c8a61dabea55

app_sip:Added LIR/LIA for SL
author Alexandre Westfahl <awestfahl@freediameter.net>
date Mon, 19 Jul 2010 16:46:33 +0900
parents 9cc48cd22e67
children 3d9f300f3b49
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
364
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
1 /*********************************************************************************************************
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
2 * Software License Agreement (BSD License) *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
3 * Author: Alexandre Westfahl <awestfahl@freediameter.net> *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
4 * *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
5 * Copyright (c) 2010, Alexandre Westfahl, Teraoka Laboratory (Keio University), and the WIDE Project. *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
6 * *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
7 * All rights reserved. *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
8 * *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
9 * Redistribution and use of this software in source and binary forms, with or without modification, are *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
10 * permitted provided that the following conditions are met: *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
11 * *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
12 * * Redistributions of source code must retain the above *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
13 * copyright notice, this list of conditions and the *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
14 * following disclaimer. *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
15 * *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
16 * * Redistributions in binary form must reproduce the above *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
17 * copyright notice, this list of conditions and the *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
18 * following disclaimer in the documentation and/or other *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
19 * materials provided with the distribution. *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
20 * *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
21 * * Neither the name of the Teraoka Laboratory nor the *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
22 * names of its contributors may be used to endorse or *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
23 * promote products derived from this software without *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
24 * specific prior written permission of Teraoka Laboratory *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
25 * *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
26 * *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
27 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
28 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
29 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
30 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
31 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
32 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
33 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
34 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
da11085cf6d9 Updated Copyright information of SIP extension
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 360
diff changeset
35 *********************************************************************************************************/
360
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
36 #include "diamsip.h"
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
37
420
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
38 //Diameter-SIP server
368
a1f26147ec61 Corrected bugs on app_sip and rgwx_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 364
diff changeset
39 struct disp_hdl * diamsip_MAR_hdl=NULL;
409
c2fb5b26bfcb Fix for ticket 8
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 392
diff changeset
40 struct disp_hdl * diamsip_LIR_hdl=NULL;
c2fb5b26bfcb Fix for ticket 8
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 392
diff changeset
41 struct disp_hdl * diamsip_UAR_hdl=NULL;
c2fb5b26bfcb Fix for ticket 8
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 392
diff changeset
42 struct disp_hdl * diamsip_SAR_hdl=NULL;
c2fb5b26bfcb Fix for ticket 8
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 392
diff changeset
43 struct disp_hdl * diamsip_PPA_hdl=NULL;
c2fb5b26bfcb Fix for ticket 8
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 392
diff changeset
44 struct disp_hdl * diamsip_RTA_hdl=NULL;
c2fb5b26bfcb Fix for ticket 8
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 392
diff changeset
45
420
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
46 //Suscriber Locator
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
47 struct disp_hdl * diamsipSL_LIR_hdl=NULL;
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
48
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
49
409
c2fb5b26bfcb Fix for ticket 8
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 392
diff changeset
50
368
a1f26147ec61 Corrected bugs on app_sip and rgwx_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 364
diff changeset
51 struct disp_hdl * diamsip_default_hdl=NULL;
a1f26147ec61 Corrected bugs on app_sip and rgwx_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 364
diff changeset
52 struct session_handler * ds_sess_hdl;
a1f26147ec61 Corrected bugs on app_sip and rgwx_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 364
diff changeset
53
392
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
54 //configuration stucture
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
55 struct as_conf * as_conf=NULL;
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
56 static struct as_conf app_sip_conf;
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
57
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
58 //dictionary of SIP
368
a1f26147ec61 Corrected bugs on app_sip and rgwx_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 364
diff changeset
59 struct diamsip_dict sip_dict;
360
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
60
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
61 int diamsip_default_cb( struct msg ** msg, struct avp * avp, struct session * sess, enum disp_action * act)
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
62 {
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
63 TRACE_ENTRY("%p %p %p %p", msg, avp, sess, act);
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
64
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
65 return 0;
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
66 }
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
67
392
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
68 void dump_config()
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
69 {
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
70 TRACE_DEBUG(FULL,"***Configuration of Diameter-SIP extension***");
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
71 TRACE_DEBUG(FULL,"# mode: *%d*",as_conf->mode);
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
72 TRACE_DEBUG(FULL,"# datasource: *%d*",as_conf->datasource);
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
73 TRACE_DEBUG(FULL,"# mysql_login: *%s*",as_conf->mysql_login);
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
74 TRACE_DEBUG(FULL,"# mysql_password: *%s*",as_conf->mysql_password);
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
75 TRACE_DEBUG(FULL,"# mysql_database: *%s*",as_conf->mysql_database);
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
76 TRACE_DEBUG(FULL,"# mysql_server: *%s*",as_conf->mysql_server);
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
77 TRACE_DEBUG(FULL,"# mysql_port: *%d*",as_conf->mysql_port);
420
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
78 TRACE_DEBUG(FULL,"# mysql_port: *%d*",as_conf->mysql_prefix);
392
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
79 TRACE_DEBUG(FULL,"***End of Diameter-SIP configuration extension***");
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
80 }
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
81
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
82 static int as_conf_init(void)
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
83 {
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
84 as_conf=&app_sip_conf;
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
85 //memset(app_sip_conf, 0, sizeof(struct as_conf));
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
86
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
87
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
88 return 0;
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
89 }
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
90
360
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
91 /* entry point */
392
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
92 int as_entry(char * conffile)
360
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
93 {
392
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
94 TRACE_ENTRY("%p", conffile);
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
95
360
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
96 struct dict_object * app=NULL;
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
97 struct disp_when data;
420
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
98 pthread_t rtr_thread, ppr_thread;
360
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
99
392
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
100 /* Initialize configuration */
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
101 CHECK_FCT( as_conf_init() );
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
102
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
103
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
104 //We parse the configuration file
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
105 if (conffile != NULL) {
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
106 CHECK_FCT( as_conf_handle(conffile) );
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
107 }
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
108 else
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
109 {
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
110 TRACE_DEBUG(INFO, "We need a configuration file for Diameter-SIP extension. See doc/ for an example.");
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
111 }
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
112
420
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
113 //TODO: replace by configuration file!!
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
114 strcpy(as_conf->mysql_prefix,"as_");
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
115
392
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
116 //We can dump the configuration extracted from app_sip.conf
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
117 //dump_config();
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
118
360
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
119 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_APPLICATION, APPLICATION_BY_NAME, "Diameter Session Initiation Protocol (SIP) Application", &app, ENOENT) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
120 CHECK_FCT( fd_disp_app_support ( app, NULL, 1, 0 ) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
121
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
122
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
123
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
124 //We set usefull AVPs
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
125 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Auth-Session-State", &sip_dict.Auth_Session_State, ENOENT) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
126 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Auth-Application-Id", &sip_dict.Auth_Application_Id, ENOENT) );
419
9cc48cd22e67 Finished RTR on Diameter-SIP
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 409
diff changeset
127 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Destination-Host", &sip_dict.Destination_Host, ENOENT) );
9cc48cd22e67 Finished RTR on Diameter-SIP
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 409
diff changeset
128 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Session-Id", &sip_dict.Session_Id, ENOENT) );
420
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
129 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Redirect-Host", &sip_dict.Redirect_Host, ENOENT) );
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
130 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Redirect-Host-Usage", &sip_dict.Redirect_Host_Usage, ENOENT) );
360
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
131 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "SIP-Auth-Data-Item", &sip_dict.SIP_Auth_Data_Item, ENOENT) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
132 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "SIP-Authorization", &sip_dict.SIP_Authorization, ENOENT) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
133 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "SIP-Authenticate", &sip_dict.SIP_Authenticate, ENOENT) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
134 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "SIP-Number-Auth-Items", &sip_dict.SIP_Number_Auth_Items, ENOENT) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
135 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "SIP-Authentication-Scheme", &sip_dict.SIP_Authentication_Scheme, ENOENT) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
136 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "SIP-Authentication-Info", &sip_dict.SIP_Authentication_Info, ENOENT) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
137 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "SIP-Server-URI", &sip_dict.SIP_Server_URI, ENOENT) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
138 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "SIP-Method", &sip_dict.SIP_Method, ENOENT) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
139 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "SIP-AOR", &sip_dict.SIP_AOR, ENOENT) );
419
9cc48cd22e67 Finished RTR on Diameter-SIP
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 409
diff changeset
140 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "SIP-Deregistration-Reason", &sip_dict.SIP_Deregistration_Reason, ENOENT) );
9cc48cd22e67 Finished RTR on Diameter-SIP
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 409
diff changeset
141 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "SIP-Reason-Code", &sip_dict.SIP_Reason_Code, ENOENT) );
9cc48cd22e67 Finished RTR on Diameter-SIP
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 409
diff changeset
142 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "SIP-Reason-Info", &sip_dict.SIP_Reason_Info, ENOENT) );
360
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
143 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Digest-Realm", &sip_dict.Digest_Realm, ENOENT) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
144 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Digest-URI", &sip_dict.Digest_URI, ENOENT) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
145 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Digest-Nonce", &sip_dict.Digest_Nonce, ENOENT) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
146 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Digest-CNonce", &sip_dict.Digest_CNonce, ENOENT) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
147 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Digest-Method", &sip_dict.Digest_Method, ENOENT) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
148 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Digest-Nonce-Count", &sip_dict.Digest_Nonce_Count, ENOENT) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
149 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Digest-Realm", &sip_dict.Digest_Realm, ENOENT) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
150 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Digest-Response", &sip_dict.Digest_Response, ENOENT) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
151 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Digest-Response-Auth", &sip_dict.Digest_Response_Auth, ENOENT) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
152 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Digest-Username", &sip_dict.Digest_Username, ENOENT) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
153 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Digest-Algorithm", &sip_dict.Digest_Algorithm, ENOENT) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
154 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Digest-QoP", &sip_dict.Digest_QOP, ENOENT) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
155 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "User-Name", &sip_dict.User_Name, ENOENT) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
156 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_AVP, AVP_BY_NAME, "Digest-HA1", &sip_dict.Digest_HA1, ENOENT) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
157
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
158
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
159 //Register Application
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
160 memset(&data, 0, sizeof(data));
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
161 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_APPLICATION, APPLICATION_BY_NAME, "Diameter Session Initiation Protocol (SIP) Application", &data.app, ENOENT) );
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
162
420
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
163 if(as_conf->mode==1)
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
164 {
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
165 //**Command Codes
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
166 //MAR
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
167 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_COMMAND, CMD_BY_NAME, "Multimedia-Auth-Request", &data.command, ENOENT) );
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
168 CHECK_FCT( fd_disp_register( diamsip_MAR_cb, DISP_HOW_CC, &data, &diamsip_MAR_hdl ) );
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
169 //RTA
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
170 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_COMMAND, CMD_BY_NAME, "Registration-Termination-Answer", &data.command, ENOENT) );
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
171 CHECK_FCT( fd_disp_register( diamsip_RTA_cb, DISP_HOW_CC, &data, &diamsip_RTA_hdl ) );
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
172 //PPA
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
173 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_COMMAND, CMD_BY_NAME, "Push-Profile-Answer", &data.command, ENOENT) );
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
174 CHECK_FCT( fd_disp_register( diamsip_PPA_cb, DISP_HOW_CC, &data, &diamsip_PPA_hdl ) );
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
175 //LIR
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
176 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_COMMAND, CMD_BY_NAME, "Location-Info-Request", &data.command, ENOENT) );
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
177 CHECK_FCT( fd_disp_register( diamsip_LIR_cb, DISP_HOW_CC, &data, &diamsip_LIR_hdl ) );
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
178 }
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
179 if(as_conf->mode==2)
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
180 {
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
181 //LIR
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
182 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, DICT_COMMAND, CMD_BY_NAME, "Location-Info-Request", &data.command, ENOENT) );
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
183 CHECK_FCT( fd_disp_register( diamsipSL_LIR_cb, DISP_HOW_CC, &data, &diamsipSL_LIR_hdl ) );
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
184 }
409
c2fb5b26bfcb Fix for ticket 8
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 392
diff changeset
185 //Callback for unexpected messages
c2fb5b26bfcb Fix for ticket 8
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 392
diff changeset
186 CHECK_FCT( fd_disp_register( diamsip_default_cb, DISP_HOW_APPID, &data, &diamsip_default_hdl ) );
c2fb5b26bfcb Fix for ticket 8
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 392
diff changeset
187
c2fb5b26bfcb Fix for ticket 8
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 392
diff changeset
188
360
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
189 //We start database connection
392
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
190 if(start_mysql_connection())
420
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
191 return EINVAL;
360
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
192
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
193 CHECK_FCT(fd_sess_handler_create(&ds_sess_hdl, free));
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
194
419
9cc48cd22e67 Finished RTR on Diameter-SIP
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 409
diff changeset
195 //Creation of thread for Registration Termination
9cc48cd22e67 Finished RTR on Diameter-SIP
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 409
diff changeset
196 if(pthread_create(&rtr_thread, NULL,rtr_socket, NULL))
9cc48cd22e67 Finished RTR on Diameter-SIP
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 409
diff changeset
197 {
9cc48cd22e67 Finished RTR on Diameter-SIP
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 409
diff changeset
198 TRACE_DEBUG(INFO,"Creation of thread failed, abort!");
420
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
199 return EINVAL;
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
200 }
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
201 //Creation of thread for Push Profile
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
202 if(pthread_create(&ppr_thread, NULL,ppr_socket, NULL))
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
203 {
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
204 TRACE_DEBUG(INFO,"Creation of thread failed, abort!");
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
205 return EINVAL;
419
9cc48cd22e67 Finished RTR on Diameter-SIP
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 409
diff changeset
206 }
9cc48cd22e67 Finished RTR on Diameter-SIP
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 409
diff changeset
207
9cc48cd22e67 Finished RTR on Diameter-SIP
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 409
diff changeset
208
9cc48cd22e67 Finished RTR on Diameter-SIP
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 409
diff changeset
209
9cc48cd22e67 Finished RTR on Diameter-SIP
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 409
diff changeset
210
9cc48cd22e67 Finished RTR on Diameter-SIP
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 409
diff changeset
211
9cc48cd22e67 Finished RTR on Diameter-SIP
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 409
diff changeset
212
360
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
213 return 0;
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
214 }
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
215
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
216 //Cleanup callback
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
217 void fd_ext_fini(void)
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
218 {
420
c8a61dabea55 app_sip:Added LIR/LIA for SL
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 419
diff changeset
219 //TODO:unregister other callbacks
409
c2fb5b26bfcb Fix for ticket 8
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 392
diff changeset
220
c2fb5b26bfcb Fix for ticket 8
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 392
diff changeset
221 (void) fd_disp_unregister(&diamsip_MAR_hdl);
c2fb5b26bfcb Fix for ticket 8
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 392
diff changeset
222 CHECK_FCT_DO( fd_sess_handler_destroy(&ds_sess_hdl),return);
c2fb5b26bfcb Fix for ticket 8
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 392
diff changeset
223
360
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
224
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
225 //We close database connection
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
226 close_mysql_connection();
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
227
368
a1f26147ec61 Corrected bugs on app_sip and rgwx_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 364
diff changeset
228
360
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
229
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
230 TRACE_ENTRY();
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
231 return ;
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
232 }
1740bee6c821 Initial App_SIP import
Alexandre Westfahl <awestfahl@freediameter.net>
parents:
diff changeset
233
392
8e260030f32c Added configuration file for app_sip and test_sip
Alexandre Westfahl <awestfahl@freediameter.net>
parents: 368
diff changeset
234 EXTENSION_ENTRY("app_sip", as_entry);
"Welcome to our mercurial repository"