Wed May 16 06:37:07 2012

Asterisk developer's documentation


channels/sip/utils.c File Reference

Utility functions for chan_sip. More...

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

Include dependency graph for channels/sip/utils.c:

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)


Detailed Description

Utility functions for chan_sip.

Author:
Terry Wilson <twilson@digium.com>

Definition in file channels/sip/utils.c.


Function Documentation

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 }


Generated on Wed May 16 06:37:08 2012 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6