diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 33cb58a23d..8248d8ced4 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -4445,7 +4445,7 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session goto error; } - tech_pvt = sofia_glue_new_pvt(session); + tech_pvt = sofia_glue_new_pvt(nsession); data = switch_core_session_strdup(nsession, outbound_profile->destination_number); if ((dest_to = strchr(data, '^'))) {