From d3d49dd21b8b466bd68f3e7b0621c09291076f05 Mon Sep 17 00:00:00 2001 From: russell Date: Mon, 5 Nov 2007 21:23:32 +0000 Subject: [PATCH] Merged revisions 88765 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r88765 | russell | 2007-11-05 15:21:39 -0600 (Mon, 05 Nov 2007) | 2 lines Fix up some indentation. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@88766 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_sip.c | 50 ++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 801bbd45e..80c8f72e3 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -7755,35 +7755,35 @@ static int transmit_invite(struct sip_pvt *p, int sipmethod, int sdp, int init) struct ast_channel *ast = p->owner; /* The owner channel */ struct varshead *headp = &ast->varshead; - if (!headp) - ast_log(LOG_WARNING,"No Headp for the channel...ooops!\n"); - else { - const struct ast_var_t *current; - AST_LIST_TRAVERSE(headp, current, entries) { - /* SIPADDHEADER: Add SIP header to outgoing call */ - if (!strncasecmp(ast_var_name(current), "SIPADDHEADER", strlen("SIPADDHEADER"))) { - char *content, *end; - const char *header = ast_var_value(current); - char *headdup = ast_strdupa(header); + if (!headp) + ast_log(LOG_WARNING,"No Headp for the channel...ooops!\n"); + else { + const struct ast_var_t *current; + AST_LIST_TRAVERSE(headp, current, entries) { + /* SIPADDHEADER: Add SIP header to outgoing call */ + if (!strncasecmp(ast_var_name(current), "SIPADDHEADER", strlen("SIPADDHEADER"))) { + char *content, *end; + const char *header = ast_var_value(current); + char *headdup = ast_strdupa(header); - /* Strip of the starting " (if it's there) */ - if (*headdup == '"') - headdup++; - if ((content = strchr(headdup, ':'))) { - *content++ = '\0'; - content = ast_skip_blanks(content); /* Skip white space */ - /* Strip the ending " (if it's there) */ - end = content + strlen(content) -1; - if (*end == '"') - *end = '\0'; - - add_header(&req, headdup, content); - if (sipdebug) - ast_debug(1, "Adding SIP Header \"%s\" with content :%s: \n", headdup, content); - } + /* Strip of the starting " (if it's there) */ + if (*headdup == '"') + headdup++; + if ((content = strchr(headdup, ':'))) { + *content++ = '\0'; + content = ast_skip_blanks(content); /* Skip white space */ + /* Strip the ending " (if it's there) */ + end = content + strlen(content) -1; + if (*end == '"') + *end = '\0'; + + add_header(&req, headdup, content); + if (sipdebug) + ast_debug(1, "Adding SIP Header \"%s\" with content :%s: \n", headdup, content); } } } + } } if (sdp) { if (p->udptl && p->t38.state == T38_LOCAL_DIRECT) {