Questions tagged [asternet]

AsterNET is an open source .NET framework for Asterisk AMI and FastAGI. Use this tag for questions about the use of this framework in your applications. Be sure to also tag your question with the language you are using (e.g. c# or vb.net.)

23 questions
3
votes
1 answer

Originating VoIP call using AsterNET in C#

I try doing mConnection.SendAction(new OriginateAction() { Channel = "SIP/201test", Exten = "401", Context = "201", Priority = "1", …
Mike
  • 563
  • 5
  • 15
  • 32
3
votes
1 answer

Managing VoIP calls via AsterNET

I am kind of newbie in VoIP programming. Let's say I have two VoIP phones connected to the same server, and I want to detect when the call fires, caller's ID, call duration, ... etc. I learned about AsterNET, but didn't find any good example to see…
Mike
  • 563
  • 5
  • 15
  • 32
2
votes
1 answer

how to get variable value from asterisk with asternet

I use the asterNet for manage event IN asterisk. I need to get value of variable (result) in c# from dialplan query. exten => test,1, NoOp(************ test ****************); same => n,Answer(); same => n,Playback(hellow-world); same =>…
AminRostami
  • 2,585
  • 3
  • 29
  • 45
2
votes
1 answer

Using Asterisk AGI to make outbound calls using Originate and controlling both sides of call

I am building a very complex IVR using the Asterisk AGI. I'm using AsterNET .NET framework to integrate into FastAGI. Most of the scripting is working fine, the issue I am having is with making outbound calls. The IVR application will work with…
Dave
  • 351
  • 4
  • 18
2
votes
2 answers

How do I get the UniqueId and Channel Name from a call I have just originated?

I am trying to upgrade to the latest version of AsterNet from an old copy of Asterisk.Net. We used to originate calls with AsteriskManager.OriginateCall(), which returned a Call object. That call object had a UniqueId and ChannelName. Now I'm…
Matt
  • 84,419
  • 25
  • 57
  • 67
1
vote
1 answer

create AGIScript in classLibrary project

I have a simple project create with c# (.Net Core 6.0) I create a AGIScript class with Asternet and recieve the data from asterisk server. it's working well, As long as both are in the same project (exe project). public void ListenToAgi() { var…
AminRostami
  • 2,585
  • 3
  • 29
  • 45
1
vote
1 answer

AsterNet comand

I'm sending the command below using C # and AsterNet. The command executes, but only returns the last line of the command's response. CommandAction cmdAction = new CommandAction (); cmdAction.Command = "core show channels"; var response =…
Icarus
  • 13
  • 1
  • 2
1
vote
2 answers

Asterisk AsterNET How to move from parking to queue?

Im using C# AsterNET to manage my Asterisk commands and events, and now I do have a new feature to work on. This is simple (I think) but I'm stucked right now. Scenario I do have two queues, 8100 and 8300, and 2 extensions being 8101 and 8301. When…
Andrew Paes
  • 1,940
  • 1
  • 15
  • 20
1
vote
1 answer

Create, redirect... calls using AsterNET.ARI

I have installed AsteriskNOW distribution with freePBX. I'm trying to implement autodialer to our existing software. I am monitoring calls wihtout any problems. Only thing that works is to hang up call. When i try to originate, redirect, hold or…
palkhin
  • 13
  • 4
1
vote
1 answer

How do I prevent or catch "Unable to run: socket is null" from AsterNet?

Using AsterNet to connect to Asterisk, I've been seeing the following: Unhandled Exception: System.SystemException: Unable to run: socket is null. at AsterNET.Manager.ManagerReader.Run()…
Matt
  • 84,419
  • 25
  • 57
  • 67
1
vote
1 answer

Asternet AGI GeneralMappingStrategy using XML

I am trying to use XML for my GeneralMappingStrategy in Asternet. I have my program working fine using List such as: agiServer.MappingStrategy = new GeneralMappingStrategy( new List() { new…
Dave
  • 351
  • 4
  • 18
1
vote
1 answer

How to put a cell phone number as exten in AsterNet

I'm trying to call a cell phone number after i hangup on an internal fixed phone, but it doesn't work, i don't know what is going on... This is the code that i was trying with, but it doesn'work. The fixed phone is called like it should, but the…
Nikola.Lukovic
  • 1,256
  • 1
  • 16
  • 33
1
vote
0 answers

Something disposes NetworkStream in WCF service hosted in Windows Service

I have WCF single-instance service which uses AsterNET library and hosts in custom windows service. When any client connects to WCF service and try send any command to asterisk through AsterNET AMI I receive exception: System.ObjectDisposedException…
Dmitriy
  • 11
  • 2
0
votes
1 answer

Problems with ConnectionState in AsterNet

I have next code: using AsterNET.Manager; using AsterNET.Manager.Event; private ManagerConnection manager; private bool StartManager() { manager = new( Properties.Resources.amiAddress, …
Dmitriy G
  • 171
  • 1
  • 1
  • 4
0
votes
1 answer

c# asternet cancel outgoing-call

I'm using Asternet for my manager-program so employees can call a customer with just a click. But I'm trying to find how to cancel or disconnect a call to a customer. When I click on the call-button, the extension calls. When I pick up the phone, it…
Paul Albers
  • 121
  • 1
  • 8
1
2