mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
add params to use sip callid as uuid on inbound calls and uuid as sip callid on outbound calls
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10418 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1189,7 +1189,9 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
|
||||
from_str = switch_core_session_sprintf(session, "\"%s\" <%s>", tech_pvt->caller_profile->caller_id_name, use_from_str);
|
||||
|
||||
if (!(call_id = switch_channel_get_variable(channel, "sip_outgoing_call_id"))) {
|
||||
call_id = switch_core_session_get_uuid(session);
|
||||
if (tech_pvt->profile->pflags & PFLAG_UUID_AS_CALLID) {
|
||||
call_id = switch_core_session_get_uuid(session);
|
||||
}
|
||||
}
|
||||
|
||||
tech_pvt->nh = nua_handle(tech_pvt->profile->nua, NULL,
|
||||
|
||||
Reference in New Issue
Block a user