mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
Merged revisions 50466 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r50466 | file | 2007-01-11 00:19:39 -0500 (Thu, 11 Jan 2007) | 2 lines Add support to see whether NAT was detected (yay symmetric RTP) and also add a check in chan_sip so that if NAT has been detected and the reinvite behind nat option has been turned off, then just do partial bridge. (issue #8655 reported by mnicholson) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50467 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -591,6 +591,11 @@ void ast_rtp_setnat(struct ast_rtp *rtp, int nat)
|
||||
rtp->nat = nat;
|
||||
}
|
||||
|
||||
int ast_rtp_getnat(struct ast_rtp *rtp)
|
||||
{
|
||||
return ast_test_flag(rtp, FLAG_NAT_ACTIVE);
|
||||
}
|
||||
|
||||
void ast_rtp_setdtmf(struct ast_rtp *rtp, int dtmf)
|
||||
{
|
||||
ast_set2_flag(rtp, dtmf ? 1 : 0, FLAG_HAS_DTMF);
|
||||
|
Reference in New Issue
Block a user