ensure that MGCP AMA flags are passed into CDR (bug #3962)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5414 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2005-04-05 21:40:37 +00:00
parent 2650a7f2ae
commit 864f6a50b8
2 changed files with 23 additions and 19 deletions

View File

@@ -3710,6 +3710,7 @@ static struct mgcp_gateway *build_gateway(char *cat, struct ast_variable *v)
strncpy(e->mailbox, mailbox, sizeof(e->mailbox) - 1); strncpy(e->mailbox, mailbox, sizeof(e->mailbox) - 1);
snprintf(e->rqnt_ident, sizeof(e->rqnt_ident), "%08x", rand()); snprintf(e->rqnt_ident, sizeof(e->rqnt_ident), "%08x", rand());
e->msgstate = -1; e->msgstate = -1;
e->amaflags = amaflags;
e->capability = capability; e->capability = capability;
e->parent = gw; e->parent = gw;
e->dtmfmode = dtmfmode; e->dtmfmode = dtmfmode;
@@ -3812,6 +3813,7 @@ static struct mgcp_gateway *build_gateway(char *cat, struct ast_variable *v)
e->msgstate = -1; e->msgstate = -1;
e->parent = gw; e->parent = gw;
} }
e->amaflags = amaflags;
e->capability = capability; e->capability = capability;
e->dtmfmode = dtmfmode; e->dtmfmode = dtmfmode;
e->adsi = adsi; e->adsi = adsi;

View File

@@ -51,22 +51,24 @@
; known to work with wave7optics FTTH LMGs ; known to work with wave7optics FTTH LMGs
;[192.168.1.20] ;[192.168.1.20]
;context=local ;accountcode = 1000 ; record this in cdr as account identification for billing
;host=192.168.1.20 ;amaflags = billing ; record this in cdr as flagged for 'billing', 'documentation', or 'omit'
;nat=no ;context = local
;wcardep=aaln/* ; enables wildcard endpoint and sets it to 'aaln/*' another common format is '*' ;host = 192.168.1.20
;callerid = "Duane Cox" <123> ;wcardep = aaln/* ; enables wildcard endpoint and sets it to 'aaln/*' another common format is '*'
;callwaiting=no ;callerid = "Duane Cox" <123> ; now lets setup line 1 using per endpoint configuration...
;transfer=no ;callwaiting = no
;cancallforward=no ;callreturn = yes
;canreinvite=no ;cancallforward = yes
;dtmfmode=inband ;canreinvite = no
;singlepath=yes ; This device only supports a single RTP path ;transfer = no
;line => aaln/1 ;dtmfmode = inband
;callerid = "Duane Cox" <456> ;line => aaln/1 ; now lets save this config to line1 aka aaln/1
;callwaiting=no ;callerid = "Duane Cox" <456> ; now lets setup line 2
;transfer=no ;callwaiting = no
;cancallforward=no ;callreturn = yes
;canreinvite=no ;cancallforward = yes
;dtmfmode=inband ;canreinvite = no
;line => aaln/2 ;transfer = no
;dtmfmode = inband
;line => aaln/2 ; now lets save this config to line2 aka aaln/2