summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2016-12-09 05:31:33 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2016-12-09 05:31:33 -0600
commit91ff772dd78b7b70defc336d9a280717de02061f (patch)
treecd43b42245cdb1b8aee0de29ea7034cb9a096373 /channels/chan_sip.c
parentcc9b30dd27b2628da48f279eb1d7c98fffefd0e1 (diff)
parentfe5be81821961c09b652b029671ea72e77f3f1df (diff)
Merge "Small code cleanup in chan_sip"
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 7f22b96c8..68b5c405d 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -10802,6 +10802,9 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req, int t38action
struct ast_str *vpeer_buf = ast_str_alloca(AST_FORMAT_CAP_NAMES_LEN);
struct ast_str *tpeer_buf = ast_str_alloca(AST_FORMAT_CAP_NAMES_LEN);
struct ast_str *joint_buf = ast_str_alloca(AST_FORMAT_CAP_NAMES_LEN);
+ struct ast_str *s1 = ast_str_alloca(SIPBUFSIZE);
+ struct ast_str *s2 = ast_str_alloca(SIPBUFSIZE);
+ struct ast_str *s3 = ast_str_alloca(SIPBUFSIZE);
ast_verbose("Capabilities: us - %s, peer - audio=%s/video=%s/text=%s, combined - %s\n",
ast_format_cap_get_names(p->caps, &cap_buf),
@@ -10809,11 +10812,6 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req, int t38action
ast_format_cap_get_names(vpeercapability, &vpeer_buf),
ast_format_cap_get_names(tpeercapability, &tpeer_buf),
ast_format_cap_get_names(newjointcapability, &joint_buf));
- }
- if (debug) {
- struct ast_str *s1 = ast_str_alloca(SIPBUFSIZE);
- struct ast_str *s2 = ast_str_alloca(SIPBUFSIZE);
- struct ast_str *s3 = ast_str_alloca(SIPBUFSIZE);
ast_verbose("Non-codec capabilities (dtmf): us - %s, peer - %s, combined - %s\n",
ast_rtp_lookup_mime_multiple2(s1, NULL, p->noncodeccapability, 0, 0),