Hi,
Is there a method, through Web-GUI or CLI, to help us list the extensions with have “Call Forward Immediately” (CFI) set ?
Regrads.
Hi,
Is there a method, through Web-GUI or CLI, to help us list the extensions with have “Call Forward Immediately” (CFI) set ?
Regrads.
Look under the extension status page.
Hi PitzKey,
Sorry for not being clear enough. I am looking for a method to obtain the list of extensions with CFI set, together with the number specified for forwarding. A CLI command, if available, would be great, as I am planning to create an automatic, perhaps weekly reminder through Crontab, to the administrator.
Thanks in advance.
You could use something like this:
rasterisk -rx ‘database show 63228223c8e82b75 diversions’ | grep ‘/CFI’
63228223c8e82b75 would be your tenant id
you can get the tenant id by just doing database show from the cli
Thank you dannylarsen,
Can you provide more hints on how I can obtain my tenant id ? I am familiar with MySql, but have no clue on the DB structure here.
Regards.
From the asterisk command line, or CLI in the Vitalpbx gui type: database show
There will be many entries with a similar number that is your tenant id
Hi dannylarsen,
I have issued the command and received a huge amount of lines as a response. Below are some of them;
/a9a071d09xx51d62/extensions/2991/absent_secretary: no
/a9a071d09xx51d62/extensions/2991/answermode : disable
.
.
/a9a071d09xx51d62/extensions/2991/vmenabled : no
/a9a071d09xx51d62/extensions/2991/voicemail : 2991@vitalpbx-voicemail
First I thought the “a9a071d09xx51d62” was the tenant ip, but then I realized that the sane pattern is also available for all the other extensions too. I also found another group of lines (for each of the extensions) like below ;
/devices/SIP/2991/assigned_exten : 2991
/devices/SIP/2991/emergency_cid :
/devices/SIP/2991/hot_desk : no
/devices/SIP/2991/location :
/devices/SIP/2991/send_push : no
/devices/SIP/2991/tenant : a9a071d09xx51d62
Again, the “tenant” values are the same for every extension. Is there something I am missing ?
Assuming you have only one tenant id, yes this a9a071d09xx51d62 would be it
The command: “database show a9a071d09xx51d62 diversions”
Will show ALL diversions, you will have to use some other mechanism like grep to extract only the CFI entries
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.