how can I call sendaction continuely
See original GitHub issuehi
in AsterNET.WinFrom , after AMI success login , I add such a botton , which click event code is
`
private void button1_Click(object sender, EventArgs e)
{
OriginateAction oc = new OriginateAction();
oc.Context = @"from-internel";
oc.Priority = "1";
oc.Channel = @"Local/6001@from-internel";
oc.CallerId = ORIGINATE_CALLERID;
oc.Exten = "6001";
oc.Timeout = ORIGINATE_TIMEOUT;
manager.SendAction(oc, null);
OriginateAction oc1 = new OriginateAction();
oc1.Context = @"from-internel";
oc1.Priority = "1";
oc1.Channel = @"Local/6001@from-internel";
oc1.CallerId = ORIGINATE_CALLERID;
oc1.Exten = "6001";
oc1.Timeout = ORIGINATE_TIMEOUT;
manager.SendAction(oc1, null);
OriginateAction oc2 = new OriginateAction();
oc2.Context = @"from-internel";
oc2.Priority = "1";
oc2.Channel = @"Local/6001@from-internel";
oc2.CallerId = ORIGINATE_CALLERID;
oc2.Exten = "6001";
oc2.Timeout = ORIGINATE_TIMEOUT;
manager.SendAction(oc2, null);
}`
I want this part of code can continue make 3 calls on asterisk , but in asterisk cli , I find this code only make 1 call .
here is my dialplan :
[from-internel]
exten => 6001,1,Dial(Local/7001@from-internel,30)
exten => 7001,1,Answer()
same => n,Wait(10)
same => n,Hangup()
could anyone tell me how can I make many calls for example in a loop ?
Issue Analytics
- State:
- Created 5 years ago
- Comments:10
Top Results From Across the Web
Ember.js. What is the purpose of sendAction? How does it ...
No, as mentioned in the previous answer, it only calls the action bound to the action attribute because you're doing this.sendAction('action', …) ...
Read more >sendAction(on:) - Documentation
A Boolean value indicating whether the receiver's cell sends its action message continuously to its target during mouse tracking. func sendAction(Selector?
Read more >Sending Actions from Components to Your Application
In this case, you can send the createUser action by calling this.sendAction('submit') , or send the cancelUserCreation action by calling this.sendAction('cancel ...
Read more >Send action always runs, even when IF statement equates ...
No matter what I ask the if statement to match it always types E when I press `, even if it equates to...
Read more >[v1.6.1] sendAction('test') from component not working. #5287
When specifying an action in the sendAction method, it doesn't work. However when the action is placed on the {{component-name action='test'}} ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You can try setting
oc.Async = true;
, it should make theSendAction
return right away without waiting for the Asterisk to confirm the originate. An asynchronous reply will then be sent from the Asterisk when it knows if the originate was successful. I just ignore the asynchronous reply, so I can’t say much about that. I am only originating a single call at a time, and I expect the user to know that it failed because their phone didn’t ring.I don’t use any of those events you mentioned, so I don’t know anything about those.
@MarcosRoman14, I understand your issue, but you need to make a new separate issue. You can’t just comment on a random old issue that is totally unrelated and closed. Here: https://github.com/AsterNET/AsterNET/issues/new