Call routing based on time

Unanswered Question
Jul 19th, 2010
User Badges:

Hi everybody,
 
I recently purchased a UC-560, and I was wondering if it is possible to  set up a call routing based on time via CCA o CLI, for example: from 9:00 to  15:00 mobile calls use FXO 0/1/0 port and from 16:00 to 20:00 use FXO  0/1/1.
And even more, it is possible the previous configuration adding the  condition of the origin extension, ie, if extension 201 makes a call to a  mobile phone between 9:00 to 15:00 must use FXO 0/1/0.. and so on..
Thanks!!

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4 (1 ratings)
Loading.
Steven DiStefano Mon, 07/19/2010 - 03:55
User Badges:
  • Blue, 1500 points or more

Hello,

There is one outgoing dial plan for the UC560 with CCA and while you

can implement a resulting route to include an FXO trunk group A or a

different FXO trunk group B (even can mingle in SIP trunks to overflow

too) the resulting routing for a given set of dialed digits is always

the same, regardless of the TOD and regardless of the originator.


Steve DiStefano

Technology Solutions Architect - Sales

Cisco Systems

Research Triangle Park

North Carolina, U.S.A

1.919.392.6219

www.cisco.com/smb


On Jul 19, 2010, at 3:36 AM, "sistemas.sede"

sistemas.sede Mon, 07/19/2010 - 06:35
User Badges:

Hi Steven,


What I am trying is to route mobile calls to a GSM link with a 8h flat-fee connected to a FXO port, and the other 8h route to other FXO port with other GSM link with flat-fee too.

I want the UC route to each FXO by time.


Thanks,

Kind Regards.

vcappucc Mon, 07/19/2010 - 12:40
User Badges:
  • Bronze, 100 points or more


Hola Antonio,


Event Manager, can do this job you are looking for


http://www.cisco.com/en/US/prod/collateral/iosswrel/ps6537/ps6555/ps6815/datasheet_c78-492444.html


Please find a quick example i did on my lab, off course some more thinking can be done in order to have the perfect applet


event manager applet EVENT1
event timer cron name "EVENT1" cron-entry "1 10 * * 1-7"
action 1.0 cli command "enable"
action 1.1 cli command "config t"
action 1.2 cli command "dial-peer voice 1"
action 1.3 cli command "sh"
action 1.4 cli command "exit"
action 1.5 cli command "dial-peer voice 2"
action 1.6 cli command "no sh"


The cron-entry parameter in this event timer specifies that this applet runs one minute after 10AM on every day of every month (the two asterisks) from Sunday to Saturday 1-7




event manager applet EVENT2
event timer cron name "EVENT2" cron-entry "1 13 * * 1-7"
action 1.0 cli command "enable"
action 1.1 cli command "config t"
action 1.2 cli command "dial-peer voice 1"
action 1.3 cli command "no sh"
action 1.4 cli command "exit"
action 1.5 cli command "dial-peer voice 2"
action 1.6 cli command "sh"


The cron-entry parameter in this event timer specifies that this applet runs one minute after 1PM on every day of every month from Sunday to Saturday 1-7


Example


dial-peer voice 1 voip
destination-pattern 8...
session protocol sipv2
session target ipv4:192.168.20.2
incoming called-number 2...
voice-class codec 1
dtmf-relay rtp-nte
!
dial-peer voice 2 voip
destination-pattern 8...
session protocol sipv2
session target ipv4:192.168.9.2
incoming called-number 2...
voice-class codec 1
dtmf-relay rtp-nte





UC540T#deb event manager all
All possible Embedded Event Manager debugging has been turned on


UC540T#clock set 9:59:00 19 JUL 2010
UC540T#
*Jul 19 19:56:30.676: cli_history_entry_add: free_hist_list size=0, hist_list size=7
*Jul 19 19:56:30.676: check_eem_cli_policy_handler: command_string=clock set 9:59:00  19 JUL  2010
*Jul 19 19:56:30.676: check_eem_cli_policy_handler: num_matches = 0, response_code = 1
*Jul 19 09:59:00.000: EEM: Inside fh_server_clock_changed
*Jul 19 09:59:00.000: %SYS-6-CLOCKUPDATE: System clock has been updated from 19:56:30 UTC Mon Jul 19 2010 to 09:59:00 UTC Mon Jul 19 2010, configured from console by console.


UC540T#show dial-peer voice summ
dial-peer hunt 0
             AD                                    PRE PASS                OUT
TAG    TYPE  MIN  OPER PREFIX    DEST-PATTERN      FER THRU SESS-TARGET    STAT PORT    KEEPALIVE
1      voip  up   up             8...               0  syst ipv4:192.168.20.2  
20001  pots  up   up             2000$              0                           50/0/1
20002  pots  up   up             2001$              0                           50/0/2
20003  pots  up   up             2003$              0                           50/0/3
20004  pots  up   up             2004$              0                           50/0/4
20005  pots  up   up             2005$              0                           50/0/5
20006  pots  up   up             2006$              0                           50/0/6
20007  pots  up   up             2007$              0                           50/0/7
20008  pots  up   up             2008$              0                           50/0/8
20009  pots  up   up             2009$              0                           50/0/9
40001  voip  up   up             9000               0  syst ipv4:192.168.10.2:58
2      voip  up   up             8...               0  syst ipv4:192.168.9.2   
UC540T#
Jul 19 10:00:15.839: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 10:00:15.839: check_eem_cli_policy_handler: command_string=show dial-peer voice summary
Jul 19 10:00:15.839: check_eem_cli_policy_handler: num_matches = 0, response_code = 1
UC540T#show clock
10:00:21.427 UTC Mon Jul 19 2010
UC540T#
Jul 19 10:00:21.427: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 10:00:21.427: check_eem_cli_policy_handler: command_string=show clock
Jul 19 10:00:21.427: check_eem_cli_policy_handler: num_matches = 0, response_code = 1
UC540T#show clock
10:00:39.151 UTC Mon Jul 19 2010
UC540T#
Jul 19 10:00:39.151: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 10:00:39.151: check_eem_cli_policy_handler: command_string=show clock
Jul 19 10:00:39.151: check_eem_cli_policy_handler: num_matches = 0, response_code = 1
UC540T#show clock
10:00:42.879 UTC Mon Jul 19 2010
UC540T#
Jul 19 10:00:42.879: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 10:00:42.879: check_eem_cli_policy_handler: command_string=show clock
Jul 19 10:00:42.879: check_eem_cli_policy_handler: num_matches = 0, response_code = 1
UC540T#show clock
10:00:47.059 UTC Mon Jul 19 2010
UC540T#
Jul 19 10:00:47.059: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 10:00:47.059: check_eem_cli_policy_handler: command_string=show clock
Jul 19 10:00:47.059: check_eem_cli_policy_handler: num_matches = 0, response_code = 1
UC540T#show clock
10:00:51.491 UTC Mon Jul 19 2010
UC540T#
Jul 19 10:00:51.491: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 10:00:51.491: check_eem_cli_policy_handler: command_string=show clock
Jul 19 10:00:51.491: check_eem_cli_policy_handler: num_matches = 0, response_code = 1
UC540T#show clock
10:00:54.967 UTC Mon Jul 19 2010
UC540T#
Jul 19 10:00:54.967: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 10:00:54.967: check_eem_cli_policy_handler: command_string=show clock
Jul 19 10:00:54.967: check_eem_cli_policy_handler: num_matches = 0, response_code = 1
UC540T#show clock
10:00:59.211 UTC Mon Jul 19 2010
UC540T#
Jul 19 10:00:59.211: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 10:00:59.211: check_eem_cli_policy_handler: command_string=show clock
Jul 19 10:00:59.211: check_eem_cli_policy_handler: num_matches = 0, response_code = 1
Jul 19 10:01:00.003: fh_fd_timer_process_async
Jul 19 10:01:00.003: cron_tick: subscriber(0)=0x884B17CC
Jul 19 10:01:00.003: cron_tick info publish:  re=0x884B17CC reg q_size=2
Jul 19 10:01:00.003: cron_tick: num_matches 1
Jul 19 10:01:00.003: fh_send_server_sig_hndlr: received a pulse from timer on node0/0 with fdid: 12
Jul 19 10:01:00.003: fh_send_timer_fd_msg: msg_type=64
Jul 19 10:01:00.003: fh_send_timer_fd_msg: sval=0
Jul 19 10:01:00.003: fh_send_server_sig_hndlr: received FH_MSG_EVENT_PUBLISH
Jul 19 10:01:00.003: EEM: server processes multi events: timewin=1, sync_flag=0, ec_index=0, cmp_occ=1
Jul 19 10:01:00.003: EEM: ctx=1:(1,1,1)
Jul 19 10:01:00.003: EEM: server processes multi events: corr_res=1, cur_tcnt=1, cmp_tcnt
UC540T#=1
Jul 19 10:01:00.003: fh_schedule_callback: fh_schedule_callback: cc=86EDB794 prev_epc=0; epc=88E7E124
Jul 19 10:01:00.003: EEM server schedules callbacks: policy_type: 2
Jul 19 10:01:00.003: EEM server schedules one event: policy_type=applet epc=88E7E124.
Jul 19 10:01:00.003: fh_schedule_a_callback: EEM callback policy EVENT1 has been scheduled to run. fdid: 12 sn: 0 jobid: 1
Jul 19 10:01:00.003: fh_io_msg: received FH_MSG_API_INIT; jobid=12, processid=218, client=2, job name=EEM Callback Thread
Jul 19 10:01:00.007: fh_server: fh_io_msg: received msg FH_MSG_EVENT_REQINFO_MULTI from client 2 pclient 1
Jul 19 10:01:00.007: Registering tag: id: 1
Jul 19 10:01:00.007: Pushing tag on to stack
Jul 19 10:01:00.007: open tag is
Jul 19 10:01:00.007: Pushing tag on to stack
Jul 19 10:01:00.007: open tag is
Jul 19 10:01:00.007: Pushing tag on to stack
Jul 19 10:01:00.007: open tag is
Jul 19 10:01:00.007: Name-Value Pair: Name=(pdir) Value=(_event_type)
Jul 19 10:01:00.007: Name-Value Pair: Name=(tcl) Value=(event_type)
Jul 19 10:01:00.007: Pushing tag on to stack
Jul 19 10:01:00.007: open tag is
Jul 19 10:01:00.007: Popping tag off stack
Jul 19 10:01:00.007: close tag is
Jul 19 10:01:00.007: Popping tag off stack
Jul 19 10:01:00.007: close tag is
Jul 19 10:01:00.007: Pushing tag on to stack
Jul 19 10:01:00.007: open tag is
Jul 19 10:01:00.007: Popping tag off stack
Jul 19 10:01:00.007: close tag is
Jul 19 10:01:00.007: Pushing tag on to stack
Jul 19 10:01:00.007: open tag is
Jul 19 10:01:00.007: Name-Value Pair: Name=(pdir) Value=(_event_type_string)
Jul 19 10:01:00.007: Name-Value Pair: Name=(tcl) Value=(event_type_string)
Jul 19 10:01:00.007: Pushing tag on to stack
Jul 19 10:01:00.007: open tag is
Jul 19 10:01:00.007: Popping tag off stack
Jul 19 10:01:00.007: close tag is
Jul 19 10:01:00.007: Popping tag off stack
Jul 19 10:01:00.007: close tag is
Jul 19 10:01:00.007: Pushing tag on to stack
Jul 19 10:01:00.007: open tag is
Jul 19 10:01:00.007: Name-Value Pair: Name=(pdir) Value=(_event_severity)
Jul 19 10:01:00.007: Name-Value Pair: Name=(tcl) Value=(event_severity)
Jul 19 10:01:00.007: Pushing tag on to stack
Jul 19 10:01:00.007: open tag is
Jul 19 10:01:00.007: Popping tag off stack
Jul 19 10:01:00.007: close tag is
Jul 19 10:01:00.007: Popping tag off stack
Jul 19 10:01:00.007: close tag is
Jul 19 10:01:00.007: Pushing tag on to stack
Jul 19 10:01:00.007: open tag is
Jul 19 10:01:00.007: Popping tag off stack
Jul 19 10:01:00.007: close tag is
Jul 19 10:01:00.007: Popping tag off stack
Jul 19 10:01:00.007: close tag is
Jul 19 10:01:00.007: Pushing tag on to stack
Jul 19 10:01:00.007: open tag is
Jul 19 10:01:00.007: Pushing tag on to stack
Jul 19 10:01:00.007: open tag is
Jul 19 10:01:00.007: Name-Value Pair: Name=(pdir) Value=(_timer_type)
Jul 19 10:01:00.007: Name-Value Pair: Name=(tcl) Value=(timer_type)
Jul 19 10:01:00.007: Pushing tag on to stack
Jul 19 10:01:00.007: open tag is
Jul 19 10:01:00.007: Popping tag off stack
Jul 19 10:01:00.007: close tag is
Jul 19 10:01:00.007: Popping tag off stack
Jul 19 10:01:00.007: close tag is
Jul 19 10:01:00.007: Pushing tag on to stack
Jul 19 10:01:00.007: open tag is
Jul 19 10:01:00.007: Name-Value Pair: Name=(pdir) Value=(_timer_name)
Jul 19 10:01:00.007: Name-Value Pair: Name=(tcl) Value=(timer_name)
Jul 19 10:01:00.007: Pushing tag on to stack
Jul 19 10:01:00.007: open tag is
Jul 19 10:01:00.007: Popping tag off stack
Jul 19 10:01:00.007: close tag is
Jul 19 10:01:00.007: Popping tag off stack
Jul 19 10:01:00.007: close tag is
Jul 19 10:01:00.007: Pushing tag on to stack
Jul 19 10:01:00.007: open tag is
Jul 19 10:01:00.007: Name-Value Pair: Name=(pdir) Value=(_timer_time)
Jul 19 10:01:00.007: Name-Value Pair: Name=(tcl) Value=(timer_time)
Jul 19 10:01:00.007: Pushing tag on to stack
Jul 19 10:01:00.007: open tag is
Jul 19 10:01:00.007: Popping tag off stack
Jul 19 10:01:00.007: close tag is
Jul 19 10:01:00.007: Popping tag off stack
Jul 19 10:01:00.007: close tag is
Jul 19 10:01:00.007: Pushing tag on to stack
Jul 19 10:01:00.011: open tag is
Jul 19 10:01:00.011: Name-Value Pair: Name=(pdir) Value=(_timer_time_sec)
Jul 19 10:01:00.011: Name-Value Pair: Name=(tcl) Value=(timer_time_sec)
Jul 19 10:01:00.011: Pushing tag on to stack
Jul 19 10:01:00.011: open tag is
Jul 19 10:01:00.011: Popping tag off stack
Jul 19 10:01:00.011: close tag is
Jul 19 10:01:00.011: Popping tag off stack
Jul 19 10:01:00.011: close tag is
Jul 19 10:01:00.011: Pushing tag on to stack
Jul 19 10:01:00.011: open tag is
Jul 19 10:01:00.011: Name-Value Pair: Name=(pdir) Value=(_timer_time_msec)
Jul 19 10:01:00.011: Name-Value Pair: Name=(tcl) Value=(timer_time_msec)
Jul 19 10:01:00.011: Pushing tag on to stack
Jul 19 10:01:00.011: open tag is
Jul 19 10:01:00.011: Popping tag off stack
Jul 19 10:01:00.011: close tag is
Jul 19 10:01:00.011: Popping tag off stack
Jul 19 10:01:00.011: close tag is
Jul 19 10:01:00.011: Pushing tag on to stack
Jul 19 10:01:00.011: open tag is
Jul 19 10:01:00.011: Name-Value Pair: Name=(pdir) Value=(_timer_remain)
Jul 19 10:01:00.011: Name-Value Pair: Name=(tcl) Value=(timer_remain)
Jul 19 10:01:00.011: Pushing tag on to stack
Jul 19 10:01:00.011: open tag is
Jul 19 10:01:00.011: Popping tag off stack
Jul 19 10:01:00.011: close tag is
Jul 19 10:01:00.011: Popping tag off stack
Jul 19 10:01:00.011: close tag is
Jul 19 10:01:00.011: Pushing tag on to stack
Jul 19 10:01:00.011: open tag is
Jul 19 10:01:00.011: Name-Value Pair: Name=(pdir) Value=(_timer_remain_sec)
Jul 19 10:01:00.011: Name-Value Pair: Name=(tcl) Value=(timer_remain_sec)
Jul 19 10:01:00.011: Pushing tag on to stack
Jul 19 10:01:00.011: open tag is
Jul 19 10:01:00.011: Popping tag off stack
Jul 19 10:01:00.011: close tag is
Jul 19 10:01:00.011: Popping tag off stack
Jul 19 10:01:00.011: close tag is
Jul 19 10:01:00.011: Pushing tag on to stack
Jul 19 10:01:00.011: open tag is
Jul 19 10:01:00.011: Name-Value Pair: Name=(pdir) Value=(_timer_remain_msec)
Jul 19 10:01:00.011: Name-Value Pair: Name=(tcl) Value=(timer_remain_msec)
Jul 19 10:01:00.011: Pushing tag on to stack
Jul 19 10:01:00.011: open tag is
Jul 19 10:01:00.011: Popping tag off stack
Jul 19 10:01:00.011: close tag is
Jul 19 10:01:00.011: Popping tag off stack
Jul 19 10:01:00.011: close tag is
Jul 19 10:01:00.011: Popping tag off stack
Jul 19 10:01:00.011: close tag is
Jul 19 10:01:00.011: Popping tag off stack
Jul 19 10:01:00.011: close tag is
Jul 19 10:01:00.011: EEM: policy_dir xml builtin: name:_event_type value:24
Jul 19 10:01:00.011: EEM: policy_dir xml builtin: name:_event_type_string value:timer cron
Jul 19 10:01:00.011: EEM: policy_dir xml builtin: name:_event_severity value:severity-normal
Jul 19 10:01:00.011: EEM: policy_dir xml builtin: name:_timer_type value:cron
Jul 19 10:01:00.011: EEM: policy_dir xml builtin: name:_timer_name value:{EVENT1}
Jul 19 10:01:00.011: EEM: policy_dir xml builtin: name:_timer_time value:3488522460.005
Jul 19 10:01:00.011: EEM: policy_dir xml builtin: name:_timer_time_sec value:3488522460
Jul 19 10:01:00.011: EEM: policy_dir xml builtin: name:_timer_time_msec value:5
Jul 19 10:01:00.011: EEM: policy_dir xml builtin: name:_timer_remain value:0.000
Jul 19 10:01:00.011: EEM: policy_dir xml builtin: name:_timer_remain_sec value:0
Jul 19 10:01:00.011: EEM: policy_dir xml builtin: name:_timer_remain_msec value:0
Jul 19 10:01:00.011: %HA_EM-6-LOG: EVENT1 : DEBUG(cli_lib) : : CTL : cli_open called.
Jul 19 10:01:00.015: %HA_EM-6-LOG: EVENT1 : DEBUG(cli_lib) : : OUT : UC540T#
Jul 19 10:01:00.015: %HA_EM-6-LOG: EVENT1 : DEBUG(cli_lib) : : IN  : UC540T#enable
Jul 19 10:01:00.015: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 10:01:00.015: eem_no_scan flag set, skipping scan of command_string=check_eem_cli_policy_handler
Jul 19 10:01:00.027: %HA_EM-6-LOG: EVENT1 : DEBUG(cli_lib) : : OUT : UC540T#
Jul 19 10:01:00.027: %HA_EM-6-LOG: EVENT1 : DEBUG(cli_lib) : : IN  : UC540T#config t
Jul 19 10:01:00.027: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 10:01:00.027: eem_no_scan flag set, skipping scan of command_string=check_eem_cli_policy_handler
Jul 19 10:01:00.039: %HA_EM-6-LOG: EVENT1 : DEBUG(cli_lib) : : OUT : Enter configuration commands, one per line.  End with CNTL/Z.
Jul 19 10:01:00.039: %HA_EM-6-LOG: EVENT1 : DEBUG(cli_lib) : : OUT : UC540T(config)#
Jul 19 10:01:00.039: %HA_EM-6-LOG: EVENT1 : DEBUG(cli_lib) : : IN  : UC540T(config)#dial-peer voice 1
Jul 19 10:01:00.043: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 10:01:00.043: eem_no_scan flag set, skipping scan of command_string=check_eem_cli_policy_handler
Jul 19 10:01:00.051: %HA_EM-6-LOG: EVENT1 : DEBUG(cli_lib) : : OUT : UC540T(config-dial-peer)#
Jul 19 10:01:00.051: %HA_EM-6-LOG: EVENT1 : DEBUG(cli_lib) : : IN  : UC540T(config-dial-peer)#sh
Jul 19 10:01:00.055: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 10:01:00.055: eem_no_scan flag set, skipping scan of command_string=check_eem_cli_policy_handler
Jul 19 10:01:00.063: %HA_EM-6-LOG: EVENT1 : DEBUG(cli_lib) : : OUT : UC540T(config-dial-peer)#
Jul 19 10:01:00.063: %HA_EM-6-LOG: EVENT1 : DEBUG(cli_lib) : : IN  : UC540T(config-dial-peer)#exit
Jul 19 10:01:00.063: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 10:01:00.063: eem_no_scan flag set, skipping scan of command_string=check_eem_cli_policy_handler
Jul 19 10:01:00.075: %HA_EM-6-LOG: EVENT1 : DEBUG(cli_lib) : : OUT : UC540T(config)#
Jul 19 10:01:00.075: %HA_EM-6-LOG: EVENT1 : DEBUG(cli_lib) : : IN  : UC540T(config)#dial-peer voice 2
Jul 19 10:01:00.079: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 10:01:00.079: eem_no_scan flag set, skipping scan of command_string=check_eem_cli_policy_handler
Jul 19 10:01:00.087: %HA_EM-6-LOG: EVENT1 : DEBUG(cli_lib) : : OUT : UC540T(config-dial-peer)#
Jul 19 10:01:00.087: %HA_EM-6-LOG: EVENT1 : DEBUG(cli_lib) : : IN  : UC540T(config-dial-peer)#no sh
Jul 19 10:01:00.087: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 10:01:00.087: eem_no_scan flag set, skipping scan of command_string=check_eem_cli_policy_handler
Jul 19 10:01:00.099: %HA_EM-6-LOG: EVENT1 : DEBUG(cli_lib) : : OUT : UC540T(config-dial-peer)#
Jul 19 10:01:00.099: %HA_EM-6-LOG: EVENT1 : DEBUG(cli_lib) : : CTL : cli_close called.
Jul 19 10:01:00.099: fh_server: fh_io_msg: received msg FH_MSG_CALLBACK_DONE from client 2 pclient 1
Jul 19 10:01:00.099: fh_io_msg: EEM callback policy EVENT1 has ended with normal exit status of 0x0
Jul 19 10:01:00.099: EEM: server decrements in use thread: jobid=1 rule id=2 in use thread=0.
Jul 19 10:01:00.099: fh_schedule_callback: fh_schedule_callback: cc=86EDB794 prev_epc=88E7E124; epc=0
Jul 19 10:01:00.099: EEM server schedules callbacks: policy_type: 2
Jul 19 10:01:00.099: fh_schedule_policy: prev_epc=0x0; epc=0x0
Jul 19 10:01:00.099: EEM server schedules scripts
Jul 19 10:01:00.103: %SYS-5-CONFIG_I: Configured from console by vty0
Jul 19 10:01:00.103: fh_fd_config_event_match: num_matches = 0
Jul 19 10:01:00.103: fh_fd_config_event_notify:
Jul 19 10:01:00.103: fh_server: fh_io_msg: received msg FH_MSG_API_CLOSE from client 2 pclient 1
Jul 19 10:01:00.103: fh_io_msg: received FH_MSG_API_CLOSE client=2
Jul 19 10:01:00.103: fh_fd_syslog_event_match: num_matches = 0
Jul 19 10:01:00.103: fh_fd_data_syslog: num_matches = 0
UC540T#
UC540T#show dial-peer voice summ
dial-peer hunt 0
             AD                                    PRE PASS                OUT
TAG    TYPE  MIN  OPER PREFIX    DEST-PATTERN      FER THRU SESS-TARGET    STAT PORT    KEEPALIVE
1      voip  down down           8...               0  syst ipv4:192.168.20.2  
20001  pots  up   up             2000$              0                           50/0/1
20002  pots  up   up             2001$              0                           50/0/2
20003  pots  up   up             2003$              0                           50/0/3
20004  pots  up   up             2004$              0                           50/0/4
20005  pots  up   up             2005$              0                           50/0/5
20006  pots  up   up             2006$              0                           50/0/6
20007  pots  up   up             2007$              0                           50/0/7
20008  pots  up   up             2008$              0                           50/0/8
20009  pots  up   up             2009$              0                           50/0/9
40001  voip  up   up             9000               0  syst ipv4:192.168.10.2:58
2      voip  up   up             8...               0  syst ipv4:192.168.9.2   
UC540T#
Jul 19 10:01:20.227: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 10:01:20.231: check_eem_cli_policy_handler: command_string=show dial-peer voice summary
Jul 19 10:01:20.231: check_eem_cli_policy_handler: num_matches = 0, response_code = 1


Now chaging the time


UC540T#clock set 13:00:00 19 JUL 2010
UC540T#
Jul 19 10:03:33.911: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 10:03:33.911: check_eem_cli_policy_handler: command_string=clock set 13:00:00  19 JUL  2010
Jul 19 10:03:33.911: check_eem_cli_policy_handler: num_matches = 0, response_code = 1
Jul 19 13:00:00.000: EEM: Inside fh_server_clock_changed
Jul 19 13:00:00.000: %SYS-6-CLOCKUPDATE: System clock has been updated from 10:03:33 UTC Mon Jul 19 2010 to 13:00:00 UTC Mon Jul 19 2010, configured from console by console.
UC540T#
Jul 19 13:00:00.000: fh_fd_syslog_event_match: num_matches = 0
Jul 19 13:00:00.000: fh_fd_data_syslog: num_matches = 0
UC540T#show clock
13:00:14.811 UTC Mon Jul 19 2010
UC540T#
Jul 19 13:00:14.811: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 13:00:14.811: check_eem_cli_policy_handler: command_string=show clock
Jul 19 13:00:14.811: check_eem_cli_policy_handler: num_matches = 0, response_code = 1
UC540T#
UC540T#show clock
13:00:28.227 UTC Mon Jul 19 2010
UC540T#
Jul 19 13:00:28.227: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 13:00:28.227: check_eem_cli_policy_handler: command_string=show clock
Jul 19 13:00:28.227: check_eem_cli_policy_handler: num_matches = 0, response_code = 1
UC540T#show clock
13:00:40.163 UTC Mon Jul 19 2010
UC540T#
Jul 19 13:00:40.163: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 13:00:40.163: check_eem_cli_policy_handler: command_string=show clock
Jul 19 13:00:40.163: check_eem_cli_policy_handler: num_matches = 0, response_code = 1
UC540T#
Jul 19 13:00:59.999: fh_fd_timer_process_async
Jul 19 13:00:59.999: cron_tick: subscriber(0)=0x884B1ECC
Jul 19 13:00:59.999: cron_tick info publish:  re=0x884B1ECC reg q_size=2
Jul 19 13:00:59.999: cron_tick: num_matches 1
Jul 19 13:00:59.999: fh_send_server_sig_hndlr: received a pulse from timer on node0/0 with fdid: 12
Jul 19 13:00:59.999: fh_send_timer_fd_msg: msg_type=64
Jul 19 13:00:59.999: fh_send_timer_fd_msg: sval=0
Jul 19 13:00:59.999: fh_send_server_sig_hndlr: received FH_MSG_EVENT_PUBLISH
Jul 19 13:00:59.999: EEM: server processes multi events: timewin=1, sync_flag=0, ec_index=0, cmp_occ=1
Jul 19 13:00:59.999: EEM: ctx=2:(2,1,1)
Jul 19 13:00:59.999: EEM: server processes multi events: corr_res=1, cur_tcnt=1, cmp_tcnt=1
Jul 19 13:00:59.999: fh_schedule_callback: fh_schedule_callback: cc=86EDB794 prev_epc=0; epc=88E7E124
Jul 19 13:00:59.999: EEM server schedules callbacks: policy_type: 2
Jul 19 13:00:59.999: EEM server schedules one event: policy_type=applet ep
UC540T#c=88E7E124.
Jul 19 13:00:59.999: fh_schedule_a_callback: EEM callback policy EVENT2 has been scheduled to run. fdid: 12 sn: 1 jobid: 2
Jul 19 13:00:59.999: fh_io_msg: received FH_MSG_API_INIT; jobid=13, processid=218, client=3, job name=EEM Callback Thread
Jul 19 13:00:59.999: fh_server: fh_io_msg: received msg FH_MSG_EVENT_REQINFO_MULTI from client 3 pclient 1
Jul 19 13:01:00.003: Registering tag: id: 1
Jul 19 13:01:00.003: Pushing tag on to stack
Jul 19 13:01:00.003: open tag is
Jul 19 13:01:00.003: Pushing tag on to stack
Jul 19 13:01:00.003: open tag is
Jul 19 13:01:00.003: Pushing tag on to stack
Jul 19 13:01:00.003: open tag is
Jul 19 13:01:00.003: Name-Value Pair: Name=(pdir) Value=(_event_type)
Jul 19 13:01:00.003: Name-Value Pair: Name=(tcl) Value=(event_type)
Jul 19 13:01:00.003: Pushing tag on to stack
Jul 19 13:01:00.003: open tag is
Jul 19 13:01:00.003: Popping tag off stack
Jul 19 13:01:00.003: close tag is
Jul 19 13:01:00.003: Popping tag off stack
Jul 19 13:01:00.003: close tag is
Jul 19 13:01:00.003: Pushing tag on to stack
Jul 19 13:01:00.003: open tag is
Jul 19 13:01:00.003: Popping tag off stack
Jul 19 13:01:00.003: close tag is
Jul 19 13:01:00.003: Pushing tag on to stack
Jul 19 13:01:00.003: open tag is
Jul 19 13:01:00.003: Name-Value Pair: Name=(pdir) Value=(_event_type_string)
Jul 19 13:01:00.003: Name-Value Pair: Name=(tcl) Value=(event_type_string)
Jul 19 13:01:00.003: Pushing tag on to stack
Jul 19 13:01:00.003: open tag is
Jul 19 13:01:00.003: Popping tag off stack
Jul 19 13:01:00.003: close tag is
Jul 19 13:01:00.003: Popping tag off stack
Jul 19 13:01:00.003: close tag is
Jul 19 13:01:00.003: Pushing tag on to stack
Jul 19 13:01:00.003: open tag is
Jul 19 13:01:00.003: Name-Value Pair: Name=(pdir) Value=(_event_severity)
Jul 19 13:01:00.003: Name-Value Pair: Name=(tcl) Value=(event_severity)
Jul 19 13:01:00.003: Pushing tag on to stack
Jul 19 13:01:00.003: open tag is
Jul 19 13:01:00.003: Popping tag off stack
Jul 19 13:01:00.003: close tag is
Jul 19 13:01:00.003: Popping tag off stack
Jul 19 13:01:00.003: close tag is
Jul 19 13:01:00.003: Pushing tag on to stack
Jul 19 13:01:00.003: open tag is
Jul 19 13:01:00.003: Popping tag off stack
Jul 19 13:01:00.003: close tag is
Jul 19 13:01:00.003: Popping tag off stack
Jul 19 13:01:00.003: close tag is
Jul 19 13:01:00.003: Pushing tag on to stack
Jul 19 13:01:00.003: open tag is
Jul 19 13:01:00.003: Pushing tag on to stack
Jul 19 13:01:00.003: open tag is
Jul 19 13:01:00.003: Name-Value Pair: Name=(pdir) Value=(_timer_type)
Jul 19 13:01:00.003: Name-Value Pair: Name=(tcl) Value=(timer_type)
Jul 19 13:01:00.003: Pushing tag on to stack
Jul 19 13:01:00.003: open tag is
Jul 19 13:01:00.003: Popping tag off stack
Jul 19 13:01:00.003: close tag is
Jul 19 13:01:00.003: Popping tag off stack
Jul 19 13:01:00.003: close tag is
Jul 19 13:01:00.003: Pushing tag on to stack
Jul 19 13:01:00.003: open tag is
Jul 19 13:01:00.003: Name-Value Pair: Name=(pdir) Value=(_timer_name)
Jul 19 13:01:00.003: Name-Value Pair: Name=(tcl) Value=(timer_name)
Jul 19 13:01:00.003: Pushing tag on to stack
Jul 19 13:01:00.003: open tag is
Jul 19 13:01:00.003: Popping tag off stack
Jul 19 13:01:00.003: close tag is
Jul 19 13:01:00.003: Popping tag off stack
Jul 19 13:01:00.003: close tag is
Jul 19 13:01:00.003: Pushing tag on to stack
Jul 19 13:01:00.003: open tag is
Jul 19 13:01:00.003: Name-Value Pair: Name=(pdir) Value=(_timer_time)
Jul 19 13:01:00.003: Name-Value Pair: Name=(tcl) Value=(timer_time)
Jul 19 13:01:00.003: Pushing tag on to stack
Jul 19 13:01:00.003: open tag is
Jul 19 13:01:00.003: Popping tag off stack
Jul 19 13:01:00.003: close tag is
Jul 19 13:01:00.003: Popping tag off stack
Jul 19 13:01:00.003: close tag is
Jul 19 13:01:00.003: Pushing tag on to stack
Jul 19 13:01:00.003: open tag is
Jul 19 13:01:00.003: Name-Value Pair: Name=(pdir) Value=(_timer_time_sec)
Jul 19 13:01:00.003: Name-Value Pair: Name=(tcl) Value=(timer_time_sec)
Jul 19 13:01:00.003: Pushing tag on to stack
Jul 19 13:01:00.003: open tag is
Jul 19 13:01:00.003: Popping tag off stack
Jul 19 13:01:00.003: close tag is
Jul 19 13:01:00.003: Popping tag off stack
Jul 19 13:01:00.003: close tag is
Jul 19 13:01:00.003: Pushing tag on to stack
Jul 19 13:01:00.003: open tag is
Jul 19 13:01:00.003: Name-Value Pair: Name=(pdir) Value=(_timer_time_msec)
Jul 19 13:01:00.003: Name-Value Pair: Name=(tcl) Value=(timer_time_msec)
Jul 19 13:01:00.003: Pushing tag on to stack
Jul 19 13:01:00.003: open tag is
Jul 19 13:01:00.003: Popping tag off stack
Jul 19 13:01:00.003: close tag is
Jul 19 13:01:00.003: Popping tag off stack
Jul 19 13:01:00.003: close tag is
Jul 19 13:01:00.003: Pushing tag on to stack
Jul 19 13:01:00.003: open tag is
Jul 19 13:01:00.003: Name-Value Pair: Name=(pdir) Value=(_timer_remain)
Jul 19 13:01:00.003: Name-Value Pair: Name=(tcl) Value=(timer_remain)
Jul 19 13:01:00.003: Pushing tag on to stack
Jul 19 13:01:00.003: open tag is
Jul 19 13:01:00.003: Popping tag off stack
Jul 19 13:01:00.003: close tag is
Jul 19 13:01:00.003: Popping tag off stack
Jul 19 13:01:00.003: close tag is
Jul 19 13:01:00.003: Pushing tag on to stack
Jul 19 13:01:00.003: open tag is
Jul 19 13:01:00.007: Name-Value Pair: Name=(pdir) Value=(_timer_remain_sec)
Jul 19 13:01:00.007: Name-Value Pair: Name=(tcl) Value=(timer_remain_sec)
Jul 19 13:01:00.007: Pushing tag on to stack
Jul 19 13:01:00.007: open tag is
Jul 19 13:01:00.007: Popping tag off stack
Jul 19 13:01:00.007: close tag is
Jul 19 13:01:00.007: Popping tag off stack
Jul 19 13:01:00.007: close tag is
Jul 19 13:01:00.007: Pushing tag on to stack
Jul 19 13:01:00.007: open tag is
Jul 19 13:01:00.007: Name-Value Pair: Name=(pdir) Value=(_timer_remain_msec)
Jul 19 13:01:00.007: Name-Value Pair: Name=(tcl) Value=(timer_remain_msec)
Jul 19 13:01:00.007: Pushing tag on to stack
Jul 19 13:01:00.007: open tag is
Jul 19 13:01:00.007: Popping tag off stack
Jul 19 13:01:00.007: close tag is
Jul 19 13:01:00.007: Popping tag off stack
Jul 19 13:01:00.007: close tag is
Jul 19 13:01:00.007: Popping tag off stack
Jul 19 13:01:00.007: close tag is
Jul 19 13:01:00.007: Popping tag off stack
Jul 19 13:01:00.007: close tag is
Jul 19 13:01:00.007: EEM: policy_dir xml builtin: name:_event_type value:24
Jul 19 13:01:00.007: EEM: policy_dir xml builtin: name:_event_type_string value:timer cron
Jul 19 13:01:00.007: EEM: policy_dir xml builtin: name:_event_severity value:severity-normal
Jul 19 13:01:00.007: EEM: policy_dir xml builtin: name:_timer_type value:cron
Jul 19 13:01:00.007: EEM: policy_dir xml builtin: name:_timer_name value:{EVENT2}
Jul 19 13:01:00.007: EEM: policy_dir xml builtin: name:_timer_time value:3488533260.000
Jul 19 13:01:00.007: EEM: policy_dir xml builtin: name:_timer_time_sec value:3488533260
Jul 19 13:01:00.007: EEM: policy_dir xml builtin: name:_timer_time_msec value:0
Jul 19 13:01:00.007: EEM: policy_dir xml builtin: name:_timer_remain value:0.000
Jul 19 13:01:00.007: EEM: policy_dir xml builtin: name:_timer_remain_sec value:0
Jul 19 13:01:00.007: EEM: policy_dir xml builtin: name:_timer_remain_msec value:0
Jul 19 13:01:00.007: %HA_EM-6-LOG: EVENT2 : DEBUG(cli_lib) : : CTL : cli_open called.
Jul 19 13:01:00.007: %HA_EM-6-LOG: EVENT2 : DEBUG(cli_lib) : : OUT : UC540T#
Jul 19 13:01:00.011: %HA_EM-6-LOG: EVENT2 : DEBUG(cli_lib) : : IN  : UC540T#enable
Jul 19 13:01:00.011: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 13:01:00.011: eem_no_scan flag set, skipping scan of command_string=check_eem_cli_policy_handler
Jul 19 13:01:00.023: %HA_EM-6-LOG: EVENT2 : DEBUG(cli_lib) : : OUT : UC540T#
Jul 19 13:01:00.023: %HA_EM-6-LOG: EVENT2 : DEBUG(cli_lib) : : IN  : UC540T#config t
Jul 19 13:01:00.023: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 13:01:00.023: eem_no_scan flag set, skipping scan of command_string=check_eem_cli_policy_handler
Jul 19 13:01:00.035: %HA_EM-6-LOG: EVENT2 : DEBUG(cli_lib) : : OUT : Enter configuration commands, one per line.  End with CNTL/Z.
Jul 19 13:01:00.035: %HA_EM-6-LOG: EVENT2 : DEBUG(cli_lib) : : OUT : UC540T(config)#
Jul 19 13:01:00.035: %HA_EM-6-LOG: EVENT2 : DEBUG(cli_lib) : : IN  : UC540T(config)#dial-peer voice 1
Jul 19 13:01:00.039: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 13:01:00.039: eem_no_scan flag set, skipping scan of command_string=check_eem_cli_policy_handler
Jul 19 13:01:00.047: %HA_EM-6-LOG: EVENT2 : DEBUG(cli_lib) : : OUT : UC540T(config-dial-peer)#
Jul 19 13:01:00.047: %HA_EM-6-LOG: EVENT2 : DEBUG(cli_lib) : : IN  : UC540T(config-dial-peer)#no sh
Jul 19 13:01:00.047: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 13:01:00.047: eem_no_scan flag set, skipping scan of command_string=check_eem_cli_policy_handler
Jul 19 13:01:00.059: %HA_EM-6-LOG: EVENT2 : DEBUG(cli_lib) : : OUT : UC540T(config-dial-peer)#
Jul 19 13:01:00.059: %HA_EM-6-LOG: EVENT2 : DEBUG(cli_lib) : : IN  : UC540T(config-dial-peer)#exit
Jul 19 13:01:00.059: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 13:01:00.059: eem_no_scan flag set, skipping scan of command_string=check_eem_cli_policy_handler
Jul 19 13:01:00.071: %HA_EM-6-LOG: EVENT2 : DEBUG(cli_lib) : : OUT : UC540T(config)#
Jul 19 13:01:00.071: %HA_EM-6-LOG: EVENT2 : DEBUG(cli_lib) : : IN  : UC540T(config)#dial-peer voice 2
Jul 19 13:01:00.075: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 13:01:00.075: eem_no_scan flag set, skipping scan of command_string=check_eem_cli_policy_handler
Jul 19 13:01:00.083: %HA_EM-6-LOG: EVENT2 : DEBUG(cli_lib) : : OUT : UC540T(config-dial-peer)#
Jul 19 13:01:00.083: %HA_EM-6-LOG: EVENT2 : DEBUG(cli_lib) : : IN  : UC540T(config-dial-peer)#sh
Jul 19 13:01:00.083: cli_history_entry_add: free_hist_list size=0, hist_list size=7
Jul 19 13:01:00.083: eem_no_scan flag set, skipping scan of command_string=check_eem_cli_policy_handler
Jul 19 13:01:00.095: %HA_EM-6-LOG: EVENT2 : DEBUG(cli_lib) : : OUT : UC540T(config-dial-peer)#
Jul 19 13:01:00.095: %HA_EM-6-LOG: EVENT2 : DEBUG(cli_lib) : : CTL : cli_close called.
Jul 19 13:01:00.095: fh_server: fh_io_msg: received msg FH_MSG_CALLBACK_DONE from client 3 pclient 1
Jul 19 13:01:00.095: fh_io_msg: EEM callback policy EVENT2 has ended with normal exit status of 0x0
Jul 19 13:01:00.095: EEM: server decrements in use thread: jobid=2 rule id=2 in use thread=0.
Jul 19 13:01:00.095: fh_schedule_callback: fh_schedule_callback: cc=86EDB794 prev_epc=88E7E124; epc=0
Jul 19 13:01:00.095: EEM server schedules callbacks: policy_type: 2
Jul 19 13:01:00.095: fh_schedule_policy: prev_epc=0x0; epc=0x0
Jul 19 13:01:00.095: EEM server schedules scripts
Jul 19 13:01:00.095: fh_server: fh_io_msg: received msg FH_MSG_API_CLOSE from client 3 pclient 1
Jul 19 13:01:00.095: fh_io_msg: received FH_MSG_API_CLOSE client=3
Jul 19 13:01:00.099: %SYS-5-CONFIG_I: Configured from console by vty0
Jul 19 13:01:00.099: fh_fd_config_event_match: num_matches = 0
Jul 19 13:01:00.099: fh_fd_config_event_notify:
Jul 19 13:01:00.099: fh_fd_syslog_event_match: num_matches = 0
Jul 19 13:01:00.099: fh_fd_data_syslog: num_matches = 0
UC540T#
UC540T#show dial-peer voice summ    
dial-peer hunt 0
             AD                                    PRE PASS                OUT
TAG    TYPE  MIN  OPER PREFIX    DEST-PATTERN      FER THRU SESS-TARGET    STAT PORT    KEEPALIVE
1      voip  up   up             8...               0  syst ipv4:192.168.20.2  
20001  pots  up   up             2000$              0                           50/0/1
20002  pots  up   up             2001$              0                           50/0/2
20003  pots  up   up             2003$              0                           50/0/3
20004  pots  up   up             2004$              0                           50/0/4
20005  pots  up   up             2005$              0                           50/0/5
20006  pots  up   up             2006$              0                           50/0/6
20007  pots  up   up             2007$              0                           50/0/7
20008  pots  up   up             2008$              0                           50/0/8
20009  pots  up   up             2009$              0                           50/0/9
40001  voip  up   up             9000               0  syst ipv4:192.168.10.2:58
2      voip  down down           8...               0  syst ipv4:192.168.9.2   
UC540T#


Please not that Dial-peer voice 2 now is down while 1 is up


Please rate if this post was helpful


Thank you

Victor.-

Antonio Macia R... Mon, 07/19/2010 - 13:08
User Badges:

Thanks Victor,


It can help me, I will try it.

In my opinion Cisco should consider adding this option in the outgoing/incoming plans for making these kind of configurations easier to the users.


Regards.

David Hornstein Tue, 07/20/2010 - 23:03
User Badges:
  • Gold, 750 points or more

Hi Victor,


Event manager...wow .


Great stuff...regards Dave

Actions

This Discussion