#include "linphone/core.h"
#include <signal.h>
static bool_t running=TRUE;
static void stop(int signum){
running=FALSE;
}
printf("New registration state %s for user id [%s] at proxy [%s]\n"
,linphone_proxy_config_get_addr(cfg));
}
int main(int argc, char *argv[]){
char* identity=NULL;
char* password=NULL;
const char* server_addr;
if (argc>1){
identity=argv[1];
}
if (argc>2){
password=argv[2];
}
signal(SIGINT,stop);
#ifdef DEBUG
#endif
if (from==NULL){
printf("%s not a valid sip uri, must be like sip:toto@sip.linphone.org \n",identity);
goto end;
}
if (password!=NULL){
}
while(running){
ms_usleep(50000);
}
ms_usleep(50000);
}
end:
printf("Shutting down...\n");
printf("Exited\n");
return 0;
}