Hello community, here is the log from the commit of package gigaset-frontend for openSUSE:Factory checked in at 2015-08-21 07:40:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gigaset-frontend (Old) and /work/SRC/openSUSE:Factory/.gigaset-frontend.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gigaset-frontend" Changes: -------- --- /work/SRC/openSUSE:Factory/gigaset-frontend/gigaset-frontend.changes 2015-01-29 09:56:23.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.gigaset-frontend.new/gigaset-frontend.changes 2015-08-21 07:40:53.000000000 +0200 @@ -1,0 +2,7 @@ +Sun Aug 16 14:00:11 UTC 2015 - [email protected] + +- Update to version 0.7.2 + * gigacontr: new command --cfxset for setting call forwarding + * manpage improvements + +------------------------------------------------------------------- Old: ---- gigaset-frontend-0.7.1.tar.gz New: ---- gigaset-frontend-0.7.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gigaset-frontend.spec ++++++ --- /var/tmp/diff_new_pack.Vs5jMy/_old 2015-08-21 07:40:54.000000000 +0200 +++ /var/tmp/diff_new_pack.Vs5jMy/_new 2015-08-21 07:40:54.000000000 +0200 @@ -18,7 +18,7 @@ Name: gigaset-frontend -Version: 0.7.1 +Version: 0.7.2 Release: 0 Summary: Siemens Gigaset configuration software Source: http://prdownloads.sourceforge.net/gigaset307x/gigaset-frontend-%{version}.tar.gz ++++++ gigaset-frontend-0.7.1.tar.gz -> gigaset-frontend-0.7.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gigaset-frontend-0.7.1/Makefile new/gigaset-frontend-0.7.2/Makefile --- old/gigaset-frontend-0.7.1/Makefile 2013-05-12 23:19:53.000000000 +0200 +++ new/gigaset-frontend-0.7.2/Makefile 2015-02-18 15:35:35.000000000 +0100 @@ -14,7 +14,7 @@ # default: "PREFIX/man" PACKAGE = gigaset-frontend -VERSION = 0.7.1 +VERSION = 0.7.2 export VERSION distdir = $(PACKAGE)-$(VERSION) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gigaset-frontend-0.7.1/README new/gigaset-frontend-0.7.2/README --- old/gigaset-frontend-0.7.1/README 2013-05-12 23:19:53.000000000 +0200 +++ new/gigaset-frontend-0.7.2/README 2015-02-18 15:35:35.000000000 +0100 @@ -1,4 +1,4 @@ -Front-end for GigaSet 307x Device Driver (Version 0.7.1) +Front-end for Gigaset 307x Device Driver (Version 0.7.2) ======================================================== 0. Warning @@ -100,7 +100,7 @@ tar -xjvf gigaset-frontend-VERSION.tar.bz2 will create a directory gigaset-frontend-VERSION containing the sources - (VERSION is currently 0.7.1). + (VERSION is currently 0.7.2). After changing to this directory with cd gigaset-frontend-VERSION diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gigaset-frontend-0.7.1/Release.notes new/gigaset-frontend-0.7.2/Release.notes --- old/gigaset-frontend-0.7.1/Release.notes 2013-05-12 23:19:53.000000000 +0200 +++ new/gigaset-frontend-0.7.2/Release.notes 2015-02-18 15:35:35.000000000 +0100 @@ -8,6 +8,12 @@ uw - Uwe Wendt +2015-02-18 + 0.7.2 + - gigacontr: new command --cfxset for setting call forwarding + (thanks to Jan Willamowius for the contribution) + - manpage improvements + 2013-05-12 0.7.1 - build improvements diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gigaset-frontend-0.7.1/console/gigaconf.8 new/gigaset-frontend-0.7.2/console/gigaconf.8 --- old/gigaset-frontend-0.7.1/console/gigaconf.8 2013-05-12 23:19:53.000000000 +0200 +++ new/gigaset-frontend-0.7.2/console/gigaconf.8 2015-02-18 15:35:35.000000000 +0100 @@ -1,7 +1,7 @@ .\" Process this file with .\" groff -man -t -Tascii gigaconf.8 .\" -.TH gigaconf 8 "2013\-05\-12" gigaset\-0.7.1 "Linux System Administration" +.TH gigaconf 8 "2015\-02\-18" gigaset\-0.7.2 "Linux System Administration" .SH NAME gigaconf \- Gigaset base configuration .SH SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gigaset-frontend-0.7.1/console/gigacontr.8 new/gigaset-frontend-0.7.2/console/gigacontr.8 --- old/gigaset-frontend-0.7.1/console/gigacontr.8 2013-05-12 23:19:53.000000000 +0200 +++ new/gigaset-frontend-0.7.2/console/gigacontr.8 2015-02-18 15:35:35.000000000 +0100 @@ -1,7 +1,7 @@ .\" Process this file with .\" groff -man -t -Tascii gigacontr.8 .\" -.TH gigacontr 8 "2013\-05\-12" gigaset\-frontend\-0.7.1 "Linux System Administration" +.TH gigacontr 8 "2015\-02\-18" gigaset\-frontend\-0.7.2 "Linux System Administration" .SH NAME gigacontr \- access to the Gigaset devices and drivers .SH SYNOPSIS @@ -418,6 +418,75 @@ .I date (yy\-mm\-dd). Unused fields may be omitted. +.SS CALL FORWARDING +.IP "\-\-cfxset \fImsn\fR \fIstate\fR \fItype\fR \fIservice\fR \fIto_msn\fR" +Configure call forwarding +for the given combination of +.IR msn , +forwarding +.I type +and +.I service +to +.I state +and destination number +.IR to_msn . +.PP +Possible values for +.I state +are: +.IP 1 +active +.IP 0 +inactive (only store the destination number for future use) +.PP +Possible values for +.I type +are: +.IP 0 +unconditional [CFU] +.IP 1 +on busy [CFB] +.IP 2 +when not responding [CFNR] +.PP +Possible values for +.I service +are: +.IP 0 +all services +.IP 1 +speech +.IP 2 +unrestricted digital information +.IP 3 +audio +.IP 4 +unrestricted digital information with tones and announcements +.IP 32 +phone 3,1 kHz +.IP 33 +teletex +.IP 34 +fax G4 class 1 +.IP 35 +videotext +.IP 36 +video phone +.IP 37 +fax G2-3 +.IP 38 +phone 7 kHz +.PP +.BR Note : +The manufacturer documentation seems to indicate that +call forwarding should always be set identically +for the three services 1 (speech), 3 (audio) and 32 (phone 3,1 kHz). +.PP +Querying the current call forwarding sessions is done via +.B \-\-cfgread +from the appropriate parameter IDs, +see below. .SS CONFIGURATION .B Warning: Using wrong parameter ids and data types can cause serious problems. .IP "\-\-cfgread \fIpid\fR \fIid\fR \fItype\fR" @@ -425,18 +494,40 @@ .I pid for unit .I id -(0 for general settings), which has the given -.I type -(`dec8': 8 bit integer, `str': string). +(0 for general settings), formatted as +.IR type . .IP "\-\-cfgwrite \fIpid\fR \fIid\fR \fItype\fR \fIvalue\fR" Set configuration entry with parameter id .I pid for unit .I id -(0 for general settings), which has the given -.I type -(`dec8': 8 bit integer, `str': string), to -.IR value . +(0 for general settings) to +.IR value , +formatted as +.IR type . +.PP +Possible +.IR type s +are: +.IP \fBstr\fR +NUL terminated character string; the terminating NUL character is stripped by +.B --cfgread +and added by +.BR --cfgwrite . +.IP \fBdec8\fR +integer in the range 0..255 stored in a single byte +.IP \fBdec32\fR +integer in the range 0..4294967295 stored in four bytes in little-endian order +.IP \fBhex\fR +arbitrary byte sequence in hexadecimal representation; +.B --cfgread +will print each byte as two hex digits, separating bytes by a single space +character; +.B --cfgwrite +will accept an arbitrary sequence of hex digits and space characters, starting +a new byte every two digits or whenever it encounters one or more space +characters. +The number of bytes must match exactly the size of the configuration entry. .SS MISC. COMMANDS (BASE) .IP \-\-product Print product name. @@ -476,6 +567,11 @@ .PP .SH EXAMPLES .PP +To unconditionally forward calls for MSN 1234 to phone number 0555/6666, run +.IP +.B +# gigacontr \-\-cfxset 1234 1 0 0 05556666 +.PP To make the `voice message' symbol appear on cell phone 01234, try .IP .B diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gigaset-frontend-0.7.1/console/gigacontr.c new/gigaset-frontend-0.7.2/console/gigacontr.c --- old/gigaset-frontend-0.7.1/console/gigacontr.c 2013-05-12 23:19:53.000000000 +0200 +++ new/gigaset-frontend-0.7.2/console/gigacontr.c 2015-02-18 15:35:35.000000000 +0100 @@ -923,6 +923,29 @@ set_error_msg(cs, ret, "dial"); } +static void cmd_set_cfx(struct contr_state *cs, char **argv, unsigned long data) +{ + unsigned mode, proc, service; + int ret; + + if (!touintrange(argv[1], &mode, 0, 1, 0)) { + set_error_num_msg(cs, -ERR_PARAMINVALID, 0, argv[1]); + return; + } + if (!touintrange(argv[2], &proc, 0, 2, 0)) { + set_error_num_msg(cs, -ERR_PARAMINVALID, 0, argv[2]); + return; + } + if (!touintrange(argv[3], &service, 0, 38, 0)) { + set_error_num_msg(cs, -ERR_PARAMINVALID, 0, argv[3]); + return; + } + + ret = gigaset_cfxset(cs->gs, argv[0], mode, proc, service, argv[4]); + if (ret < 0) + set_error_msg(cs, ret, "setcfx"); +} + static void cmd_smshandle(struct contr_state*cs, char**argv, unsigned long data) { uint32_t handle; @@ -2494,6 +2517,8 @@ "get MSN"}, {{"--msnset"}, 2, 0, CF_CID, CF_CID, cmd_set_str_idx, (unsigned long)&gigaset_msnset, "INDEX NUMBER", "set MSN"}, + {{"--cfxset"}, 5, 0, CF_LCK, CF_LCK, cmd_set_cfx, 0, "MSN MODE PROC SERVICE TO-MSN", + "set MSN"}, {{"--vendor"}, 0, 0, CF_UNI, CF_UNI, cmd_get_string, (unsigned long)&gigaset_vendor, NULL, "get vendor string"}, {{"--product"}, 0, 0, CF_UNI, CF_UNI, cmd_get_string, (unsigned long)&gigaset_product, NULL, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gigaset-frontend-0.7.1/frontend.spec new/gigaset-frontend-0.7.2/frontend.spec --- old/gigaset-frontend-0.7.1/frontend.spec 2013-05-12 23:19:53.000000000 +0200 +++ new/gigaset-frontend-0.7.2/frontend.spec 2015-02-18 15:35:35.000000000 +0100 @@ -1,5 +1,5 @@ Name: gigaset-frontend -Version: 0.7.1 +Version: 0.7.2 Release: 1 Summary: Gigaset configuration software Source: http://prdownloads.sourceforge.net/gigaset307x/gigaset-frontend-%{version}.tar.gz @@ -85,6 +85,9 @@ ldconfig %changelog +* Wed Feb 18 2015 Tilman Schmidt <[email protected]> +- version 0.7.2 + * Sun May 12 2013 Tilman Schmidt <[email protected]> - version 0.7.1 - partially adapt formatting to openSUSE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gigaset-frontend-0.7.1/include/gigaset/basemisc.h new/gigaset-frontend-0.7.2/include/gigaset/basemisc.h --- old/gigaset-frontend-0.7.1/include/gigaset/basemisc.h 2013-05-12 23:19:53.000000000 +0200 +++ new/gigaset-frontend-0.7.2/include/gigaset/basemisc.h 2015-02-18 15:35:35.000000000 +0100 @@ -16,6 +16,7 @@ int gigaset_msnget (struct gstatus * gs, int id, char ** buf); int gigaset_msnset (struct gstatus * gs, int id, const char * buf); +int gigaset_cfxset (struct gstatus * gs, const char * msn, int mode, int proc, int service, char * to_msn); int gigaset_vendor (struct gstatus * gs, char ** buf); int gigaset_product (struct gstatus * gs, char ** buf); int gigaset_version (struct gstatus * gs, char ** buf); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gigaset-frontend-0.7.1/known_bugs.txt new/gigaset-frontend-0.7.2/known_bugs.txt --- old/gigaset-frontend-0.7.1/known_bugs.txt 2013-05-12 23:19:53.000000000 +0200 +++ new/gigaset-frontend-0.7.2/known_bugs.txt 2015-02-18 15:35:35.000000000 +0100 @@ -4,7 +4,7 @@ The following bugs are known and need not be reported again. Fixes are of course always welcome! :) -V 0.7.1 (unfixed) +V 0.7.2 (unfixed) ------- - The gigacontr commands --smslist, --smsdump and --smsdumpext for diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gigaset-frontend-0.7.1/lib/basemisc.c new/gigaset-frontend-0.7.2/lib/basemisc.c --- old/gigaset-frontend-0.7.1/lib/basemisc.c 2013-05-12 23:19:53.000000000 +0200 +++ new/gigaset-frontend-0.7.2/lib/basemisc.c 2015-02-18 15:35:35.000000000 +0100 @@ -75,6 +75,35 @@ return 0; } +int gigaset_cfxset (struct gstatus * gs, const char * msn, int mode, int proc, int service, char * to_msn) +{ + ssize_t r; + int l; + size_t s; + char * cmd; + + s=255; + cmd=malloc(s); + if (!cmd) return -ERR_MEM; + l = snprintf(cmd,s,"AT^SCFX=%s,%d,%d,%d,%s", msn, mode, proc, service, to_msn); + if (l<0||(unsigned)l>=s) + { + free (cmd); + return -ERR_MEM; + } + r=gigaset_sendcommand (gs, cmd); + free (cmd); + if (r<0) return r; + r=gigaset_expectresponse(gs, "OK", 2+1, NULL, 30); + if (r<0) return r; +#ifdef GIG_WAIT + gigaset_usleep_unint(1000000); + r=gigaset_clear (gs); + if (r<0) return r; +#endif + return 0; +} + static int vendorstring (struct gstatus * gs, char ** buf, const char * cmd) { ssize_t r; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/gigaset-frontend-0.7.1/qt/qgigaset_de.ts new/gigaset-frontend-0.7.2/qt/qgigaset_de.ts --- old/gigaset-frontend-0.7.1/qt/qgigaset_de.ts 2013-05-12 23:19:53.000000000 +0200 +++ new/gigaset-frontend-0.7.2/qt/qgigaset_de.ts 2015-02-18 15:35:35.000000000 +0100 @@ -207,7 +207,7 @@ <message> <location filename="application.cc" line="363"/> <source>Ctrl+F6</source> - <translation type="unfinished"></translation> + <translation type="unfinished">Strg/F6</translation> </message> <message> <location filename="application.cc" line="364"/>
