aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_mgcp.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-08-02 04:32:37 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-08-02 04:32:37 +0000
commit3d5234add402aad54c7dbeccee00389a6f62c92b (patch)
tree79b18afc85ef9143e801fbdea9e4838d40ecd478 /channels/chan_mgcp.c
parent637a58a941a170d64049e786a4c0a7cf4ccb75f1 (diff)
Create initial framework for single channel support
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3568 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_mgcp.c')
-rwxr-xr-xchannels/chan_mgcp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c
index 295328e3a..8adeede3c 100755
--- a/channels/chan_mgcp.c
+++ b/channels/chan_mgcp.c
@@ -192,6 +192,8 @@ static int transfer = 0;
static int cancallforward = 0;
+static int singlepath = 0;
+
static int canreinvite = CANREINVITE;
/*static int busycount = 3;*/
@@ -365,6 +367,7 @@ struct mgcp_endpoint {
int callwaiting;
int transfer;
int threewaycalling;
+ int singlepath;
int cancallforward;
int canreinvite;
int callreturn;
@@ -3497,6 +3500,8 @@ static struct mgcp_gateway *build_gateway(char *cat, struct ast_variable *v)
immediate = ast_true(v->value);
} else if (!strcasecmp(v->name, "cancallforward")) {
cancallforward = ast_true(v->value);
+ } else if (!strcasecmp(v->name, "singlepath")) {
+ singlepath = ast_true(v->value);
} else if (!strcasecmp(v->name, "canreinvite")) {
canreinvite = ast_true(v->value);
} else if (!strcasecmp(v->name, "mailbox")) {
@@ -3562,6 +3567,7 @@ static struct mgcp_gateway *build_gateway(char *cat, struct ast_variable *v)
e->pickupgroup=cur_pickupgroup;
e->callreturn = callreturn;
e->cancallforward = cancallforward;
+ e->singlepath = singlepath;
e->canreinvite = canreinvite;
e->callwaiting = callwaiting;
e->slowsequence = slowsequence;