hi sorry for duplicating the thread but i couldn't find my old post :) i use this code to resolve SRV record in my DNS server but Segmentation fault occur when i executing the app . #include <pjsip.h> #include <pjlib.h> #include <pjlib-util.h> #include <pjsip/sip_types.h> int main(){ pj_status_t status ; pj_pool_t *pool; pj_dns_resolver *resv; pjsip_endpoint *endpt; pj_str_t nameserver = pj_str("_sip._udp.myDns.com"); pj_uint16_t port = 5060; pool = pjsip_endpt_create_pool(endpt, NULL, 4000, 4000); //Segmentation fault here status = pjsip_endpt_create_resolver(endpt, &resv); pj_dns_resolver_set_ns(resv, 1, &nameserver, &port); pjsip_endpt_set_resolver(endpt, resv); return 0 ; }