aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-08-26 04:56:26 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-08-26 04:56:26 +0000
commit3fc6b9c9a533b049f7f4cba5ced5a324bada816e (patch)
treebb73408f4403d40d76b51e984ddc382ff6d9cd54 /channels/chan_sip.c
parent78778424f85d0310a03fd7a10018c96d979f66eb (diff)
Repair offer/answer model (bug #2293), initial CNG work for new frametype
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3658 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rwxr-xr-xchannels/chan_sip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index b461284d1..e4f86c1c5 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -3511,6 +3511,7 @@ static int transmit_response_with_sdp(struct sip_pvt *p, char *msg, struct sip_r
return -1;
}
respprep(&resp, p, msg, req);
+ ast_rtp_offered_from_local(p->rtp, 0);
add_sdp(&resp, p);
return send_response(p, &resp, retrans, seqno);
}
@@ -3587,6 +3588,7 @@ static int transmit_reinvite_with_sdp(struct sip_pvt *p)
reqprep(&req, p, "INVITE", 0, 1);
add_header(&req, "Allow", ALLOWED_METHODS);
+ ast_rtp_offered_from_local(p->rtp, 1);
add_sdp(&req, p);
/* Use this as the basis */
copy_request(&p->initreq, &req);
@@ -3745,6 +3747,7 @@ static int transmit_invite(struct sip_pvt *p, char *cmd, int sdp, char *auth, ch
}
add_header(&req, "Allow", ALLOWED_METHODS);
if (sdp) {
+ ast_rtp_offered_from_local(p->rtp, 1);
add_sdp(&req, p);
} else {
add_header(&req, "Content-Length", "0");