]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Create initial framework for single channel support
authorMark Spencer <markster@digium.com>
Mon, 2 Aug 2004 04:32:37 +0000 (04:32 +0000)
committerMark Spencer <markster@digium.com>
Mon, 2 Aug 2004 04:32:37 +0000 (04:32 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3568 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_mgcp.c
configs/mgcp.conf.sample

index 295328e3af844118913c39320ff6de940268865f..8adeede3c92c909ca1c5231426a64d05a432a3ee 100755 (executable)
@@ -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;
index 4222beb336112971752d542439186b4e2a856d01..2af96c9b317963bd7c627d7de764e260558c2c41 100755 (executable)
@@ -61,6 +61,7 @@
 ;cancallforward=no
 ;canreinvite=no
 ;dtmfmode=inband
+;singlepath=yes                ; This device only supports a single RTP path
 ;line => aaln/1
 ;callerid = "Duane Cox" <456>
 ;callwaiting=no