Skip to content
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

ENGDESK-33432: Create SWITCH_EVENT_SEND_INFO event #310

Open
wants to merge 2 commits into
base: telnyx/telephony/development
Choose a base branch
from

Conversation

baloeng
Copy link

@baloeng baloeng commented Aug 13, 2024

No description provided.

@@ -2156,6 +2157,14 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
TAG_END());

switch_safe_free(headers);

if (switch_event_create(&event, SWITCH_EVENT_SEND_INFO) == SWITCH_STATUS_SUCCESS) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we fire this in nua_r_info event instead?

Copy link
Author

Choose a reason for hiding this comment

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

Good point - Since nua_r_info is triggered after receiving the 200 OK for the INFO message.

Copy link
Author

Choose a reason for hiding this comment

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

Done

@baloeng baloeng requested a review from dev-ryanc August 15, 2024 15:44
if (switch_event_create(&s_event, SWITCH_EVENT_SEND_INFO) == SWITCH_STATUS_SUCCESS) {
switch_channel_event_set_data(channel, s_event);
switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "message-indicate-info-event", "true");
switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "content-type", switch_channel_get_variable(channel, "sip_info_content_type"));

Choose a reason for hiding this comment

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

@baloeng please correct the indentation here, rest looks good

Copy link
Author

Choose a reason for hiding this comment

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

@tajamulTelnyx There's actually no indentation issue here. Just that the text was wrapped by github so it could fit to this page.

If you view the file as a whole, you wouldn't see this.

Choose a reason for hiding this comment

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

Got it :(

Copy link

@tajamulTelnyx tajamulTelnyx left a comment

Choose a reason for hiding this comment

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

LGTM

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

Successfully merging this pull request may close these issues.

5 participants