[asterisk-commits] branch oej/multiparking - r8301
/team/oej/multiparking/channels/chan_zap.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Jan 19 15:43:09 MST 2006
Author: oej
Date: Thu Jan 19 16:43:07 2006
New Revision: 8301
URL: http://svn.digium.com/view/asterisk?rev=8301&view=rev
Log:
Add support for chan_zap as well
Modified:
team/oej/multiparking/channels/chan_zap.c
Modified: team/oej/multiparking/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/team/oej/multiparking/channels/chan_zap.c?rev=8301&r1=8300&r2=8301&view=diff
==============================================================================
--- team/oej/multiparking/channels/chan_zap.c (original)
+++ team/oej/multiparking/channels/chan_zap.c Thu Jan 19 16:43:07 2006
@@ -1,7 +1,7 @@
/*
* Asterisk -- An open source telephony toolkit.
*
- * Copyright (C) 1999 - 2005, Digium, Inc.
+ * Copyright (C) 1999 - 2006, Digium, Inc.
*
* Mark Spencer <markster at digium.com>
*
@@ -608,6 +608,7 @@
char exten[AST_MAX_EXTENSION];
char language[MAX_LANGUAGE];
char musicclass[MAX_MUSICCLASS];
+ char parkinglot[AST_MAX_EXTENSION]; /*!< Parking lot for this channel */
#ifdef PRI_ANI
char cid_ani[AST_MAX_EXTENSION];
#endif
@@ -5143,6 +5144,8 @@
ast_copy_string(tmp->language, i->language, sizeof(tmp->language));
if (!ast_strlen_zero(i->musicclass))
ast_copy_string(tmp->musicclass, i->musicclass, sizeof(tmp->musicclass));
+ if (!ast_strlen_zero(i->parkinglot))
+ ast_copy_string(tmp->parkinglot, i->parkinglot, sizeof(tmp->parkinglot));
if (!i->owner)
i->owner = tmp;
if (!ast_strlen_zero(i->accountcode))
@@ -7291,6 +7294,7 @@
ast_copy_string(tmp->defcontext,context,sizeof(tmp->defcontext));
ast_copy_string(tmp->language, language, sizeof(tmp->language));
ast_copy_string(tmp->musicclass, musicclass, sizeof(tmp->musicclass));
+ ast_copy_string(tmp->parkinglot, parkinglot, sizeof(tmp->parkinglot));
ast_copy_string(tmp->context, context, sizeof(tmp->context));
ast_copy_string(tmp->cid_num, cid_num, sizeof(tmp->cid_num));
tmp->cid_ton = 0;
@@ -10531,6 +10535,8 @@
ast_copy_string(progzone, v->value, sizeof(progzone));
} else if (!strcasecmp(v->name, "musiconhold")) {
ast_copy_string(musicclass, v->value, sizeof(musicclass));
+ } else if (!strcasecmp(v->name, "parkinglot")) {
+ ast_copy_string(parkinglot, v->value, sizeof(parkinglot));
} else if (!strcasecmp(v->name, "stripmsd")) {
stripmsd = atoi(v->value);
} else if (!strcasecmp(v->name, "jitterbuffers")) {
More information about the asterisk-commits
mailing list