#include "asterisk.h"
#include "asterisk/utils.h"
#include "asterisk/cli.h"
#include "include/sip.h"
#include "include/sip_utils.h"

Go to the source code of this file.
Functions | |
| const char * | comedia_string (struct ast_flags *flags) |
| const char * | force_rport_string (struct ast_flags *flags) |
Definition in file channels/sip/utils.c.
| const char* comedia_string | ( | struct ast_flags * | flags | ) |
Definition at line 39 of file channels/sip/utils.c.
References AST_CLI_YESNO, and ast_test_flag.
Referenced by _sip_show_peer().
00040 { 00041 if (ast_test_flag(&flags[2], SIP_PAGE3_NAT_AUTO_COMEDIA)) { 00042 return ast_test_flag(&flags[1], SIP_PAGE2_SYMMETRICRTP) ? "Auto (Yes)" : "Auto (No)"; 00043 } 00044 return AST_CLI_YESNO(ast_test_flag(&flags[1], SIP_PAGE2_SYMMETRICRTP)); 00045 }
| const char* force_rport_string | ( | struct ast_flags * | flags | ) |
Definition at line 31 of file channels/sip/utils.c.
References AST_CLI_YESNO, and ast_test_flag.
Referenced by _sip_show_peer(), sip_show_channel(), and sip_show_settings().
00032 { 00033 if (ast_test_flag(&flags[2], SIP_PAGE3_NAT_AUTO_RPORT)) { 00034 return ast_test_flag(&flags[0], SIP_NAT_FORCE_RPORT) ? "Auto (Yes)" : "Auto (No)"; 00035 } 00036 return AST_CLI_YESNO(ast_test_flag(&flags[0], SIP_NAT_FORCE_RPORT)); 00037 }
1.5.6