From 9f8e458068fbec384599ff175a1b4702c35ef525 Mon Sep 17 00:00:00 2001 From: smorlat Date: Mon, 8 Jun 2009 09:06:17 +0000 Subject: [PATCH] update p2p proxy git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@494 3f6dc0c8-ddfe-455d-9043-3cd528dc4637 --- p2pproxy/plugin-src/fonis.c | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/p2pproxy/plugin-src/fonis.c b/p2pproxy/plugin-src/fonis.c index 36f23a953..7faccef96 100644 --- a/p2pproxy/plugin-src/fonis.c +++ b/p2pproxy/plugin-src/fonis.c @@ -136,6 +136,23 @@ static void fonis_exit(){ p2pproxy_application_stop(); } +static const char *fonis_get_notice(SipSetupContext *ssctx){ + return "WARNING: experimental feature !" +"FONIS stands for Free Overlay Network for Instant SIP.\n" +"Based on SIP and Peer to Peer technologies, it allows people to find each other through the help of a virtual network." +"Once you and your friends are registered, you'll be able to call each other simply by entering your friend's username in " +"linphone's sip uri box." +"Read more information about FONIS at http://www.fonis.org"; +} + +static const char *fonis_domains[]={ + "p2p.linphone.org", + NULL +}; + +static const char ** fonis_get_domains(SipSetupContext *ssctx){ + return fonis_domains; +} @@ -151,12 +168,8 @@ static SipSetup fonis_sip_setup={ .get_stun_servers=fonis_get_stun_servers, .get_relay=fonis_get_relay, .exit=fonis_exit, - .notice="WARNING: experimental feature !" -"FONIS stands for Free Overlay Network for Instant SIP.\n" -"Based on SIP and Peer to Peer technologies, it allows people to find each other through the help of a virtual network." -"Once you and your friends are registered, you'll be able to call each other simply by entering your friend's username in " -"linphone's sip uri box." -"Read more information about FONIS at http://www.fonis.org" + .get_notice=fonis_get_notice, + .get_domains=fonis_get_domains }; void libfonisprovider_init(void){