-
Notifications
You must be signed in to change notification settings - Fork 6
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
base: telnyx/telephony/development
Are you sure you want to change the base?
Conversation
@@ -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) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
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")); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.