- 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:
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:
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:
- Add amaflags=omit in your config trunk
- Edit extensions_additional.conf and copy the header and the content of macro-dialout-trunk
- Paste it somewhere into extensions_override_freepbx.conf
- Add exten => s,n,SetAMAFlags(billing) like the example below.
- 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: