Commit e319dc86 authored by Simon Morlat's avatar Simon Morlat
Browse files

don't put transport=tls if uri scheme is sips

parent 7fa044d8
...@@ -403,6 +403,7 @@ static void channel_on_sending(belle_sip_channel_listener_t *obj, belle_sip_chan ...@@ -403,6 +403,7 @@ static void channel_on_sending(belle_sip_channel_listener_t *obj, belle_sip_chan
if (strcmp(transport,"udp")==0){ if (strcmp(transport,"udp")==0){
belle_sip_parameters_remove_parameter(BELLE_SIP_PARAMETERS(contact_uri),"transport"); belle_sip_parameters_remove_parameter(BELLE_SIP_PARAMETERS(contact_uri),"transport");
}else{ }else{
if (!belle_sip_uri_is_secure(contact_uri))
belle_sip_uri_set_transport_param(contact_uri,transport); belle_sip_uri_set_transport_param(contact_uri,transport);
} }
if (port!=belle_sip_listening_point_get_well_known_port(transport)) { if (port!=belle_sip_listening_point_get_well_known_port(transport)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment