Sending metering tones signal to ATA via SIP


I’m using Audiocodes MP-112 ATA to connect analogue phones to Asterisk.

The devices allows generating 16 kHz metering tones on the line for a device to consume a charge unit.
There are the following options in the ATA’s settings from where the metering tones charge signal might be coming from:
-sip interval provided
-sip raw data provided
-sip raw data incremental provided

There is no further documentation though on what that exactly means regarding what is sent in the SIP protocol. I’d want Asterisk to provide the interval for the ATA sending 16 kHz tones based on the destination number’s prefix (i.e. international calls would send more 16 kHz tones per time than domestic calls).

Maybe someone here knows what that signal might be and how I can generate it in Asterisk / Pjsip?

I can’t find your bullet points in and the only reference I could find to meter pulses say that the routing rules select table entries which determine the timing of when they are sent.

Thanks. Agreed the manual you linked doesn’t show it, yet the config UI offers these extra options in the drop down.
See also page 325 of pdf (printed page number 305).

I’d like to avoid the configuration in the Audiocodes internal table, as it’s clumsy, inflexible and a duplication of config that anyway already lives within Asterisk.

I found more info in a manual of another Audiocodes product, according to which one of these methods might listen to AOC SIP messages.

I’d like to try this out.
How can pjsip generate a SIP INFO with header AOC: charging;state=active;charging-info=pulse;recorded-units=1 on connection establishment and periodically during the connection?

Or it seems an alternative is to send as XML in an Content-Type: application/vnd.etsi.aoc+xml “attachment” to a SIP INFO message rather than as a header.

I don’t think Asterisk supports either method. I think you would need to develop new C code for this.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.