Denis Kenzior
d22e6f4ed5
Header guards not to be present in private headers
2009-06-16 16:38:56 -05:00
Denis Kenzior
5bcc74d857
Fix SMS port addressing
2009-06-16 16:38:50 -05:00
Denis Kenzior
79e39e4016
SMS 8-Bit and 16-Bit ports are not the same
2009-06-16 16:38:47 -05:00
Denis Kenzior
6ea7dba3b6
Fix not being able to set some attributes
2009-06-16 16:38:44 -05:00
Denis Kenzior
087472c402
Fix test case
2009-06-16 16:38:42 -05:00
Denis Kenzior
867117243a
Cleanup phonebook implementation
2009-06-16 16:38:39 -05:00
Denis Kenzior
db51d5b8ac
Fix style issues
2009-06-16 16:38:36 -05:00
Denis Kenzior
43a441e8f5
Change some defines
2009-06-16 16:38:34 -05:00
Denis Kenzior
9a2ab0de83
Don't use spaces and use tabs instead
2009-06-16 16:38:32 -05:00
Denis Kenzior
6acfa4e046
Re-arrange destruction order
2009-06-16 16:38:27 -05:00
Denis Kenzior
be4a4691aa
Make const-correct
2009-06-16 16:38:26 -05:00
Denis Kenzior
b648a112f2
Improve string parsing code
...
Currently next_string and next_hexstring functions use a static
buffer in the iterator to store the value. This value is clobbered
as soon as next_string or next_hexstring is called. Instead,
we copy the entire line in iter_next and use it as a scratch buffer.
The only limitation is that lines of max 2048 are possible, however
these are limited to around this size by parts of the standard.
2009-06-16 16:38:24 -05:00
Denis Kenzior
69372e642e
Add g_at_send_listing function
2009-06-16 16:38:19 -05:00
Yang Gu
f00af45270
Export phonebook as vCard 3.0 format
2009-06-16 16:38:17 -05:00
Denis Kenzior
ac4aeac3d6
Rework CMGR as an unsolicited notification
...
Since the PDU line doesn't have a prefix, the parser can get confused
if other unsolicited notifications arrive. There is already explicit
support for unsolicited notifications with PDU, so we use that
instead
2009-06-16 16:38:15 -05:00
Denis Kenzior
8241c3f025
Add SMS fragment assembly capabilities
2009-06-14 02:02:16 -05:00
Denis Kenzior
e9a0e82e53
Add Unit test for SMS re-assembly code
2009-06-14 02:02:16 -05:00
Denis Kenzior
c5511db5c5
Add utilities for SMS re-assembly
2009-06-14 02:02:16 -05:00
Denis Kenzior
f443493ddb
Fix SMS Concatenation header parsing
2009-06-14 02:02:16 -05:00
Denis Kenzior
93c2a630b0
Change function signature
2009-06-14 02:02:16 -05:00
Aki Niemi
ede04ed8ca
Fix to use negative error return in gisi/client.c
2009-06-15 11:33:34 +03:00
Aki Niemi
e5f0290ddb
Rename ISI client and PhoNet netlink APIs
...
- Add g_ prefix to functions
- Add G-prefix and use CamelCasing in types
2009-06-15 11:27:16 +03:00
Denis Kenzior
3a28213072
Add Basic SMS reception capabilities
...
- Can receive 7Bit, 8Bit and UCS2 encoded messages
- 8Bit is assumed to be a datagram to a certain port
- Messages with Invalid format are ignored
- Concatenation not yet supported
2009-06-12 21:43:26 -05:00
Denis Kenzior
b4613217f6
Add utility to extract text SMS
2009-06-12 21:43:23 -05:00
Denis Kenzior
217def1f88
Add utility to extract datagrams
2009-06-12 21:43:21 -05:00
Denis Kenzior
c25b08f402
Add utility to extract SMS concatenation info
2009-06-12 21:39:21 -05:00
Denis Kenzior
808db2173b
Add utility to extract application port address
2009-06-12 21:39:19 -05:00
Denis Kenzior
b71c0015e7
Add a couple new sms_udh_iter utilities
2009-06-12 21:39:17 -05:00
Denis Kenzior
2bfc1c0784
Add pretty print function for SMS addresses
2009-06-12 21:39:15 -05:00
Denis Kenzior
f0954911a8
Add sms_extract_common function
...
Extract common attributes from the various SMS types
2009-06-12 21:39:13 -05:00
Denis Kenzior
b08c403815
Make SCTS to time function const-correct
2009-06-12 21:39:11 -05:00
Denis Kenzior
9b9365ffae
Can't implement Multiparty Hangup without chld
2009-06-12 21:39:09 -05:00
Denis Kenzior
46ac5c564c
Do not use chld=1 on mpty when another held
...
If we're trying to hangup an active MPTY call, and we have
calls on hold we shouldn't use CHLD=1 (release_all_active)
since this will have the side-effect of activating the held
calls
2009-06-12 21:39:07 -05:00
Denis Kenzior
3a7164c0e7
Fix memory leak
2009-06-12 19:40:51 -05:00
Denis Kenzior
3c27dae5e8
Fixup style issues with previous MCC/MNC patch
...
- Breakup MCC/MNC LENGTH constant
- Don't hardcode numbers
- Fix >80 column length
- Fix test case to expect strings instead of shorts
2009-06-12 19:33:55 -05:00
Aki Niemi
ba8828c095
Change MNC and MCC variable types to string
...
This is to make sure both 2 and 3-digit MNC values are correctly
handled. Both the modem plugin API as well as the D-Bus API are
affected.
2009-06-12 11:01:19 -05:00
Denis Kenzior
683b00de1b
Fix another pointer cast to use GINT_TO_POINTER
2009-06-11 23:45:04 -05:00
Denis Kenzior
618cebe6c2
Add additional sanity check
2009-06-11 23:45:03 -05:00
Denis Kenzior
370318109c
Make SMS UDH iterators const-correct
2009-06-11 23:45:01 -05:00
Rémi Denis-Courmont
0661810b01
Phonet/ISI client helper
...
Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
2009-06-11 21:50:10 +03:00
Rémi Denis-Courmont
667655df79
Phonet datagram socket helpers
...
Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
2009-06-11 21:50:09 +03:00
Rémi Denis-Courmont
8e79f89046
Phonet Netlink helpers
...
Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
2009-06-11 21:50:09 +03:00
Rémi Denis-Courmont
4b9b46d25a
Check for restrict keyword
...
Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
2009-06-11 21:50:09 +03:00
Rémi Denis-Courmont
0774878772
configure: set compiler flags at the end
...
This fixes interferences with warning-unsafe autoconf macros.
Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
2009-06-11 21:50:09 +03:00
Denis Kenzior
50b9a3f375
Fix for multiparty_hangup
...
Due to the use of an invalid structure, release_all_active was being
called instead of release_all_held
2009-06-11 10:44:53 -05:00
Denis Kenzior
f5f7fafc41
Fix typo
2009-06-11 10:44:51 -05:00
Denis Kenzior
621a99bcc7
Add TP-PID enumeration
2009-06-11 10:44:49 -05:00
Denis Kenzior
2222e1e38d
Additional fixes to multiline responses
...
The previous fix did not take into account the logic in have_line
function, which takes care of certain modems that do not prefix
their responses by <cr><lf> at all. This fix should take both
into consideration
2009-06-08 22:45:03 -05:00
Denis Kenzior
fafdda30b9
Fix multiline responses in GAtChat
...
The standard is a bit fuzzy on how multiline responses are returned
GAtChat assumed that they will always start with <cr><lf>, however
this doesn't seem to be correct. Add a new state which is entered
when a response is obtained. If <cr> is encountered, then it
is processed regularly, otherwise the parser assumes that the
next line is part of the multiline response
2009-06-08 14:08:18 -05:00
Denis Kenzior
f9f3080781
Add utility for parsing MWI SMS DCS types
2009-06-05 19:58:52 -05:00