//req->data.clearpromptstatus.lineInstance = instance;
//req->data.clearpromptstatus.callReference = reference;
+ /* send datetime message. We have to do it here because it will clear the display on the phone if we do it elsewhere */
+ handle_time_date_req_message(NULL, d->session);
+
if (skinnydebug)
ast_verb(1, "Clearing Display\n");
} else {
}
}
-static void do_housekeeping(struct skinnysession *s)
-{
- /* Update time on device */
- handle_time_date_req_message(NULL, s);
-}
-
/* I do not believe skinny can deal with video.
Anyone know differently? */
/* Yes, it can. Currently 7985 and Cisco VT Advantage do video. */
transmit_stopmediatransmission(d, sub);
transmit_speaker_mode(d, SKINNY_SPEAKEROFF);
transmit_ringer_mode(d, SKINNY_RING_OFF);
+ transmit_displaymessage(d, NULL, l->instance, sub->callid); /* clear display */
transmit_tone(d, SKINNY_SILENCE, l->instance, sub->callid);
/* we should check to see if we can start the ringer if another line is ringing */
}
return -1;
transmit_response(s->device, req);
- do_housekeeping(s);
return 1;
}
l->name, d->name, sub->callid);
}
}
- /* The bit commented below gives a very occasional core dump. */
- if ((l->hookstate == SKINNY_ONHOOK) && (AST_LIST_NEXT(sub, list) /*&& !AST_LIST_NEXT(sub, list)->rtp*/)) {
- do_housekeeping(s);
- }
return 1;
}
}
}
if ((l->hookstate == SKINNY_ONHOOK) && (AST_LIST_NEXT(sub, list) && !AST_LIST_NEXT(sub, list)->rtp)) {
- do_housekeeping(s);
ast_devstate_changed(AST_DEVICE_NOT_INUSE, "Skinny/%s@%s", l->name, d->name);
}
}