Differencing between outgoing and incoming calls.

Status
Not open for further replies.

danardf

Joined
Dec 3, 2007
Messages
8,069
Reaction score
12
Hi.

It seems that basically when amaflags is set into your config trunk with any value, every outbound calls are tagged with 3.
And the amaflags value seems working only for incoming calls.

I found a way to differenciate incoming calls and outbound calls:
  1. Add amaflags=omit in your config trunk
  2. Edit extensions_additional.conf and copy the header and the content of macro-dialout-trunk
  3. Paste it somewhere into extensions_override_freepbx.conf
  4. Add exten => s,n,SetAMAFlags(billing) like the example below.
  5. Reload Asterisk

Code:
[macro-dialout-trunk]
include => macro-dialout-trunk-custom
exten => s,1,Set(DIAL_TRUNK=${ARG1})
exten => s,n,SetAMAFlags(billing)
.../...

Now for every incoming calls, amaflags will be tagged with 1
And for every outbound calls, amaflags will be tagged with 2.

In any case, it works for me. :wink:
 
Status
Not open for further replies.

Members Online Now

Forum statistics

Threads
111,832
Messages
589,278
Members
164,662
Latest member
DejanMDS