Skip to content

Support for Status Action and Events for PJSIP Registered endpoints#204

Open
VasuInukollu wants to merge 9 commits intoAsterNET:masterfrom
VasuInukollu:master
Open

Support for Status Action and Events for PJSIP Registered endpoints#204
VasuInukollu wants to merge 9 commits intoAsterNET:masterfrom
VasuInukollu:master

Conversation

@VasuInukollu
Copy link
Copy Markdown

PJSIP is the default channel driver in the latest versions of Asterisk. The current builds do not even load the chan_sip by default and the direction is very clear.

Support from PJSIP could be essential going forward. I am working on a project that is using chan_pjsip instead of chan_sip.

vasu@inukollu.com and others added 2 commits June 21, 2019 19:57
…etail, AuthDetail, TransportDetail, IdentifyDetail etc.
merging incoming changes
@skrusty
Copy link
Copy Markdown
Collaborator

skrusty commented Jun 24, 2019

The PR just adds placeholders/stubs for the event classes? Is the intention here to add properties to these?

@VasuInukollu
Copy link
Copy Markdown
Author

The PR just adds placeholders/stubs for the event classes? Is the intention here to add properties to these?

First thing, I was not sure if you would be keen to merge this. I didn't go through the half a dozen pull requests pending (as to why they are not merged) and assumed, you may not have time to review these.

Idea was to get PJSIP to your attention.

The current code base is already populating these response variables in the attributes field. Should we add the properties? Should be an easy job.

Copy link
Copy Markdown
Collaborator

@Deantwo Deantwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see nothing wrong with the addition of the new events, but the classes don't have any properties and the new event handlers don't have any summary comments.

Other than that I mostly wonder why you are only adding PJSIPShowEndpointAction, shouldn't you also add PJSIPShowEndpointsAction?
See: https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerAction_PJSIPShowEndpoints

public TransportDetailEvent(ManagerConnection source)
: base(source)
{
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could add some properties to this class.
Asterisk documentation has a list of the values.
See: https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_TransportDetail

public IdentifyDetailEvent(ManagerConnection source)
: base(source)
{
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could add some properties to this class.
Asterisk documentation has a list of the values.
See: https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_IdentifyDetail

public EndpointDetailEvent(ManagerConnection source)
: base(source)
{
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could add some properties to this class.
Asterisk documentation has a list of the values.
See: https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_EndpointDetail

public EndpointDetailCompleteEvent(ManagerConnection source)
: base(source)
{
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could add some properties to this class.
Asterisk documentation has a list of the values.
See: https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_EndpointDetailComplete

public ContactStatusDetailEvent(ManagerConnection source)
: base(source)
{
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could add some properties to this class.
Asterisk documentation has a list of the values.
See: https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_ContactStatusDetail

public AuthDetailEvent(ManagerConnection source)
: base(source)
{
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could add some properties to this class.
Asterisk documentation has a list of the values.
See: https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_AuthDetail

public AorDetailEvent(ManagerConnection source)
: base(source)
{
}
Copy link
Copy Markdown
Collaborator

@Deantwo Deantwo Jul 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could add some properties to this class.
Asterisk documentation has a list of the values.
See: https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_AorDetail

/// </summary>
public event EventHandler<QueueSummaryEvent> QueueSummary;

public event EventHandler<EndpointDetailEvent> EndpointDetail;
Copy link
Copy Markdown
Collaborator

@Deantwo Deantwo Jul 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary comments on these would be nice.
You can just take the "Synopsis" part of the events from the Asterisk documentation, and a link to the documentation page.
For example: https://wiki.asterisk.org/wiki/display/AST/Asterisk+14+ManagerEvent_EndpointDetail

@Deantwo Deantwo added this to the Version 2.0 milestone Jul 4, 2019
namespace AsterNET.Manager.Action
{
/// <seealso cref="Manager.Event.EndpointDetailCompleteEvent" />
public class PJSIPShowEndpointAction : ManagerActionEvent
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also need summary comments for the class and its properties too.

@Deantwo
Copy link
Copy Markdown
Collaborator

Deantwo commented Jul 4, 2019

You can look at the other classes for examples of how to write the summary comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants