Thanks for the input. Is there no Asterisk command in dialplan to return true or false or number of channels per trunk rather than going to bash script?
And if I do the bash script how can I use "sed" and "awk" to search for the right words to see if trunk is in use or not. A bit detail would be really helpful. Thanks, Bruce On Sat, May 29, 2010 at 5:28 PM, Zeeshan Zakaria <zisha...@gmail.com> wrote: > Should be solid. After all munin also works on the same lines and it works > solid. > > Zeeshan A Zakaria > > -- > Sent from my Android phone with K-9 Mail. > > On 2010-05-29 5:12 PM, "bruce bruce" <bruceb...@gmail.com> wrote: > > Hi Guys, > > I am looking to use System() function along with some bash scripting to > determine if a Trunk is being used during certain time of the day or not. > Here is what I have in mind. Please guide me if you know a better way: > > exten => s,1,answer > exten => s,n,System(/tmp/check.sh) > > check.sh: > check EPOCH time => do an IF for certain times => Allow mutiple calls in > certain times and only single call at certain times > return back to Asterisk context and report if Trunk would allow more > channels or not... > > Something along those lines. Should this be a solid thing to do? I am > looking to use GotoIF and `asterisk -rx "sip show channels"` to grab results > or `asterisk -rx "core show channels"` > > Thanks > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users