cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2590
Views
1
Helpful
2
Replies

Loading e164-pattern map file from a url

James Hawkins
Level 8
Level 8

Hello,

I have started using e164-pattern maps for my CUBE configs and find them very useful.

Up until now I have put the number entries directly into the router config but now want to start putting them into a text file on a server where they will be easier to manage.

I have got this working in a lab environment using both tftp and http servers.

My question is about how and when the router decides to load and parse the text file.

If I use a tftp server the router seems to load the file at regular intervals but, if I use a http server, it only seems to read the file once and needs to be forced to update the file using the command shown below:

 

voice class e164-pattern-map load pattern-map-group-id 

 

Does anyone know if the file should (or can be configured to) be read at regular intervals? - I am not sure whether when I use TFTP it is actually doing this.

Ideally I would like to use HTTP and get the router to automatically load the file every 60 seconds.

 

My use case is to allow helpdesk staff to modify call routing without having to log onto the CUBE and make changes via the CLI. This customer has two CUCM clusters integrated with the CUBE and I want them to be able to send specific calls to specific clusters.

This document is what I have used to configure the system so far:

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/voice/dialpeer/configuration/xe-3s/vd-xe-3s-book/vd-mdp-dialpeer.html

 

Thanks

 

1 Accepted Solution

Accepted Solutions

Jonathan Schulenberg
Hall of Fame
Hall of Fame
My understanding is that there is no auto refresh cadence; the file is parsed when first configured, on subsequent reloads, and on-demand with the command you mentioned above.

In my opinion, reloading it automatically is as likely to cause an outage as it is to save the helpdesk one extra step. If you want this to be automatic there should be a user interface that performs input validation to protect against syntax or other PEBKAC mistakes causing an outage. After passing validation the application can post the file and issue the command on behalf of the user.

If you’re set on making it automatic then look at Embedded Event Management scripts which can be scheduled using either a watchdog or CRON timer.

View solution in original post

2 Replies 2

Jonathan Schulenberg
Hall of Fame
Hall of Fame
My understanding is that there is no auto refresh cadence; the file is parsed when first configured, on subsequent reloads, and on-demand with the command you mentioned above.

In my opinion, reloading it automatically is as likely to cause an outage as it is to save the helpdesk one extra step. If you want this to be automatic there should be a user interface that performs input validation to protect against syntax or other PEBKAC mistakes causing an outage. After passing validation the application can post the file and issue the command on behalf of the user.

If you’re set on making it automatic then look at Embedded Event Management scripts which can be scheduled using either a watchdog or CRON timer.

Hi Jonathan,

Thanks for your answer. After some consideration I agree with you that allowing editing of a text file without any validation is not a good idea.

I guess if I am hosting it on a web site then the best option would be to have some form of back end database which could generate a text file.

Thanks again.