From b32daa0ed78868e9d99e450dd1788c1adaaee525 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Wed, 30 Apr 2003 22:14:36 +0000 Subject: [PATCH] Queue null frame on receiving INVITE to prod ast_rtp_bridge git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@943 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 94c35a441a..7d78caec97 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -3915,6 +3915,9 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_ if (p->owner->_state != AST_STATE_UP) { ast_setstate(p->owner, AST_STATE_UP); ast_queue_control(p->owner, AST_CONTROL_ANSWER, 0); + } else { + struct ast_frame af = { AST_FRAME_NULL, }; + ast_queue_frame(p->owner, &af, 0); } } transmit_request(p, "ACK", seqno, 0); @@ -4136,6 +4139,7 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc int respid; int res; int gotdest; + struct ast_frame af = { AST_FRAME_NULL, }; /* Clear out potential response */ memset(&resp, 0, sizeof(resp)); /* Get Method and Cseq */ @@ -4237,6 +4241,8 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc p->capability = capability; ast_log(LOG_DEBUG, "Hm.... No sdp for the moemnt\n"); } + /* Queue NULL frame to prod ast_rtp_bridge if appropriate */ + ast_queue_frame(p->owner, &af, 0); } else if (sipdebug) ast_verbose("Ignoring this request\n"); if (!p->lastinvite) {