Commit c0566bba authored by Sandrine Avakian's avatar Sandrine Avakian

Updating sip_setup_register_all to use ms_factory_load_plugins.

parent 439b2a93
......@@ -1526,7 +1526,7 @@ static void misc_config_read(LinphoneCore *lc) {
}
static void linphone_core_start(LinphoneCore * lc) {
sip_setup_register_all();
sip_setup_register_all(lc->factory);
sound_config_read(lc);
net_config_read(lc);
rtp_config_read(lc);
......
......@@ -35,9 +35,10 @@ void sip_setup_register(SipSetup *ss){
registered_sip_setups=ms_list_append(registered_sip_setups,ss);
}
void sip_setup_register_all(void){
void sip_setup_register_all(MSFactory *factory){
SipSetup **p=all_sip_setups;
ms_load_plugins(LINPHONE_PLUGINS_DIR);
ms_factory_load_plugins(factory, LINPHONE_PLUGINS_DIR);
//ms_load_plugins(LINPHONE_PLUGINS_DIR);
while(*p!=NULL){
sip_setup_register(*p);
p++;
......
......@@ -132,7 +132,7 @@ void buddy_lookup_request_set_max_results(BuddyLookupRequest *req, int ncount);
void sip_setup_register(SipSetup *ss);
void sip_setup_register_all(void);
void sip_setup_register_all(MSFactory* factory);
SipSetup *sip_setup_lookup(const char *type_name);
void sip_setup_unregister_all(void);
LINPHONE_PUBLIC unsigned int sip_setup_get_capabilities(SipSetup *s);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment