mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-02 11:19:28 +00:00
use braces on ifs.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7191 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
85cdbb46bf
commit
7accbe103f
@ -2354,8 +2354,9 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
|
||||
|
||||
switch_channel_set_variable(channel, "sip_from_comment", sip->sip_from->a_comment);
|
||||
|
||||
if (sip->sip_from->a_params)
|
||||
if (sip->sip_from->a_params) {
|
||||
set_variable_sip_param(channel, "from", sip->sip_from->a_params);
|
||||
}
|
||||
|
||||
switch_channel_set_variable(channel, "sofia_profile_name", profile->name);
|
||||
|
||||
@ -2420,8 +2421,9 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
|
||||
|
||||
switch_channel_set_variable(channel, "sip_to_comment", sip->sip_to->a_comment);
|
||||
|
||||
if (sip->sip_to->a_params)
|
||||
if (sip->sip_to->a_params) {
|
||||
set_variable_sip_param(channel, "to", sip->sip_to->a_params);
|
||||
}
|
||||
|
||||
if (sip->sip_contact->m_url->url_port) {
|
||||
port = atoi(sip->sip_contact->m_url->url_port);
|
||||
@ -2483,9 +2485,9 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
|
||||
|
||||
switch_channel_set_variable(channel, "sip_referred_by_cid", sip->sip_referred_by->b_cid);
|
||||
|
||||
if (sip->sip_referred_by->b_params)
|
||||
if (sip->sip_referred_by->b_params) {
|
||||
set_variable_sip_param(channel, "referred_by", sip->sip_referred_by->b_params);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
sofia_glue_attach_private(session, profile, tech_pvt, channel_name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user