]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Something clearly went wrong with a merge somewhere, because these are all duplicates...
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 6 Jan 2010 06:51:36 +0000 (06:51 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 6 Jan 2010 06:51:36 +0000 (06:51 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@237966 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index dc555ec41c616f4068d51e20262a3aabaa27945a..0cc264a5aa4ba13c99ff427b862b613f5b33c716 100644 (file)
@@ -21884,71 +21884,6 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str
                                                ast_log(LOG_WARNING, "Timer B has been set lower than recommended. (RFC 3261, 17.1.1.2)\n");
                                        }
                                }
-                       } else if (!strcasecmp(v->name, "subscribemwi")) {
-                               ast_set2_flag(&peer->flags[1], ast_true(v->value), SIP_PAGE2_SUBSCRIBEMWIONLY);
-                       } else if (!strcasecmp(v->name, "vmexten")) {
-                               ast_copy_string(peer->vmexten, v->value, sizeof(peer->vmexten));
-                       } else if (!strcasecmp(v->name, "callgroup")) {
-                               peer->callgroup = ast_get_group(v->value);
-                       } else if (!strcasecmp(v->name, "allowtransfer")) {
-                               peer->allowtransfer = ast_true(v->value) ? TRANSFER_OPENFORALL : TRANSFER_CLOSED;
-                       } else if (!strcasecmp(v->name, "pickupgroup")) {
-                               peer->pickupgroup = ast_get_group(v->value);
-                       } else if (!strcasecmp(v->name, "allow")) {
-                               int error =  ast_parse_allow_disallow(&peer->prefs, &peer->capability, v->value, TRUE);
-                               if (error) {
-                                       ast_log(LOG_WARNING, "Codec configuration errors found in line %d : %s = %s\n", v->lineno, v->name, v->value);
-                               }
-                       } else if (!strcasecmp(v->name, "disallow")) {
-                               int error =  ast_parse_allow_disallow(&peer->prefs, &peer->capability, v->value, FALSE);
-                               if (error) {
-                                       ast_log(LOG_WARNING, "Codec configuration errors found in line %d : %s = %s\n", v->lineno, v->name, v->value);
-                               }
-                       } else if (!strcasecmp(v->name, "registertrying")) {
-                               ast_set2_flag(&peer->flags[1], ast_true(v->value), SIP_PAGE2_REGISTERTRYING);
-                       } else if (!strcasecmp(v->name, "autoframing")) {
-                               peer->autoframing = ast_true(v->value);
-                       } else if (!strcasecmp(v->name, "rtptimeout")) {
-                               if ((sscanf(v->value, "%30d", &peer->rtptimeout) != 1) || (peer->rtptimeout < 0)) {
-                                       ast_log(LOG_WARNING, "'%s' is not a valid RTP hold time at line %d.  Using default.\n", v->value, v->lineno);
-                                       peer->rtptimeout = global_rtptimeout;
-                               }
-                       } else if (!strcasecmp(v->name, "rtpholdtimeout")) {
-                               if ((sscanf(v->value, "%30d", &peer->rtpholdtimeout) != 1) || (peer->rtpholdtimeout < 0)) {
-                                       ast_log(LOG_WARNING, "'%s' is not a valid RTP hold time at line %d.  Using default.\n", v->value, v->lineno);
-                                       peer->rtpholdtimeout = global_rtpholdtimeout;
-                               }
-                       } else if (!strcasecmp(v->name, "rtpkeepalive")) {
-                               if ((sscanf(v->value, "%30d", &peer->rtpkeepalive) != 1) || (peer->rtpkeepalive < 0)) {
-                                       ast_log(LOG_WARNING, "'%s' is not a valid RTP keepalive time at line %d.  Using default.\n", v->value, v->lineno);
-                                       peer->rtpkeepalive = global_rtpkeepalive;
-                               }
-                       } else if (!strcasecmp(v->name, "timert1")) {
-                               if ((sscanf(v->value, "%30d", &peer->timer_t1) != 1) || (peer->timer_t1 < 0)) {
-                                       ast_log(LOG_WARNING, "'%s' is not a valid T1 time at line %d.  Using default.\n", v->value, v->lineno);
-                                       peer->timer_t1 = global_t1;
-                               }
-                               /* Note that Timer B is dependent upon T1 and MUST NOT be lower
-                                * than T1 * 64, according to RFC 3261, Section 17.1.1.2 */
-                               if (peer->timer_b < peer->timer_t1 * 64) {
-                                       peer->timer_b = peer->timer_t1 * 64;
-                               }
-                       } else if (!strcasecmp(v->name, "timerb")) {
-                               if ((sscanf(v->value, "%30d", &peer->timer_b) != 1) || (peer->timer_b < 0)) {
-                                       ast_log(LOG_WARNING, "'%s' is not a valid Timer B time at line %d.  Using default.\n", v->value, v->lineno);
-                                       peer->timer_b = global_timer_b;
-                               }
-                               if (peer->timer_b < peer->timer_t1 * 64) {
-                                       static int warning = 0;
-                                       if (warning++ % 20 == 0) {
-                                               ast_log(LOG_WARNING, "Timer B has been set lower than recommended. (RFC 3261, 17.1.1.2)\n");
-                                       }
-                               }
-                       } else if (!strcasecmp(v->name, "rtpkeepalive")) {
-                               if ((sscanf(v->value, "%30d", &peer->rtpkeepalive) != 1) || (peer->rtpkeepalive < 0)) {
-                                       ast_log(LOG_WARNING, "'%s' is not a valid RTP keepalive time at line %d.  Using default.\n", v->value, v->lineno);
-                                       peer->rtpkeepalive = global_rtpkeepalive;
-                               }
                        } else if (!strcasecmp(v->name, "setvar")) {
                                peer->chanvars = add_var(v->value, peer->chanvars);
                        } else if (!strcasecmp(v->name, "qualifyfreq")) {