mirror of git://git.sysmocom.de/ofono
Preserve clip_validity
CLCC does not report clip_validity. So if clip_validity of witheld has been reported in CLIP, but we're still somehow polling CLCC, which happens if CRING is not supported, and RING is used instead, this fact can be lost. Make sure we preserve clip_validity if possible
This commit is contained in:
parent
4357f33d25
commit
74bbdea02d
|
@ -286,6 +286,15 @@ static void clcc_poll_cb(gboolean ok, GAtResult *result, gpointer user_data)
|
||||||
|
|
||||||
n = n->next;
|
n = n->next;
|
||||||
} else {
|
} else {
|
||||||
|
/* Always use the clip_validity from old call
|
||||||
|
* the only place this is truly told to us is
|
||||||
|
* in the CLIP notify, the rest are fudged
|
||||||
|
* anyway. Useful when RING, CLIP is used,
|
||||||
|
* and we're forced to use CLCC and clip_validity
|
||||||
|
* is 1
|
||||||
|
*/
|
||||||
|
nc->clip_validity = oc->clip_validity;
|
||||||
|
|
||||||
if (memcmp(nc, oc, sizeof(struct ofono_call)) && !nc->type)
|
if (memcmp(nc, oc, sizeof(struct ofono_call)) && !nc->type)
|
||||||
ofono_voicecall_notify(modem, nc);
|
ofono_voicecall_notify(modem, nc);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue