int _tmain(int argc, _TCHAR* wargv[]) { char **argv=convert_args_to_ascii(argc,wargv); trace_level=6; #else int main (int argc, char *argv[]) { #endif linphonec_vtable.call_state_changed=linphonec_call_state_changed; linphonec_vtable.notify_presence_recv = linphonec_notify_presence_received; linphonec_vtable.new_subscription_request = linphonec_new_unknown_subscriber; linphonec_vtable.auth_info_requested = linphonec_prompt_for_auth; linphonec_vtable.display_status = linphonec_display_status; linphonec_vtable.display_message=linphonec_display_something; linphonec_vtable.display_warning=linphonec_display_warning; linphonec_vtable.display_url=linphonec_display_url; linphonec_vtable.text_received=linphonec_text_received; linphonec_vtable.dtmf_received=linphonec_dtmf_received; linphonec_vtable.refer_received=linphonec_display_refer; linphonec_vtable.transfer_state_changed=linphonec_transfer_state_changed; linphonec_vtable.call_encryption_changed=linphonec_call_encryption_changed; if (! linphonec_init(argc, argv) ) exit(EXIT_FAILURE); linphonec_main_loop (linphonec); linphonec_finish(EXIT_SUCCESS); exit(EXIT_SUCCESS); /* should never reach here */ }
/* * Main * * Use globals: * * - char *histfile_name * - FILE *mylogfile */ int main (int argc, char *argv[]) { if (! linphonec_init(argc, argv) ) exit(EXIT_FAILURE); linphonec_main_loop (&linphonec, sipAddr); linphonec_finish(EXIT_SUCCESS); exit(EXIT_SUCCESS); /* should never reach here */ }