ensure that MGCP AMA flags are passed into CDR (bug #3962)
authorKevin P. Fleming <kpfleming@digium.com>
Tue, 5 Apr 2005 21:40:37 +0000 (21:40 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Tue, 5 Apr 2005 21:40:37 +0000 (21:40 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5414 65c4cc65-6c06-0410-ace0-fbb531ad65f3

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

index c6b9acf..07924cd 100755 (executable)
@@ -3710,6 +3710,7 @@ static struct mgcp_gateway *build_gateway(char *cat, struct ast_variable *v)
                                        strncpy(e->mailbox, mailbox, sizeof(e->mailbox) - 1);
                                        snprintf(e->rqnt_ident, sizeof(e->rqnt_ident), "%08x", rand());
                                        e->msgstate = -1;
+                                       e->amaflags = amaflags;
                                        e->capability = capability;
                                        e->parent = gw;
                                        e->dtmfmode = dtmfmode;
@@ -3812,6 +3813,7 @@ static struct mgcp_gateway *build_gateway(char *cat, struct ast_variable *v)
                                                e->msgstate = -1;
                                                e->parent = gw;
                                        }
+                                       e->amaflags = amaflags;
                                        e->capability = capability;
                                        e->dtmfmode = dtmfmode;
                                        e->adsi = adsi;
index 63e7255..f9ffc01 100755 (executable)
 
 ; known to work with wave7optics FTTH LMGs
 ;[192.168.1.20]
-;context=local
-;host=192.168.1.20
-;nat=no
-;wcardep=aaln/*                ; enables wildcard endpoint and sets it to 'aaln/*' another common format is '*'
-;callerid = "Duane Cox" <123>
-;callwaiting=no
-;transfer=no
-;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
-;transfer=no
-;cancallforward=no
-;canreinvite=no
-;dtmfmode=inband
-;line => aaln/2
+;accountcode   = 1000          ; record this in cdr as account identification for billing
+;amaflags      = billing       ; record this in cdr as flagged for 'billing', 'documentation', or 'omit'
+;context       = local
+;host          = 192.168.1.20
+;wcardep       = aaln/*        ; enables wildcard endpoint and sets it to 'aaln/*' another common format is '*'
+;callerid      = "Duane Cox" <123>     ; now lets setup line 1 using per endpoint configuration...
+;callwaiting   = no
+;callreturn    = yes
+;cancallforward = yes
+;canreinvite   = no
+;transfer      = no
+;dtmfmode      = inband
+;line => aaln/1                        ; now lets save this config to line1 aka aaln/1
+;callerid      = "Duane Cox" <456>     ; now lets setup line 2
+;callwaiting   = no
+;callreturn    = yes
+;cancallforward = yes
+;canreinvite   = no
+;transfer      = no
+;dtmfmode      = inband
+;line => aaln/2                        ; now lets save this config to line2 aka aaln/2