Commit 361fa8b5 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix error in DNS SRV callback and enable DNS SRV resolution.

parent d2c44ec4
......@@ -469,7 +469,6 @@ static void process_srv_results(void *data, const char *name, belle_sip_list_t *
struct belle_sip_recursive_resolve_data *rec_data = (struct belle_sip_recursive_resolve_data *)data;
rec_data->srv_list = srv_list;
rec_data->ctx->done = FALSE;
belle_sip_resolver_context_destroy(rec_data->ctx);
if (!start_a_query_from_srv_results(rec_data)) {
/* There was no SRV results, try to perform the A or AAAA directly. */
rec_data->ctx->cb = process_a_results;
......
......@@ -736,8 +736,7 @@ static void channel_res_done(void *data, const char *name, struct addrinfo *ai_l
void belle_sip_channel_resolve(belle_sip_channel_t *obj){
channel_set_state(obj,BELLE_SIP_CHANNEL_RES_IN_PROGRESS);
/*obj->resolver_id=belle_sip_stack_resolve(obj->stack, belle_sip_channel_get_transport_name_lower_case(obj), obj->peer_name, obj->peer_port, obj->lp->ai_family, channel_res_done, obj);*/
obj->resolver_id=belle_sip_stack_resolve_a(obj->stack, obj->peer_name, obj->peer_port, obj->lp->ai_family, channel_res_done, obj);
obj->resolver_id=belle_sip_stack_resolve(obj->stack, belle_sip_channel_get_transport_name_lower_case(obj), obj->peer_name, obj->peer_port, obj->lp->ai_family, channel_res_done, obj);
if (obj->resolver_id==-1){
channel_set_state(obj,BELLE_SIP_CHANNEL_ERROR);
}
......
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