mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-20 03:59:01 +00:00
Send empty voice frame on 183 session progress
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@787 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3741,9 +3741,17 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_
|
|||||||
case 100:
|
case 100:
|
||||||
break;
|
break;
|
||||||
case 183: /* We don't really need this since we pass in-band audio anyway */
|
case 183: /* We don't really need this since we pass in-band audio anyway */
|
||||||
/* Not important */
|
{
|
||||||
if (strlen(get_header(req, "Content-Type")))
|
/* Send back an empty audio frame to get things moving, (like in the case of
|
||||||
process_sdp(p, req);
|
back-to-back 183's, getting audio */
|
||||||
|
if (strlen(get_header(req, "Content-Type")))
|
||||||
|
process_sdp(p, req);
|
||||||
|
if (p->owner && p->owner->pvt) {
|
||||||
|
struct ast_frame af = { AST_FRAME_VOICE, };
|
||||||
|
af.subclass = p->owner->pvt->rawreadformat;
|
||||||
|
ast_queue_frame(p->owner, &af, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 180:
|
case 180:
|
||||||
if (p->owner) {
|
if (p->owner) {
|
||||||
|
Reference in New Issue
Block a user