02-28-2013 02:49 AM - edited 03-16-2019 03:58 PM
Hi there,
I was wondering if anyone knows of a way to log the number of times that a voice translation get's used on an H323 gateway? Sort of like a hit count.
I quess the way in an access list you can put "log" at the end of the statment.
Is this going to have to be an eem script job?
Thanks
Alexis
02-28-2013 02:51 AM
There is no way.
02-28-2013 07:44 AM
sort of resolved it ;-) Not sure is anyone can think of a better way of doing it
This will sent an email after the number is used 5 times....
turn "debug isdn q931" on
event manager environment _email_server X.X.X.X
event manager environment _email_to alex_XXXXX@XXX.XXX
event manager environment _ra_count 0
event manager applet MonitorNumber
event syslog pattern "0123456789" period 2
action 101 set tmp "$_ra_count"
action 102 increment tmp
action 103 cli command "enable"
action 104 cli command "config t"
action 105 cli command "event manager environment _ra_count $tmp"
action 106 if $_ra_count ge "5"
action 107 syslog msg "Conference Call number limit reached! Number:$tmp"
action 108 cli command "enable"
action 109 cli command "config t"
action 110 cli command "event manager environment _ra_count 0"
action 111 mail server "$_email_server" to "$_email_to" from "$_email_to" subject "Conference Call number limit reach on MLIV001-010CVG02_RA"
action 112 syslog msg "Email sent to $_email_to Conference Call number limit reset to 0"
action 113 end
cheers
alexis
02-28-2013 08:14 AM
To limit calls, you can use max-conn under dial-peer. But that is not what you have asked in the original posting.
02-28-2013 08:26 AM
thats correct.. to limit calls you can use max-conn
all the script dose is sent you an email telling you that the number your monitoring has been used at least 5 times... which is what i asked for in the original post .. something to monitor the number of time a number is used. Only want to monitor not block
anyway got there in the end
cheers
alexis
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide