mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 08:39:20 +00:00
Merge branch 'master' of git.savannah.nongnu.org:/srv/git/linphone
This commit is contained in:
commit
aab7de39ce
11 changed files with 74 additions and 22 deletions
|
|
@ -39,7 +39,7 @@ ZIP_EXCLUDED=include lib \
|
|||
|
||||
SDK_ZIPFILE=$(shell cd $(top_builddir) && pwd)/lib$(PACKAGE)-win32-$(VERSION).zip
|
||||
SDK_EXCLUDED= \
|
||||
bin/linphone-3.exe \
|
||||
bin/linphone.exe \
|
||||
lib/*.la \
|
||||
share/linphone \
|
||||
share/pixmaps \
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@ static int lpc_cmd_unregister(LinphoneCore *, char *);
|
|||
static int lpc_cmd_duration(LinphoneCore *lc, char *args);
|
||||
static int lpc_cmd_status(LinphoneCore *lc, char *args);
|
||||
static int lpc_cmd_ports(LinphoneCore *lc, char *args);
|
||||
static int lpc_cmd_param(LinphoneCore *lc, char *args);
|
||||
static int lpc_cmd_speak(LinphoneCore *lc, char *args);
|
||||
static int lpc_cmd_acodec(LinphoneCore *lc, char *args);
|
||||
static int lpc_cmd_vcodec(LinphoneCore *lc, char *args);
|
||||
|
|
@ -315,6 +316,10 @@ static LPC_COMMAND advanced_commands[] = {
|
|||
{ "ports", lpc_cmd_ports, "Network ports configuration",
|
||||
"'ports' \t: prints current used ports.\n"
|
||||
"'ports sip <port number>'\t: Sets the sip port.\n" },
|
||||
{ "param", lpc_cmd_param, "parameter set or read as normally given in .linphonerc",
|
||||
"'param <section> <parameter> [<value>]' \t: reads [sets] given parameter.\n"
|
||||
"NOTES: - changes may become effective after (re)establishing a sip connection.\n"
|
||||
" - upon exit, .linphonerc will reflect the updated state.\n" },
|
||||
{ "speak", lpc_cmd_speak, "Speak a sentence using espeak TTS engine",
|
||||
"This feature is available only in file mode. (see 'help soundcard')\n"
|
||||
"'speak <voice name> <sentence>' : speak a text using the specified espeak voice.\n"
|
||||
|
|
@ -473,7 +478,8 @@ lpc_cmd_help(LinphoneCore *lc, char *arg)
|
|||
}
|
||||
|
||||
linphonec_out("---------------------------\n");
|
||||
linphonec_out("Type 'help <command>' for more details or 'help advanced' to list additional commands.\n");
|
||||
linphonec_out("Type 'help <command>' for more details or\n");
|
||||
linphonec_out(" 'help advanced' to list additional commands.\n");
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
@ -2014,6 +2020,35 @@ static int lpc_cmd_ports(LinphoneCore *lc, char *args)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static int lpc_cmd_param(LinphoneCore *lc, char *args)
|
||||
{
|
||||
char section[20], param[20], value[50];
|
||||
const char *string;
|
||||
|
||||
if (args == NULL) {
|
||||
return 0;
|
||||
}
|
||||
switch (sscanf(args,"%s %s %s",section,param,value)) {
|
||||
// case 1 might show all current settings under a section
|
||||
case 2:
|
||||
string = lp_config_get_string(linphone_core_get_config(lc), section, param, "(undef)");
|
||||
linphonec_out("current value: %s\n", string);
|
||||
break;
|
||||
case 3:
|
||||
if (lp_config_get_string(linphone_core_get_config(lc), section, param, NULL) != NULL) {
|
||||
lp_config_set_string(linphone_core_get_config(lc), section, param, value);
|
||||
// no indication of existence
|
||||
linphonec_out("updated value: %s\n", value);
|
||||
} else {
|
||||
linphonec_out("only update of existing variables are allowed\n");
|
||||
}
|
||||
break;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int lpc_cmd_speak(LinphoneCore *lc, char *args){
|
||||
#ifndef WIN32
|
||||
char voice[64];
|
||||
|
|
|
|||
|
|
@ -235,10 +235,12 @@ static void call_ringing(SalOp *h){
|
|||
if (lc->ringstream!=NULL) return; /*already ringing !*/
|
||||
if (lc->sound_conf.play_sndcard!=NULL){
|
||||
MSSndCard *ringcard=lc->sound_conf.lsd_card ? lc->sound_conf.lsd_card : lc->sound_conf.play_sndcard;
|
||||
ms_message("Remote ringing...");
|
||||
lc->ringstream=ring_start(lc->sound_conf.remote_ring,2000,ringcard);
|
||||
linphone_call_set_state(call,LinphoneCallOutgoingRinging,"Remote ringing");
|
||||
}
|
||||
ms_message("Remote ringing...");
|
||||
if (lc->vtable.display_status)
|
||||
lc->vtable.display_status(lc,_("Remote ringing..."));
|
||||
linphone_call_set_state(call,LinphoneCallOutgoingRinging,"Remote ringing");
|
||||
}else{
|
||||
/*accept early media */
|
||||
if (call->audiostream && call->audiostream->ticker!=NULL){
|
||||
|
|
|
|||
|
|
@ -2716,6 +2716,7 @@ static MSSndCard *get_card_from_string_id(const char *devid, unsigned int cap){
|
|||
* Returns true if the specified sound device can capture sound.
|
||||
*
|
||||
* @ingroup media_parameters
|
||||
* @param lc The LinphoneCore object
|
||||
* @param devid the device name as returned by linphone_core_get_sound_devices()
|
||||
**/
|
||||
bool_t linphone_core_sound_device_can_capture(LinphoneCore *lc, const char *devid){
|
||||
|
|
@ -2729,6 +2730,7 @@ bool_t linphone_core_sound_device_can_capture(LinphoneCore *lc, const char *devi
|
|||
* Returns true if the specified sound device can play sound.
|
||||
*
|
||||
* @ingroup media_parameters
|
||||
* @param lc The LinphoneCore object
|
||||
* @param devid the device name as returned by linphone_core_get_sound_devices()
|
||||
**/
|
||||
bool_t linphone_core_sound_device_can_playback(LinphoneCore *lc, const char *devid){
|
||||
|
|
@ -2742,6 +2744,7 @@ bool_t linphone_core_sound_device_can_playback(LinphoneCore *lc, const char *dev
|
|||
* Sets the sound device used for ringing.
|
||||
*
|
||||
* @ingroup media_parameters
|
||||
* @param lc The LinphoneCore object
|
||||
* @param devid the device name as returned by linphone_core_get_sound_devices()
|
||||
**/
|
||||
int linphone_core_set_ringer_device(LinphoneCore *lc, const char * devid){
|
||||
|
|
@ -2756,6 +2759,7 @@ int linphone_core_set_ringer_device(LinphoneCore *lc, const char * devid){
|
|||
* Sets the sound device used for playback.
|
||||
*
|
||||
* @ingroup media_parameters
|
||||
* @param lc The LinphoneCore object
|
||||
* @param devid the device name as returned by linphone_core_get_sound_devices()
|
||||
**/
|
||||
int linphone_core_set_playback_device(LinphoneCore *lc, const char * devid){
|
||||
|
|
@ -2770,6 +2774,7 @@ int linphone_core_set_playback_device(LinphoneCore *lc, const char * devid){
|
|||
* Sets the sound device used for capture.
|
||||
*
|
||||
* @ingroup media_parameters
|
||||
* @param lc The LinphoneCore object
|
||||
* @param devid the device name as returned by linphone_core_get_sound_devices()
|
||||
**/
|
||||
int linphone_core_set_capture_device(LinphoneCore *lc, const char * devid){
|
||||
|
|
@ -2784,6 +2789,7 @@ int linphone_core_set_capture_device(LinphoneCore *lc, const char * devid){
|
|||
* Returns the name of the currently assigned sound device for ringing.
|
||||
*
|
||||
* @ingroup media_parameters
|
||||
* @param lc The LinphoneCore object
|
||||
**/
|
||||
const char * linphone_core_get_ringer_device(LinphoneCore *lc)
|
||||
{
|
||||
|
|
@ -2795,6 +2801,7 @@ const char * linphone_core_get_ringer_device(LinphoneCore *lc)
|
|||
* Returns the name of the currently assigned sound device for playback.
|
||||
*
|
||||
* @ingroup media_parameters
|
||||
* @param lc The LinphoneCore object
|
||||
**/
|
||||
const char * linphone_core_get_playback_device(LinphoneCore *lc)
|
||||
{
|
||||
|
|
@ -2805,6 +2812,7 @@ const char * linphone_core_get_playback_device(LinphoneCore *lc)
|
|||
* Returns the name of the currently assigned sound device for capture.
|
||||
*
|
||||
* @ingroup media_parameters
|
||||
* @param lc The LinphoneCore object
|
||||
**/
|
||||
const char * linphone_core_get_capture_device(LinphoneCore *lc)
|
||||
{
|
||||
|
|
@ -2814,8 +2822,10 @@ const char * linphone_core_get_capture_device(LinphoneCore *lc)
|
|||
/**
|
||||
* Returns an unmodifiable array of available sound devices.
|
||||
*
|
||||
* @ingroup media_parameters
|
||||
* The array is NULL terminated.
|
||||
*
|
||||
* @ingroup media_parameters
|
||||
* @param lc The LinphoneCore object
|
||||
**/
|
||||
const char** linphone_core_get_sound_devices(LinphoneCore *lc){
|
||||
build_sound_devices_table(lc);
|
||||
|
|
@ -2858,6 +2868,7 @@ void linphone_core_set_sound_source(LinphoneCore *lc, char source)
|
|||
* Sets the path to a wav file used for ringing.
|
||||
*
|
||||
* @param path The file must be a wav 16bit linear. Local ring is disabled if null
|
||||
* @param lc The LinphoneCore object
|
||||
*
|
||||
* @ingroup media_parameters
|
||||
**/
|
||||
|
|
@ -2875,6 +2886,7 @@ void linphone_core_set_ring(LinphoneCore *lc,const char *path){
|
|||
/**
|
||||
* Returns the path to the wav file used for ringing.
|
||||
*
|
||||
* @param lc The LinphoneCore object
|
||||
* @ingroup media_parameters
|
||||
**/
|
||||
const char *linphone_core_get_ring(const LinphoneCore *lc){
|
||||
|
|
@ -3143,6 +3155,7 @@ static void toggle_video_preview(LinphoneCore *lc, bool_t val){
|
|||
* initiate future calls with video or not. The two boolean parameters indicate in which
|
||||
* direction video is enabled. Setting both to false disables video entirely.
|
||||
*
|
||||
* @param lc The LinphoneCore object
|
||||
* @param vcap_enabled indicates whether video capture is enabled
|
||||
* @param display_enabled indicates whether video display should be shown
|
||||
*
|
||||
|
|
@ -3222,6 +3235,7 @@ bool_t linphone_core_self_view_enabled(const LinphoneCore *lc){
|
|||
* Sets the active video device.
|
||||
*
|
||||
* @ingroup media_parameters
|
||||
* @param lc The LinphoneCore object
|
||||
* @param id the name of the video device as returned by linphone_core_get_video_devices()
|
||||
**/
|
||||
int linphone_core_set_video_device(LinphoneCore *lc, const char *id){
|
||||
|
|
@ -3251,6 +3265,7 @@ int linphone_core_set_video_device(LinphoneCore *lc, const char *id){
|
|||
/**
|
||||
* Returns the name of the currently active video device.
|
||||
*
|
||||
* @param lc The LinphoneCore object
|
||||
* @ingroup media_parameters
|
||||
**/
|
||||
const char *linphone_core_get_video_device(const LinphoneCore *lc){
|
||||
|
|
|
|||
2
gtk/.gitignore
vendored
2
gtk/.gitignore
vendored
|
|
@ -1,4 +1,4 @@
|
|||
linphone-3
|
||||
linphone
|
||||
.libs
|
||||
.deps
|
||||
linphone.res
|
||||
|
|
|
|||
|
|
@ -27,9 +27,9 @@ if BUILD_GTK_UI
|
|||
|
||||
BUILT_SOURCES=version_date.h
|
||||
|
||||
bin_PROGRAMS=linphone-3
|
||||
bin_PROGRAMS=linphone
|
||||
|
||||
linphone_3_SOURCES= \
|
||||
linphone_SOURCES= \
|
||||
main.c \
|
||||
propertybox.c \
|
||||
friendlist.c \
|
||||
|
|
@ -45,7 +45,7 @@ linphone_3_SOURCES= \
|
|||
loginframe.c \
|
||||
linphone.h
|
||||
|
||||
linphone_3_LDADD=$(ORTP_LIBS) \
|
||||
linphone_LDADD=$(ORTP_LIBS) \
|
||||
$(MEDIASTREAMER_LIBS) \
|
||||
$(top_builddir)/coreapi/liblinphone.la \
|
||||
$(LIBGTK_LIBS) $(INTLLIBS)
|
||||
|
|
@ -56,10 +56,10 @@ if BUILD_WIN32
|
|||
linphone.res: $(LINPHONE_ICO_RC_FILE) $(LINPHONE_ICO_FILE)
|
||||
windres $(LINPHONE_ICO_RC_FILE) -O coff -o linphone.res
|
||||
|
||||
linphone_3_LDADD+=linphone.res -lwininet
|
||||
linphone_3_LDFLAGS=-Wl,--export-all-symbols -mwindows
|
||||
linphone_LDADD+=linphone.res -lwininet
|
||||
linphone_LDFLAGS=-Wl,--export-all-symbols -mwindows
|
||||
else
|
||||
linphone_3_LDFLAGS=-export-dynamic
|
||||
linphone_LDFLAGS=-export-dynamic
|
||||
endif
|
||||
|
||||
uidir=$(datadir)/linphone
|
||||
|
|
|
|||
|
|
@ -30,19 +30,19 @@ Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{
|
|||
#include "linphone-win32.filelist"
|
||||
|
||||
[Icons]
|
||||
Name: "{group}\Linphone"; Filename: "{app}\bin\linphone-3.exe" ; WorkingDir: "{app}"
|
||||
Name: "{userdesktop}\Linphone"; Filename: "{app}\bin\linphone-3.exe"; WorkingDir: "{app}" ; Tasks: desktopicon
|
||||
Name: "{group}\Linphone"; Filename: "{app}\bin\linphone.exe" ; WorkingDir: "{app}"
|
||||
Name: "{userdesktop}\Linphone"; Filename: "{app}\bin\linphone.exe"; WorkingDir: "{app}" ; Tasks: desktopicon
|
||||
|
||||
[Registry]
|
||||
Root: HKCR; Subkey: "sip";
|
||||
Root: HKCR; Subkey: "sip"; ValueData: "URL: SIP protocol" ; ValueType:string
|
||||
Root: HKCR; Subkey: "sip"; ValueName: "EditFlags"; ValueData: "02 00 00 00" ; ValueType:binary
|
||||
Root: HKCR; Subkey: "sip"; ValueName: "URL Protocol" ; ValueType:string
|
||||
Root: HKCR; Subkey: "sip\DefaultIcon"; ValueData: "{app}\bin\linphone-3.exe"; ValueType:string ; Flags:uninsdeletekey
|
||||
Root: HKCR; Subkey: "sip\DefaultIcon"; ValueData: "{app}\bin\linphone.exe"; ValueType:string ; Flags:uninsdeletekey
|
||||
Root: HKCR; Subkey: "sip\shell"
|
||||
Root: HKCR; Subkey: "sip\shell\open"
|
||||
Root: HKCR; Subkey: "sip\shell\open\command"; ValueType:string ; ValueData: "{app}\bin\linphone-3.exe --workdir {app} --call %1"; Flags:uninsdeletekey
|
||||
Root: HKCR; Subkey: "sip\shell\open\command"; ValueType:string ; ValueData: "{app}\bin\linphone.exe --workdir {app} --call %1"; Flags:uninsdeletekey
|
||||
|
||||
[Run]
|
||||
Filename: "{app}\bin\linphone-3.exe"; Description: "{cm:LaunchProgram,Linphone}"; WorkingDir: "{app}" ; Flags: nowait postinstall skipifsilent
|
||||
Filename: "{app}\bin\linphone.exe"; Description: "{cm:LaunchProgram,Linphone}"; WorkingDir: "{app}" ; Flags: nowait postinstall skipifsilent
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
<kdevcustomproject>
|
||||
<run>
|
||||
<directoryradio>executable</directoryradio>
|
||||
<mainprogram>gtk-glade/linphone-3</mainprogram>
|
||||
<mainprogram>gtk-glade/linphone</mainprogram>
|
||||
<programargs/>
|
||||
<globaldebugarguments/>
|
||||
<globalcwd/>
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit b9a6dad7339175e894d1a0f291ccb5d1143e3199
|
||||
Subproject commit b0eddd4c81b5055534aceb0bf85f0eafb6151d42
|
||||
|
|
@ -11,7 +11,7 @@ MSX264_ZIP=$(WORKDIR)/msx264.zip
|
|||
INSTALL_ROOT=$(WORKDIR)/root
|
||||
FILELIST=$(WORKDIR)/linphone-bundle.filelist
|
||||
|
||||
LINPHONE_VERSION=strings $(INSTALL_ROOT)/bin/linphone-3.exe |grep linphone_ident | sed 's/linphone_ident_string=//'
|
||||
LINPHONE_VERSION=strings $(INSTALL_ROOT)/bin/linphone.exe |grep linphone_ident | sed 's/linphone_ident_string=//'
|
||||
|
||||
$(WORKDIR):
|
||||
mkdir -p $(WORKDIR)
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Comment=Linphone is a web-phone
|
|||
Comment[fr]=Linphone est un web-phone.
|
||||
Comment[de]=Linphone ist ein web-phone.
|
||||
Type=Application
|
||||
Exec=linphone-3
|
||||
Exec=linphone
|
||||
Icon=@prefix@/share/pixmaps/linphone/linphone.png
|
||||
Terminal=false
|
||||
Categories=Network;Telephony;
|
||||
Categories=Network;Telephony;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue