SetAMAFlags()

Sets AMA-Flags in the Call Detail Record (CDR).

        
          SetAMAFlags(flags)
        
      

Sets AMA (Automatic Message Accounting)[58] flags in the CDR. Overrides any settings found in channel configuration files. Valid settings are default, omit, billing and documentation.

Returns 0.

exten => 123,1,SetAMAFlags(billing)
[Note]

Internal help for this application in Asterisk 1.4: 

  -= Info about application 'SetAMAFlags' =- 

[Synopsis]
Set the AMA Flags

[Description]
  SetAMAFlags([flag]): This application will set the channel's AMA Flags
 for
  billing purposes.

diff output to internal help in Asterisk 1.2: 

8,9c8,9
<   SetAMAFlags([flag]): This application will set the channel's AMA Fla
gs for
<   billing purposes.
---
>   SetAMAFlags([flag]): This channel will set the channel's AMA Flags f
or billing
> purposes.


[58] In North America, Automatic Message Accounting has been used for billing in Direct Distance Dialing since it was introduced in the mid-20th century. The system was originally used to provide the toll system with information about the originating circuit so that the subscriber could be billed for a long distance call.