[mod_sofia] fix gateway contact in 200 ok

This commit is contained in:
Antonio Silva 2021-05-05 18:58:54 +02:00
parent deecaae870
commit bf85d5f9bc
1 changed files with 1 additions and 0 deletions

View File

@ -11268,6 +11268,7 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia
if (gateway) {
context = switch_core_session_strdup(session, gateway->register_context);
switch_channel_set_variable(channel, "sip_gateway", gateway->name);
tech_pvt->reply_contact = switch_core_session_sprintf(session, gateway->register_contact);
if (!zstr(extension)) {
if (!strcasecmp(extension, "auto_to_user") && sip->sip_to) {