Hi, I am attempting to place additional log in into the extensions_custom.conf to capture the number of calls going on when an outbound call is placed.
I have an issue with my telco and am trying to produce more evidence to hopefully prove them wrong.
I have created the following:
exten => _X.,n,Set(Number Of Active Calls=${SHELL(/usr/sbin/asterisk -rx ‘core show channels’ | grep ‘active call’)})
Can anyone suggest the best place to add this too. I have tried adding this to from_internal-xfer it worked however it caused my call recording to stop working.
Has anyone done this before and have any advice on how to do this with out effecting any other services, or can see where I am going wrong, unfortunately I am really stuck.
I am running the following setup not from a distribution.
FreePBX: 2.11.0
Asterisk: 11.8.1
Dahdi: 2.9.0
Centos: 6.5
current - extensions_custom.conf
;[from-internal-xfer]
;include => from-internal-custom
;include => from-internal-additional ; auto-generated
;exten => s,1,Macro(hangupcall)
;exten => h,1,Macro(hangupcall)
;exten => _X.,n,Set(Number Of Active Calls=${SHELL(/usr/sbin/asterisk -rx ‘core show channels’ | grep ‘active call’)})
You probably don’t want spaces in the new variable name. The second line above will record the result in the CDR ‘userfield’, which you may want to do if it isn’t already in use for some other reason.