1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #include "asterisk.h"
- #include "asterisk/utils.h"
- #include "asterisk/cli.h"
- #include "include/sip.h"
- #include "include/sip_utils.h"
- const char *force_rport_string(struct ast_flags *flags)
- {
- if (ast_test_flag(&flags[2], SIP_PAGE3_NAT_AUTO_RPORT)) {
- return ast_test_flag(&flags[0], SIP_NAT_FORCE_RPORT) ? "Auto (Yes)" : "Auto (No)";
- }
- return AST_CLI_YESNO(ast_test_flag(&flags[0], SIP_NAT_FORCE_RPORT));
- }
- const char *comedia_string(struct ast_flags *flags)
- {
- if (ast_test_flag(&flags[2], SIP_PAGE3_NAT_AUTO_COMEDIA)) {
- return ast_test_flag(&flags[1], SIP_PAGE2_SYMMETRICRTP) ? "Auto (Yes)" : "Auto (No)";
- }
- return AST_CLI_YESNO(ast_test_flag(&flags[1], SIP_PAGE2_SYMMETRICRTP));
- }
|