[asterisk-users] How to run a batch file on the asterisk CLI

Nilesh Londhe lvnilesh at gmail.com
Wed Aug 30 20:07:02 MST 2006


On the asterisk CLI, is there a way to invoke a sequence of CLI commands ala
a batch job for the CLI to execute?

Here is what I am trying to do on the CLI...and I am looking to automate
this via a batch process.

[root at asterisk ~]# asterisk -r
=========================================================================
Connected to Asterisk 1.2.10 currently running on asterisk (pid = 3042)
Verbosity is at least 3
asterisk*CLI> database put cidname 18005551212 "Char String"
asterisk*CLI> database put cidname 18005551213 "another char string"
asterisk*CLI> database put cidname 18005551214 "Char String"
...
 ...
asterisk*CLI> database put cidname 18005551215 "another char string"
asterisk*CLI> database put cidname 18005551216 "another char string"
asterisk*CLI> database put cidname 18005551217 "another char string"
... ...
asterisk*CLI> database put cidname 18005551218 "another char string"
asterisk*CLI> database put cidname 18005551219 "another char string"
asterisk*CLI> database put cidname 18005551210 "another char string"
asterisk*CLI> database put cidname 18005551211 "another char string"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060830/6b3b99b8/attachment.htm


More information about the asterisk-users mailing list