-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Announce Channel in AsterNET not Available in ParkAction #228
Comments
Looks like the But assuming you are using the NuGet package, you'll have to do a workaround to write the command manually. And I don't remember how to do that with AsterNET, but I assume it is possible. |
Announce Channel in AsterNET not Available in ParkAction, fix for this issue AsterNET#228
I created an Additional Function Which will support to Add the "AnnounceChannel" Channel as Parameter, please review & merge if that helps, Thank you |
You downloaded the "master" branch I assume. Why are you even newing event handlers? _ami.NewChannel += NewChannel;
_ami.NewExten += ProcessChannel;
_ami.BridgeEnter += BridgeEvent;
_ami.NewState += NewState; |
You only created a constructor and you are attempting to assign to properties that don't exist. Feel free to make a pull request when you have it working. Edit: Just saw your other commit too. Looks good. Create the pull request and I can review it better. |
I can see that
Anyway, make the pull request and we can review it better. |
AsterNET#228 (comment) This solution is working for me,
I found we had 2 methods with 4 string parameters, public ParkAction(string channel, string channel2, string timeout, string parkinglot)
{
Channel = channel;
Channel2 = channel2;
Timeout = timeout;
Parkinglot = parkinglot;
} And public ParkAction(string callerChannel, string calleeChannel, string announceChannel, string timeout)
{
Channel = callerChannel;
TimeoutChannel = calleeChannel;
AnnounceChannel = announceChannel;
Timeout = timeout;
} Since we can't have both methods together, I removed one with the Variable Name |
We have up to 5 Parameters Available in Asterisk Check the link below for more details
https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+ManagerAction_Park
but in AsterNET ParkAction has only 4 Parameters and
[AnnounceChannel:] <value>
is not available to provide,http://asternet.github.io/AsterNET/html/M_AsterNET_Manager_Action_ParkAction__ctor_1.htm
because of this issue when I park the call, person in the opponent side hears the parking announcement, Please help if someone knows how to hack this issue
The text was updated successfully, but these errors were encountered: