Commit 05145e24 authored by Simon Morlat's avatar Simon Morlat

Update sofia-sip to ease build.

parent 865e8f75
Pipeline #2180 passed with stages
in 33 minutes and 39 seconds
......@@ -317,6 +317,8 @@ public:
static bool getUriParameter(const url_t *url, const char *param, std::string &value);
static bool getBoolUriParameter(const url_t *url, const char *param, bool defaultValue);
static sip_via_t *getLastVia(sip_t *sip);
/* same as url_make() from sofia, but unsure that the url is sip or sips; otherwise return NULL*/
static url_t *sipUrlMake(su_home_t *home, const char *value);
};
}
\ No newline at end of file
......@@ -136,7 +136,7 @@ void ModuleRouter::onLoad(const GenericStruct *mc) {
mFallbackParentDomain = mc->get<ConfigBoolean>("parent-domain-fallback")->read();
if (!mFallbackRoute.empty()){
mFallbackRouteParsed = url_make(getHome(), mFallbackRoute.c_str());
mFallbackRouteParsed = sipUrlMake(getHome(), mFallbackRoute.c_str());
if (!mFallbackRouteParsed) LOGF("Bad value [%s] for fallback-route in module::Router.", mFallbackRoute.c_str());
}
}
......
......@@ -743,3 +743,15 @@ sip_via_t *ModuleToolbox::getLastVia(sip_t *sip){
}
return ret;
}
url_t *ModuleToolbox::sipUrlMake(su_home_t *home, const char *value){
url_t *ret = url_make(home, value);
if (ret){
if (ret->url_type != url_sip && ret->url_type != url_sips){
su_free(home, ret);
ret = NULL;
}
}
return ret;
}
Subproject commit c306b85c88d311a9fec2394d90a942635dd1b15d
Subproject commit f2b5ed37b2294062aa892e688aab2082d7b1467f
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