diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/rtp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/rtp.c b/main/rtp.c index e7795af63..c1285654d 100644 --- a/main/rtp.c +++ b/main/rtp.c @@ -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); |