Hi, I'm a new in Sofia-SIP Library, and I've a problem with nua_register() function when I try to register to Asterisk. Here is my code
/* Begin code */ typedef struct application { su_home_t home; /* memory home */ su_root_t* root; /* root object */ nua_t* nua; /* NUA stack object */ } t_application; t_application app; nua_handle_t *handle; /* Initialize Sofia-SIP library and create event loop */ app.home.suh_size = sizeof(e_sip_obj); /* initialize system utilities */ su_init(); /* initialize memory handling */ su_home_init(&app.home); /* initialize root object */ app.root = su_root_create(NULL); app.nua = nua_create(app.root, /* Event loop */ event_callback, /* Callback for processing events */ &app, /* Additional data to pass to callback */ NUTAG_URL("sip:0.0.0.0:5061"), /* 0.0.0.0 stands for Local address */ TAG_END()); handle = nua_handle(app.nua, &e_sip_obj.home, SIPTAG_TO_STR("sip:[EMAIL PROTECTED]:5060"), /* 1.1.1.1 stands for server address */ TAG_END()); nua_register(handle, SIPTAG_FROM_STR("sip:[EMAIL PROTECTED]:5061"), SIPTAG_TO_STR("sip:[EMAIL PROTECTED]:5060"), NUTAG_M_DISPLAY("test"), TAG_END()); /* End code */ If I try to connect to Asterisk, after several seconds I receive the message "I have received an event nua_r_register status 408 Request Timeout" How can I solve this problem? Thanks in advance, Carmelo -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Cerchi unauto usata, vuoi vendere il camper o il cellulare? Prova Email.it Annunci, pochi click per pubblicare e trovare ciò che vuoi! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6893&d=20070831 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel