gateway->status = SOFIA_GATEWAY_UP;
}
- if (switch_strlen_zero(from_domain)) {
- from_domain = realm;
- }
-
if (switch_strlen_zero(auth_username)) {
auth_username = username;
}
}
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, from_domain, register_transport);
+ gateway->register_from = switch_core_sprintf(gateway->pool, "<sip:%s@%s;transport=%s>",
+ from_user, from_domain ? from_domain : proxy, register_transport);
sipip = contact_host ? contact_host : profile->extsipip ? profile->extsipip : profile->sipip;