diff options
author | zuul <zuul@gerrit.asterisk.org> | 2016-12-09 03:25:12 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-12-09 03:25:12 -0600 |
commit | 5f9316e1430b611f30b0bcbfe09d0ea09e29d764 (patch) | |
tree | cb74ba251462b12e5352cd845906d19b5a695c16 /channels | |
parent | 949a4a443ad213c3fb6ed7dc0140ece57ea144e1 (diff) | |
parent | 6aa2c5e5f967128a89a95e40c8846bbd091eb6fb (diff) |
Merge "Small code cleanup in chan_sip" into 13
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 895739b4c..a56bb7ca1 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -10800,6 +10800,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), @@ -10807,11 +10810,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), |