question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi guys, Everything that I find is for AsterNET on C(++) It is a little hard for me to translate from C to VB.net Can I get some help with VB.NET? Here are my issues:

  1. Trying to get exten to call another exten C code: mConnection.SendAction(new OriginateAction() { Channel = "SIP/401", Exten = "201", Context = "default", Priority = "1", CallerId = "401" Timeout = 3000000 });

VB.NET code: Dim test As New Action.OriginateAction test.Channel = "SIP/3000" test.Exten = "2035" test.Context = "default" test.Priority = "1" test.CallerId = "3000" test.Timeout = 3000000 conn.SendAction(test)

Exten 3000 gets a call, when answering, 3000 calls 2035 But when 3000 doesn’t answer in the “timeout” time (or even after 5 sec), I get a TimeoutException was unhandled error. (I’m not getting this error when Exten 3000 is set to “auto answer” timeout

  1. I’m trying to send a command and put the results in a TextBox (lets say “sip show peers”) Dim a As New Action.CommandAction("sip show peers") conn.SendAction(a)

This works fine, but I can’t get the response to go into the TextBox This is what I have so far: Dim r As Response.ManagerResponse = conn.SendAction(a) or MsgBox(conn.SendAction(a)) or TextBox1.Text = r.Response(a)

But no luck…

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
Deantwocommented, May 3, 2017

What values are you defining in the OriginateAction? And which line is giving the error? What is the full error message/exception?

See the Asterisk documentation maybe. Here: https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerAction_Originate

0reactions
skrustycommented, May 3, 2017

AsterNET is just a client framework, it’s not a phone system. AsterNET just communicates with Asterisk using AMI.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Thread: VB.net & Aster.NET examples
I'am new here And I woul like to ask for any examples for using Aster.net in VB.net? Connecting to Asterisk AMI, deal with...
Read more >
AsterNET.NetStandard 2.2.1
AsterNET is an open source framework for Asterisk AMI and FastAGI. AsterNET allows you to talk to Asterisk AMI from any .NET application...
Read more >
asterisk and vb net make a call
asterisk and vb net make a call ... VB. Hi, I'm trying to make a call from code using asterisk, the number i...
Read more >
Get caller id with Visual Basic
NET framework for Asterisk AMI and FastAGI. AsterNET allows you to talk to Asterisk AMI from any .NET application and create FastAGI ...
Read more >
Newest 'asternet' Questions
AsterNET is an open source .NET framework for Asterisk AMI and FastAGI. Use this tag for questions about the use of this framework...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found