<div>Sounds like you need to invoke the asterisk -rx comand or do it via the manager api.</div>
<div> </div>
<div>I personally prefer doing it via php. You could write a php script like the following:</div>
<div>shell_exec("/usr/sbin/asterisk -rx 'database put cidname 18005551212 Char String'");<br> </div>
<div>bp<br> </div>
<div><span class="gmail_quote">On 8/30/06, <b class="gmail_sendername">Nilesh Londhe</b> <<a href="mailto:lvnilesh@gmail.com">lvnilesh@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div>On the asterisk CLI, is there a way to invoke a sequence of CLI commands ala a batch job for the CLI to execute?</div>
<div> </div>
<div>Here is what I am trying to do on the CLI...and I am looking to automate this via a batch process.</div>
<div> </div>
<div>[root@asterisk ~]# asterisk -r<br>=========================================================================<br>Connected to Asterisk 1.2.10 currently running on asterisk (pid = 3042)<br>Verbosity is at least 3<br>asterisk*CLI> database put cidname 18005551212 "Char String"
<br>asterisk*CLI> database put cidname 18005551213 "another char string"<br>asterisk*CLI> database put cidname 18005551214 "Char String"<br>... </div>
<div>
<div>...</div>asterisk*CLI> database put cidname 18005551215 "another char string"<br>asterisk*CLI> database put cidname 18005551216 "another char string"<br>asterisk*CLI> database put cidname 18005551217 "another char string"
<br>...
<div>...</div>asterisk*CLI> database put cidname 18005551218 "another char string"<br>asterisk*CLI> database put cidname 18005551219 "another char string"<br>asterisk*CLI> database put cidname 18005551210 "another char string"
<br>asterisk*CLI> database put cidname 18005551211 "another char string"<br> </div></div><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://easynews.com/" target="_blank">
Easynews.com</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br><br></blockquote></div><br>