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

TEL-6201 Add new functions for setting and getting dialplan function. #333

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

Conversation

damirn
Copy link

@damirn damirn commented Oct 24, 2024

@dev-ryanc this is a WIP, but please take a look. thanks

src/switch_channel.c Outdated Show resolved Hide resolved
src/switch_channel.c Outdated Show resolved Hide resolved
@@ -390,6 +389,15 @@ static void switch_core_standard_on_execute(switch_core_session_t *session)

}

post_dialplan_execute = switch_channel_get_variable(session->channel, "post_dialplan_execute");
Copy link
Collaborator

Choose a reason for hiding this comment

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

What happen when I execute uuid_broadcast, will it call the post dialplan function?

Copy link
Author

Choose a reason for hiding this comment

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

i think it should, since this happens in _on_execute handler

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ideally this should only be executed only when processing dialplan commands during ROUTE state. Otherwise CC commands which always call uuid_broadcast will execute the post dialplan commands.

Copy link
Author

Choose a reason for hiding this comment

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

ok, I think I understand what you mean now.. I moved it to on_routing handler

@damirn damirn requested a review from dev-ryanc December 4, 2024 10:49
Copy link

@Elhodred Elhodred left a comment

Choose a reason for hiding this comment

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

Other than the comment from @dev-ryanc , LGTM

@damirn damirn requested a review from dev-ryanc December 10, 2024 12:18
src/switch_caller.c Show resolved Hide resolved
src/switch_caller.c Outdated Show resolved Hide resolved
@damirn damirn requested a review from dev-ryanc December 10, 2024 13:42
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