#ifdef IN_LINPHONE
#include "linphonecore.h"
#else
#include "linphone/linphonecore.h"
#endif
#include <signal.h>
static bool_t running=TRUE;
static void stop(int signum){
running=FALSE;
}
printf("New state state [%s] for user id [%s] \n"
}
printf(" [%s] wants to see your status, accepting\n"
}
printf("New registration state %s for user id [%s] at proxy [%s]\n"
}
int main(int argc, char *argv[]){
char* dest_friend=NULL;
char* identity=NULL;
char* password=NULL;
if (argc>1){
dest_friend=argv[1];
}
if (argc>2){
identity=argv[2];
}
if (argc>3){
password=argv[3];
}
signal(SIGINT,stop);
#ifdef DEBUG
#endif
if (identity != NULL) {
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){
}
do {
ms_usleep(100000);
}
}
if (dest_friend) {
if (my_friend == NULL) {
printf("bad destination uri for friend [%s]\n",dest_friend);
goto end;
}
}
while(running){
ms_usleep(50000);
}
end:
printf("Shutting down...\n");
printf("Exited\n");
return 0;
}
struct _LinphoneAuthInfo LinphoneAuthInfo
Definition: linphonecore.h:631
LinphoneAuthInfo * linphone_auth_info_new(const char *username, const char *userid, const char *passwd, const char *ha1, const char *realm)
Definition: authentication.c:40
void linphone_core_add_auth_info(LinphoneCore *lc, const LinphoneAuthInfo *info)
Definition: authentication.c:285
void linphone_friend_edit(LinphoneFriend *fr)
Definition: friend.c:369
struct _LinphoneFriend LinphoneFriend
Definition: linphonefriend.h:108
void linphone_core_add_friend(LinphoneCore *lc, LinphoneFriend *lf)
Definition: friend.c:378
void linphone_friend_done(LinphoneFriend *fr)
Definition: friend.c:372
LinphoneOnlineStatus linphone_friend_get_status(const LinphoneFriend *lf)
Definition: friend.c:326
const LinphoneAddress * linphone_friend_get_address(const LinphoneFriend *lf)
Definition: friend.c:314
int linphone_friend_enable_subscribes(LinphoneFriend *fr, bool_t val)
Definition: friend.c:223
LinphoneFriend * linphone_friend_new_with_addr(const char *addr)
Definition: friend.c:153
int linphone_friend_set_inc_subscribe_policy(LinphoneFriend *fr, LinphoneSubscribePolicy pol)
Definition: friend.c:228
void linphone_core_set_presence_info(LinphoneCore *lc, int minutes_away, const char *contact, LinphoneOnlineStatus presence_mode)
Definition: linphonecore.c:3569
const char * linphone_online_status_to_string(LinphoneOnlineStatus ss)
Definition: friend.c:29
@ LinphoneStatusOnline
Definition: linphonefriend.h:62
@ LinphoneStatusOffline
Definition: linphonefriend.h:58
@ LinphoneSPAccept
Definition: linphonefriend.h:48
LinphoneCore * linphone_core_new(const LinphoneCoreVTable *vtable, const char *config_path, const char *factory_config_path, void *userdata)
Definition: linphonecore.c:1347
void linphone_core_destroy(LinphoneCore *lc)
Definition: linphonecore.c:5425
void linphone_core_iterate(LinphoneCore *lc)
Definition: linphonecore.c:2060
struct _LinphoneCore LinphoneCore
Definition: linphonecore.h:45
const char * linphone_address_get_domain(const LinphoneAddress *u)
Definition: address.c:70
void linphone_address_destroy(LinphoneAddress *u)
Definition: address.c:158
const char * linphone_address_get_username(const LinphoneAddress *u)
Definition: address.c:63
char * linphone_address_as_string(const LinphoneAddress *u)
Definition: address.c:120
struct SalAddress LinphoneAddress
Definition: linphonecore.h:89
LinphoneAddress * linphone_address_new(const char *addr)
Definition: address.c:33
void linphone_core_enable_logs(FILE *file)
Definition: linphonecore.c:432
void linphone_proxy_config_enable_publish(LinphoneProxyConfig *obj, bool_t val)
Definition: proxy.c:232
int linphone_proxy_config_set_server_addr(LinphoneProxyConfig *obj, const char *server_addr)
Definition: proxy.c:106
struct _LinphoneProxyConfig LinphoneProxyConfig
Definition: linphonecore.h:492
void linphone_core_set_default_proxy(LinphoneCore *lc, LinphoneProxyConfig *config)
Definition: proxy.c:940
const char * linphone_proxy_config_get_addr(const LinphoneProxyConfig *obj)
Definition: proxy.c:830
enum _LinphoneRegistrationState LinphoneRegistrationState
LinphoneProxyConfig * linphone_proxy_config_new(void)
Definition: proxy.c:61
int linphone_core_add_proxy_config(LinphoneCore *lc, LinphoneProxyConfig *config)
Definition: proxy.c:881
const char * linphone_registration_state_to_string(LinphoneRegistrationState cs)
Definition: proxy.c:1262
void linphone_proxy_config_enable_register(LinphoneProxyConfig *obj, bool_t val)
Definition: proxy.c:220
int linphone_proxy_config_set_identity(LinphoneProxyConfig *obj, const char *identity)
Definition: proxy.c:141
const char * linphone_proxy_config_get_identity(const LinphoneProxyConfig *obj)
Definition: proxy.c:816
@ LinphoneRegistrationProgress
Definition: linphonecore.h:499
Definition: linphonecore.h:823
LinphoneRegistrationStateCb registration_state_changed
Definition: linphonecore.h:825
NewSubscribtionRequestCb new_subscription_request
Definition: linphonecore.h:828
NotifyPresenceReceivedCb notify_presence_recv
Definition: linphonecore.h:827