]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_sofia] add 'sip_destination_prefix' var to prefix user portion of request uri...
authorMichael Jerris <mike@jerris.com>
Fri, 13 Dec 2019 01:12:45 +0000 (18:12 -0700)
committerAndrey Volk <andywolk@gmail.com>
Sat, 23 Oct 2021 18:59:51 +0000 (21:59 +0300)
src/mod/endpoints/mod_sofia/mod_sofia.c

index e3bfa3870bfacdc1325305e96f9137f8238b14ab..835717e7e920690a74a14d1cfb3df67872a2ceeb 100644 (file)
@@ -4909,7 +4909,7 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
                }
 
        } else {
-               const char *sip_destination_prefix = switch_str_nil(switch_channel_get_variable(o_channel, "sip_destination_prefix"));
+               const char *sip_destination_prefix = switch_str_nil(switch_event_get_header(var_event, "sip_destination_prefix"));
 
                if (!(dest = strchr(profile_name, '/'))) {
                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Invalid URL\n");