via: 4b62ff799e00a30fb898ddea2633d928d0d24eeb (commit)
from: 65d5932c9ffc17be3df98deb0fe0e3552565eb76 (commit)
= COMMIT LOG ===========================================================
committer: Anthony Minessale
comments:
put transport in the request uri on outbound registers if register_transport is set and proxy does not already contain a transport param
diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c
index 825d1bf..e9d2cad 100644
--- a/src/mod/endpoints/mod_sofia/sofia.c
+++ b/src/mod/endpoints/mod_sofia/sofia.c
@@ -2148,8 +2148,13 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag)
if (!zstr(from_domain)) {
gateway->from_domain = switch_core_strdup(gateway->pool, from_domain);
}
+
+ if (!zstr(register_transport) && !switch_stristr("transport=", proxy)) {
+ gateway->register_url = switch_core_sprintf(gateway->pool, "sip:%s;transport=%s", proxy, register_transport);
+ } else {
+ gateway->register_url = switch_core_sprintf(gateway->pool, "sip:%s", proxy);
+ }
- gateway->register_url = switch_core_sprintf(gateway->pool, "sip:%s", proxy);
gateway->register_from = switch_core_sprintf(gateway->pool, "<sip:%s@%s;transport=%s>",
from_user, !zstr(from_domain) ? from_domain : proxy, register_transport);
Summary of changes: src/mod/endpoints/mod_sofia/sofia.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
this email was generated because of /git/your-repo.git/hooks/post-receive by the file /git-core/contrib/hooks/post-receive-email
For more info, see http://blog.chomperstomp.com/?p=630
--
FreeSWITCH Source