im developing dialplan using asterisk and PAGI (PHP asterisk gateway interface)
but i cant find a way to create node which can have dynamic number of annoucements depends on result from database.
I found a way to do this by adding annoucements in loop in method called executeAfterRun
but when Im trying to interrupt node by pressing anything it interrupts only current annoucement and going to playing next one.
I want this whole node to be interruptable not just current annoucement.
can anyone help me with this problem ?
thanks in advance for any help
best regards
You have create in your php code string like
announce1&announce2&announce3
using loop. After that you can use that string for Playback command, it will work like one large file.
Related
Check the Picture- Image Here
I made a c# script then change the MonoBehavior to NetworkBehavior
then pud the script in the Main Camera.
I have problem using NetworkBehavior I dont know how to execute it, I want to try the SyncVar and other attributes that can help about server-client data networking.
thanks.
It is difficult to tell what is going on from you picture, and it would be helpful if you could tell us exactly what you are looking for, but as far as SyncVar working, it is important to note that it only works from the server side. That is, you can't sync an attribute from a remote player to the server, but the server can sync a player's attribute to everyone else. another thing to note about sync var is that it only works on basic types and unity math types (quaternion, vector3, etc.) if I recall correctly. If you need more help please try to be more specific.
I have a webscript for which i don't want multiple calls at same time. If i get multiple calls at same time, i want to execute the webscript one after the other. Can we do that? If yes please explain the process.
Thanks in advance!
Use the requiresnew in your webscript definition at first.
This will make sure that every call is in it's own transaction and you won't get issues with rollingback etc.
In most cases this will solve all the issues you'll have.
If not then you're probably fixing the problem at the wrong side and you'll need a queue before Alfresco like ActiveMQ.
You can call a method with the synchronize annotation in the webscript's executeImp
I am new to Scilab. I want to cluster a dataset. I installed the external module 'CLUSTER' & also loaded it. Unfortunately, I don't know how to use it. I can find the description of the module but I could not find how to call it and use it.
Could you please tell me how I can use the atoms module?
Its help can be entered by calling help for one of its functions, for instance
--> help CMeans
Then you can get the module's summary and navigate through its pages with the help path at the top of each page. There are runable examples in the pages.
I'm writing an install file for a custom module, that needs to create some new nodequeues. But a drupal and google search are so far turning up empty. Anyone know how to do this?
Drupal 6
The closet thing you come to a API function to save nodes is nodequeue_save, but all you really need to do, is to insert some data to the {nodequeue_queue} table. You can do it yourself with SQL or use the function, but the result will be the same.
You should remember to add the nodequeue module as a dependency in your module's info file and check if it's installed before running your stuff in hook_install.
Some API documentation might help you on the road? http://api.lullabot.com/file/contrib/nodequeue/nodequeue.module
I'm build a web page in ASP.net is supposed to work just like Query Analyzer. It has basically a textarea to input the sql command, and an Execute button.
I'm using SMO to execute the command in the database, as follows:
//Create object SMO
Microsoft.SqlServer.Management.Smo.Server server = new Microsoft.SqlServer.Management.Smo.Server(new Microsoft.SqlServer.Management.Common.ServerConnection(oConn));
//To execute the command
server.ConnectionContext.ExecuteNonQuery(tbx_cmd.Text);
//OR
myDataset = server.ConnectionContext.ExecuteWithResults(tbx_cmd.Text);
The problem is that the textarea command can contain anything, from a stored procedure (with GO's statements) and any select command that return resultsets, just like Query Analyzer.
But, if I have GO statements, I only can perform the query using ExecuteNonQuery method. If I use the ExecuteWithResults method, it raises errors because of the GO statements.
And if I want the resultsets to be available, of course I can only use the ExecuteWithResults method.
Does anybody knows how can I do to execute the same command texts at the same time?
Thank you!
You would have to write your code to split out the commands and be able to recognize where one command ends and another begins. Either way it's not a simple task.
You COULD just make a rule that in your app, all SQL commands end with a semicolon, and then use a string.split() to split it up into multiple strings, and treat each one as a command. That would be dependent on users using this properly, of course.
Speaking of depending on users, I just have to ask, is this something where only you or another trusted person will use it? And something that is not pointing at valuable data? I ask only because when I was a young programmer and didn't know any better, I built such a tool, for a mission-critical database, and now I live in fear that someone is going to do something dumb like
Delete From MyMissionCriticalTable
and then I'll spend who knows how long fixing it...
I have no idea of your experience level, so I don't mean to be insulting when I urge you to consider SHOULD you do it before you worry too much about CAN you do it.